Skip to content

Instantly share code, notes, and snippets.

@takeokunn
Last active September 11, 2024 21:27
Show Gist options
  • Save takeokunn/2b17a7f246050128cae291706993bf2c to your computer and use it in GitHub Desktop.
Save takeokunn/2b17a7f246050128cae291706993bf2c to your computer and use it in GitHub Desktop.
wandbox.org

Wandbox

Requirements

System

x86_64-darwin

PHP

7.2

define

let
  url =
    "https://github.com/NixOS/nixpkgs/archive/df2176f7f3f748974f24916df29bb70763d89734.tar.gz";
  pkgs = import (builtins.fetchTarball { inherit url; }) {
    system = "<<wandbox-system>>";
  };
in pkgs.mkShell { buildInputs = with pkgs; [ php72 ]; }

test

echo phpversion();
7.2.27

7.3

define

let
  url =
    "https://github.com/NixOS/nixpkgs/archive/9d21fe813fd96afd4a08d5437186ebe438546693.tar.gz";
  pkgs = import (builtins.fetchTarball { inherit url; }) {
    system = "<<wandbox-system>>";
  };
in pkgs.mkShell { buildInputs = with pkgs; [ php73 ]; }

test

echo phpversion();
7.3.15

7.4

define

let
  url =
    "https://github.com/NixOS/nixpkgs/archive/4426104c8c900fbe048c33a0e6f68a006235ac50.tar.gz";
  pkgs = import (builtins.fetchTarball { inherit url; }) {
    system = "<<wandbox-system>>";
  };
in pkgs.mkShell { buildInputs = with pkgs; [ php74 ]; }

test

echo phpversion();
7.4.4

8.0

define

let
  url =
    "https://github.com/NixOS/nixpkgs/archive/d1c3fea7ecbed758168787fe4e4a3157e52bc808.tar.gz";
  pkgs = import (builtins.fetchTarball { inherit url; }) {
    system = "<<wandbox-system>>";
  };
in pkgs.mkShell { buildInputs = with pkgs; [ php80 ]; }

test

echo phpversion();
8.0.16

8.1

define

{ pkgs ? import <nixpkgs> { } }:
pkgs.mkShell { buildInputs = with pkgs; [ php81 ]; }

test

echo phpversion();
8.1.29

8.2

define

{ pkgs ? import <nixpkgs> { } }:
pkgs.mkShell { buildInputs = with pkgs; [ php82 ]; }

test

echo phpversion();
8.2.22

8.3

define

{ pkgs ? import <nixpkgs> { } }:
pkgs.mkShell { buildInputs = with pkgs; [ php83 ]; }

test

echo phpversion();
8.3.10

Test

assert 0 == “”

7.2

var_dump(0 == "");
bool(true)

7.3

var_dump(0 == "");
bool(true)

7.4

var_dump(0 == "");
bool(true)

8.0

var_dump(0 == "");
bool(false)

8.1

var_dump(0 == "");
bool(false)

8.2

var_dump(0 == "");
bool(false)

8.3

var_dump(0 == "");
bool(false)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment