3v4l.org

run code in 300+ PHP versions simultaneously
<?php $code = <<<'EOT' <?php $a = function(){}; unset($a); EOT; $file = tempnam(sys_get_temp_dir(), 'a'); file_put_contents($file, $code); echo "0 ", number_format(memory_get_usage())."\n"; for ($i = 0; $i <= 50000; $i++) { include $file; if (strlen(rtrim($i, "0")) == 1) { echo str_pad($i,6), " ", number_format(memory_get_usage())."\n"; } }

Abusive script

This script was stopped while abusing our resources

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.0.30.8961.09242.51
8.0.20.9171.08143.63
8.0.10.0340.02117.07
8.0.00.8841.11442.20
7.4.160.8941.10342.61
7.4.150.8231.17543.98
7.4.140.0420.04416.69
7.4.130.9491.05342.94
7.4.120.9131.08942.02
7.4.110.8571.13644.23
7.4.100.8531.14745.27
7.4.90.8721.12841.39
7.4.80.2370.28023.06
7.4.70.5090.44625.17
7.4.60.0910.08718.70
7.4.50.0610.10417.93
7.4.40.1070.12918.08
7.4.30.0460.09617.98
7.4.20.0840.09618.75
7.4.10.0620.04416.73
7.4.00.0730.06716.82
7.3.280.9571.03221.75
7.3.271.0670.94622.77
7.3.260.0310.03416.44
7.3.250.9411.05922.83
7.3.240.9581.04822.36
7.3.230.9541.04723.45
7.3.221.0590.94222.71
7.3.210.9511.04923.20
7.3.200.2890.28218.16
7.3.190.1030.10616.93
7.3.180.0960.09316.81
7.3.170.0920.09216.93
7.3.160.0910.07316.79
7.3.150.0800.10316.79
7.3.140.0780.08116.73
7.3.130.0470.11516.61
7.3.60.9580.61625.09
7.3.51.0090.55824.95
7.3.41.0210.55625.02
7.3.30.9450.57925.07
7.3.21.0510.54225.24
7.3.10.8420.53324.11
7.3.00.5180.31620.25
7.2.340.9071.10223.21
7.2.330.8831.11023.27
7.2.320.2600.26017.89
7.2.310.0770.09316.95
7.2.300.2960.25818.08
7.2.290.0790.03916.72
7.2.280.0700.04616.81
7.2.270.0470.01216.46
7.2.260.0710.04516.73
7.2.190.9090.51724.35
7.2.180.9690.56725.77
7.2.171.0070.57025.68
7.2.160.9810.59425.69
7.2.151.0260.55825.90
7.2.140.4930.29720.61
7.2.130.5060.29320.64
7.2.121.0570.55525.89
7.2.110.5160.29720.71
7.2.100.5720.30420.92
7.2.90.9890.52726.18
7.2.80.9890.53326.08
7.2.70.9850.59525.96
7.2.60.9830.52626.22
7.2.50.9950.58426.25
7.2.41.0260.48826.13
7.2.30.9910.58826.28
7.2.20.9910.62526.13
7.2.10.9530.56726.20
7.2.00.9710.53726.25
7.1.301.0680.57124.18
7.1.290.9000.48922.81
7.1.281.0730.49424.17
7.1.271.0910.53424.10
7.1.260.5350.28119.22
7.1.250.5160.27819.20
7.1.240.5690.26119.28
7.1.230.0350.01114.12
7.1.220.0340.02114.03
7.1.211.1240.54124.04
7.1.201.0970.56823.96
7.1.191.1140.60423.79
7.1.181.1040.57224.03
7.1.171.0330.55524.21
7.1.160.9600.54624.13
7.1.150.9960.60224.44
7.1.141.0810.51924.10
7.1.130.9950.53724.29
7.1.121.0340.59823.99
7.1.111.0520.54124.12
7.1.101.0820.43324.11
7.1.91.0310.54324.13
7.1.80.9550.51224.30
7.1.71.0640.53524.44
7.1.60.9420.58024.12
7.1.50.9400.59524.44
7.1.40.9690.59824.52
7.1.30.9920.55524.44
7.1.20.9850.50824.50
7.1.10.9730.57124.35
7.1.01.0080.49124.42

preferences:
17.84 ms | 403 KiB | 5 Q