3v4l.org

run code in 300+ PHP versions simultaneously
<?php function example(string $foo) { print $foo; } // Fatal error: Uncaught TypeError: example(): Argument #1 ($foo) must be of type string, null given example(null);

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.0080.00820.73
8.3.130.0080.00018.76
8.3.120.0100.01020.79
8.3.110.0000.00916.75
8.3.100.0090.00024.06
8.3.90.0080.00826.77
8.3.80.0090.00017.97
8.3.70.0120.00318.43
8.3.60.0100.01018.43
8.3.50.0130.00716.50
8.3.40.0070.01121.90
8.3.30.0060.00820.21
8.3.20.0050.00224.18
8.3.10.0040.00424.66
8.3.00.0000.00826.16
8.2.250.0030.00616.64
8.2.240.0050.00319.17
8.2.230.0060.01220.94
8.2.220.0080.00037.54
8.2.210.0040.00426.77
8.2.200.0030.00718.66
8.2.190.0100.00718.29
8.2.180.0140.00718.67
8.2.170.0000.01518.77
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00019.82
8.2.110.0070.00721.99
8.2.100.0040.00422.11
8.2.90.0130.00718.72
8.1.300.0110.00716.15
8.1.290.0060.00330.84
8.1.280.0120.00325.92
8.1.270.0080.00024.66
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0000.00918.75
8.1.230.0070.01418.24

preferences:
26.73 ms | 403 KiB | 5 Q