3v4l.org

run code in 300+ PHP versions simultaneously
<?php if ($argc > 1) { var_dump($argv); } else { $descriptorspec = array( 0 => array("pipe", "r"), // stdin is a pipe that the child will read from 1 => array("pipe", "w"), // stdout is a pipe that the child will write to ); $proc = proc_open("php " . escapeshellarg($argv[0]) . " args lel", $descriptorspec, $pipes); fclose($pipes[0]); // default-inherited-stdin creeps me out while (proc_get_status($proc)['running']) { usleep(100 * 1000); } var_dump('stdout: ', stream_get_contents($pipes[1])); fclose($pipes[1]); proc_close($proc); }

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.60.0110.00418.30
8.3.50.0100.00716.34
8.3.40.0120.00318.93
8.3.30.0070.01118.67
8.3.20.0090.00021.85
8.3.10.0040.00423.46
8.3.00.0090.00023.64
8.2.180.0090.01218.54
8.2.170.0070.01122.96
8.2.160.0100.00720.48
8.2.150.0050.00324.18
8.2.140.0030.00624.66
8.2.130.0080.00020.43
8.2.120.0060.00326.35
8.2.110.0060.00321.12
8.2.100.0070.00717.91
8.2.90.0050.00317.84
8.2.80.0030.00517.97
8.2.70.0060.00317.91
8.2.60.0060.00318.03
8.2.50.0060.00318.10
8.2.40.0040.00419.36
8.2.30.0070.00019.04
8.2.20.0040.00417.98
8.2.10.0040.00419.23
8.2.00.0040.00418.03
8.1.280.0070.01125.92
8.1.270.0060.00318.93
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0040.00717.45
8.1.230.0070.00322.70
8.1.220.0050.00217.74
8.1.210.0000.01118.98
8.1.200.0090.00017.23
8.1.190.0000.00817.10
8.1.180.0040.00418.10
8.1.170.0080.00018.71
8.1.160.0050.00318.88
8.1.150.0080.00018.73
8.1.140.0040.00418.82
8.1.130.0000.00720.07
8.1.120.0030.00517.36
8.1.110.0040.00417.37
8.1.100.0000.00817.28
8.1.90.0050.00317.27
8.1.80.0000.00817.35
8.1.70.0040.00417.39
8.1.60.0080.00017.40
8.1.50.0000.00817.53
8.1.40.0070.00017.47
8.1.30.0050.00317.70
8.1.20.0080.00017.70
8.1.10.0040.00417.45
8.1.00.0040.00417.39
8.0.300.0040.00419.77
8.0.290.0050.00316.63
8.0.280.0040.00318.29
8.0.270.0000.00717.12
8.0.260.0030.00318.42
8.0.250.0000.00816.80
8.0.240.0040.00416.97
8.0.230.0030.00316.93
8.0.220.0030.00516.92
8.0.210.0060.00316.79
8.0.200.0000.00717.01
8.0.190.0000.00816.94
8.0.180.0000.00816.91
8.0.170.0000.00916.80
8.0.160.0000.00816.88
8.0.150.0000.00816.91
8.0.140.0070.00016.93
8.0.130.0000.00913.54
8.0.120.0070.00016.73
8.0.110.0030.00516.89
8.0.100.0000.00716.91
8.0.90.0040.00416.77
8.0.80.0060.01016.90
8.0.70.0070.00016.70
8.0.60.0000.00716.94
8.0.50.0000.00716.88
8.0.30.0070.01017.13
8.0.20.0110.01117.40
8.0.10.0050.00316.99
8.0.00.0080.01116.68
7.4.330.0000.00615.55
7.4.320.0040.00416.52
7.4.300.0000.00616.48
7.4.290.0030.00316.32
7.4.280.0050.00316.41
7.4.270.0030.00516.58
7.4.260.0030.00316.53
7.4.250.0040.00416.32
7.4.240.0000.00716.52
7.4.230.0030.00316.34
7.4.220.0040.00416.48
7.4.210.0080.00916.48
7.4.200.0040.00416.46
7.4.160.0110.00716.56
7.4.140.0120.00717.86
7.4.130.0130.00616.38
7.4.120.0140.00316.43
7.4.110.0040.01316.69
7.4.100.0120.00916.53
7.4.90.0100.01016.34
7.4.80.0050.01419.39
7.4.70.0140.00416.78
7.4.60.0060.00916.60
7.4.50.0030.01416.56
7.4.40.0070.01416.59
7.4.00.0030.01315.01
7.3.330.0050.00013.18
7.3.320.0060.00013.26
7.3.310.0030.00316.23
7.3.300.0030.00316.40
7.3.290.0000.00716.24
7.3.280.0100.00716.40
7.3.260.0090.00916.43
7.3.240.0090.01116.46
7.3.230.0060.01216.37
7.3.210.0100.00716.62
7.3.200.0080.01216.35
7.3.190.0160.00316.38
7.3.180.0060.00916.35
7.3.170.0110.00716.37
7.3.160.0170.00616.41
7.3.10.0290.00915.48
7.3.00.0300.01015.53
7.2.330.0120.00616.66
7.2.320.0070.01016.77
7.2.310.0100.00716.87
7.2.300.0110.00616.69
7.2.290.0060.01116.68
7.2.130.0280.00815.83
7.2.120.0220.00615.59
7.2.110.0270.00915.51
7.2.100.0250.00715.53
7.2.90.0230.00915.46
7.2.80.0360.00915.61
7.2.70.0360.00615.95
7.2.60.0380.00715.60
7.2.50.0360.00515.93
7.2.40.0260.01115.56
7.2.30.0380.00915.90
7.2.20.0300.00315.46
7.2.10.0340.00615.62
7.2.00.0390.00715.73
7.1.250.0210.00914.37

preferences:
27.7 ms | 400 KiB | 5 Q