3v4l.org

run code in 300+ PHP versions simultaneously
<?php function example($foo) { print $foo; } // Prints ``, nothing. example(null); // Prints `1`, boolean is cast to integer and cast to a string. example(true); // Prints `0` example(0); // Fatal error: Object of class stdClass could not be converted to string. example(new \stdClass);

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.140.0060.00317.03
8.3.130.0100.01018.23
8.3.120.0150.00419.16
8.3.110.0030.00620.94
8.3.100.0070.00324.06
8.3.90.0040.00426.77
8.3.80.0030.00617.97
8.3.70.0120.00618.68
8.3.60.0120.00318.18
8.3.50.0070.01416.54
8.3.40.0110.00421.88
8.3.30.0100.00320.29
8.3.20.0040.00424.18
8.3.10.0060.00923.95
8.3.00.0050.00326.16
8.2.250.0070.01016.96
8.2.240.0040.01117.13
8.2.230.0060.00322.58
8.2.220.0040.00437.54
8.2.210.0070.00026.77
8.2.200.0030.00618.54
8.2.190.0070.00716.63
8.2.180.0140.00716.38
8.2.170.0140.00718.83
8.2.160.0100.01022.96
8.2.150.0040.00725.66
8.2.140.0060.00324.66
8.2.130.0000.00826.16
8.2.120.0040.00419.23
8.2.110.0040.00420.38
8.2.100.0070.00320.41
8.2.90.0060.00518.82
8.1.300.0110.00718.59
8.1.290.0090.00030.84
8.1.280.0110.00425.92
8.1.270.0050.00324.66
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0100.00023.71
8.1.230.0060.00620.34

preferences:
35.99 ms | 403 KiB | 5 Q