3v4l.org

run code in 300+ PHP versions simultaneously
<?php //initial test setup mkdir($a = sys_get_temp_dir() . '/A'); mkdir($b = sys_get_temp_dir() . '/A/B'); mkdir($c = sys_get_temp_dir() . '/A/B/C'); $template = <<<EOL <?php var_dump(__FILE__); EOL; $incTemplate = <<<EOL <?php include '../do_a.php'; include '../do_b.php'; EOL; file_put_contents($b . '/do_a.php', $template); file_put_contents($b . '/do_b.php', $template); file_put_contents($c . '/do.php', $incTemplate); ini_set('display_errors', 'on'); ini_set('error_reporting', -1); //end test setup if ($doAllThings = realpath($c . '/do.php')) { include $doAllThings; //warnings echo '---------------------' . PHP_EOL; chdir(dirname($doAllThings)); include $doAllThings; }

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.5.00.0150.00719.92
8.4.150.0030.00014.05
8.4.140.0140.00817.66
8.4.130.0130.00817.95
8.4.120.0100.01020.72
8.4.110.0140.00722.21
8.4.100.0130.00717.95
8.4.90.0150.00718.53
8.4.80.0110.01018.09
8.4.70.0070.00217.72
8.4.60.0150.00618.68
8.4.50.0120.00817.79
8.4.40.0150.00619.68
8.4.30.0070.01020.32
8.4.20.0070.00720.66
8.4.10.0030.01419.45
8.3.280.0140.00820.17
8.3.270.0120.00916.86
8.3.260.0140.00816.95
8.3.250.0130.00718.73
8.3.240.0090.01216.69
8.3.230.0130.00816.74
8.3.220.0130.00617.32
8.3.210.0100.00516.64
8.3.200.0060.00316.49
8.3.190.0090.01017.30
8.3.180.0120.00816.89
8.3.170.0100.01017.32
8.3.160.0040.00418.75
8.3.150.0100.01020.91
8.3.140.0030.00616.99
8.3.130.0100.01316.84
8.3.120.0060.00318.82
8.3.110.0060.00320.94
8.3.100.0040.00417.03
8.3.90.0080.00026.77
8.3.80.0070.00318.52
8.3.70.0140.01118.55
8.3.60.0130.00616.88
8.3.50.0070.00723.70
8.3.40.0090.00618.98
8.3.30.0090.00918.93
8.3.20.0050.00320.97
8.3.10.0060.00323.36
8.3.00.0050.00323.53
8.2.290.0080.01120.48
8.2.280.0110.00818.78
8.2.270.0070.01417.13
8.2.260.0060.01018.62
8.2.250.0100.01018.69
8.2.240.0110.00716.90
8.2.230.0080.00022.58
8.2.220.0110.00424.06
8.2.210.0060.00926.77
8.2.200.0000.01016.50
8.2.190.0100.01318.41
8.2.180.0120.00925.92
8.2.170.0120.00319.04
8.2.160.0100.00722.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0030.00719.20
8.2.110.0030.00620.18
8.2.100.0040.00817.72
8.2.90.0060.00617.75
8.2.80.0050.00318.61
8.2.70.0000.00818.04
8.2.60.0030.00618.16
8.2.50.0040.00719.27
8.2.40.0030.00621.20
8.2.30.0030.00519.28
8.2.20.0000.00818.01
8.2.10.0040.00719.34
8.2.00.0040.00419.21
8.1.330.0120.00721.99
8.1.320.0080.01216.18
8.1.310.0130.00316.77
8.1.300.0110.01119.68
8.1.290.0060.00330.84
8.1.280.0120.00325.92
8.1.270.0030.00620.81
8.1.260.0050.00326.35
8.1.250.0000.00828.09
8.1.240.0050.00523.73
8.1.230.0070.00723.93
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0090.00017.35
8.1.190.0030.00617.23
8.1.180.0060.00318.99
8.1.170.0000.00818.51
8.1.160.0040.00419.04
8.1.150.0040.00418.96
8.1.140.0040.00422.44
8.1.130.0040.00421.95
8.1.120.0000.01217.38
8.1.110.0030.00517.47
8.1.100.0040.00417.38
8.1.90.0030.00717.35
8.1.80.0040.00417.55
8.1.70.0040.00417.48
8.1.60.0040.00417.69
8.1.50.0030.00617.60
8.1.40.0030.00517.61
8.1.30.0060.00617.71
8.1.20.0050.00317.71
8.1.10.0040.00417.70
8.1.00.0070.00317.52
8.0.300.0000.00818.77
8.0.290.0040.00416.88
8.0.280.0040.00418.53
8.0.270.0070.00016.96
8.0.260.0000.00620.07
8.0.250.0040.00417.08
8.0.240.0030.00617.00
8.0.230.0070.00017.00
8.0.220.0000.00716.98
8.0.210.0040.00417.05
8.0.200.0000.00717.02
8.0.190.0030.00617.08
8.0.180.0050.00317.05
8.0.170.0060.00316.99
8.0.160.0040.00417.00
8.0.150.0050.00317.10
8.0.140.0040.00416.93
8.0.130.0030.00313.47
8.0.120.0070.00315.14
8.0.110.0070.00315.21
8.0.100.0050.00615.23
8.0.90.0050.00715.21
8.0.80.0060.01015.76
8.0.70.0060.00515.22
8.0.60.0070.00315.20
8.0.50.0090.00115.22
8.0.30.0070.00915.17
8.0.20.0110.00515.33
8.0.10.0020.00815.28
8.0.00.0060.00615.19
7.4.330.0050.00016.74
7.4.320.0000.00616.39
7.4.300.0030.00316.55
7.4.290.0000.00716.53
7.4.280.0060.00516.53
7.4.270.0040.00416.66
7.4.260.0000.00513.32
7.4.250.0080.00414.91
7.4.240.0090.00214.95
7.4.230.0100.00114.97
7.4.220.0050.00415.47
7.4.210.0150.00415.77
7.4.200.0100.00014.99
7.4.190.0100.00313.34
7.4.180.0130.00013.30
7.4.160.0170.00013.30
7.4.150.0130.00013.35
7.4.140.0060.00613.31
7.4.130.0080.00814.88
7.4.120.0120.00814.89
7.4.110.0040.01114.90
7.4.100.0090.00814.96
7.4.90.0100.00614.87
7.4.80.0140.00316.35
7.4.70.0140.00214.94
7.4.60.0130.00414.96
7.4.50.0080.00514.79
7.4.40.0130.00414.86
7.4.30.0100.00313.05
7.4.20.0100.00313.09
7.4.10.0080.00915.25
7.4.00.0150.00014.81
7.3.330.0040.00416.55
7.3.320.0090.00013.15
7.3.310.0050.00514.85
7.3.300.0060.00314.71
7.3.290.0070.00815.63
7.3.280.0110.00313.22
7.3.270.0140.00013.26
7.3.260.0150.00214.94
7.3.250.0070.00713.07
7.3.240.0090.01015.78
7.3.230.0020.01414.86
7.3.220.0060.00613.31
7.3.210.0120.00414.75
7.3.200.0100.00414.88
7.3.190.0060.00914.74
7.3.180.0090.00614.83
7.3.170.0060.00914.83
7.3.160.0060.01114.77
7.3.150.0070.00713.08
7.3.140.0100.00513.16
7.3.130.0060.00914.86
7.3.120.0130.00314.77
7.3.110.0100.00814.56
7.3.100.0130.00314.83
7.3.90.0130.00514.89
7.3.80.0050.00914.67
7.3.70.0070.00714.68
7.3.60.0080.00714.77
7.3.50.0110.00714.77
7.3.40.0070.00614.67
7.3.30.0040.00814.76
7.3.20.0090.00415.72
7.3.10.0070.00615.65
7.3.00.0110.00315.72
7.2.340.0140.00013.17
7.2.330.0110.00515.03
7.2.320.0120.00414.97
7.2.310.0070.00914.94
7.2.300.0100.00714.94
7.2.290.0090.00615.09
7.2.280.0060.00913.41
7.2.270.0140.00013.32
7.2.260.0110.00414.90
7.2.250.0100.00614.90
7.2.240.0100.00514.89
7.2.230.0070.00914.89
7.2.220.0100.00814.82
7.2.210.0080.00814.98
7.2.200.0120.00415.01
7.2.190.0120.00414.89
7.2.180.0040.01114.77
7.2.170.0090.00714.87
7.2.160.0070.00714.93
7.2.150.0100.00515.92
7.2.140.0090.00515.78
7.2.130.0060.01216.04
7.2.120.0060.01015.99
7.2.110.0110.01015.90
7.2.100.0080.00715.96
7.2.90.0120.00515.96
7.2.80.0130.00515.82
7.2.70.0080.00815.90
7.2.60.0090.00715.88
7.2.50.0110.00515.98
7.2.40.0110.00515.99
7.2.30.0120.00415.85
7.2.20.0140.00215.99
7.2.10.0140.00115.94
7.2.00.0100.00715.89

preferences:
30.64 ms | 403 KiB | 5 Q