3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = microtime(true); $a = 0; while(true) { $a++; if($a > 100) { break; } } $mid = microtime(true); $a = 0; start: $a++; if($a > 100) { goto end; } else { goto start; } end: $end = microtime(true); echo "retry " . ($mid-$start) . " retry2 " . ($end-$mid) . "\n";

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)
7.4.00.0070.01214.89
7.3.120.0080.00814.82
7.3.110.0100.00714.87
7.3.100.0070.00714.90
7.3.90.0040.01314.81
7.3.80.0060.00815.03
7.3.70.0070.00814.92
7.3.60.0070.00714.79
7.3.50.0060.00614.79
7.3.40.0010.01014.83
7.3.30.0030.01014.91
7.3.20.0130.00316.78
7.3.10.0080.00916.74
7.3.00.0040.00716.63
7.2.250.0040.01414.90
7.2.240.0030.01515.10
7.2.230.0050.01214.85
7.2.220.0020.01715.04
7.2.210.0070.00815.20
7.2.200.0070.00815.08
7.2.190.0020.01114.99
7.2.180.0030.00914.95
7.2.170.0050.01014.99
7.2.00.0040.01119.36
7.1.330.0050.01015.67
7.1.320.0080.00915.89
7.1.310.0030.00915.83
7.1.300.0060.00815.69
7.1.290.0040.00615.72
7.1.280.0060.00715.79
7.1.270.0070.00815.89
7.1.260.0060.00415.56
7.1.70.0060.00617.27
7.1.60.0060.00619.32
7.1.50.0100.01016.95
7.1.00.0070.07322.48
7.0.200.0040.00716.61
7.0.140.0030.06722.00
7.0.60.0030.06319.84
7.0.50.0170.06717.81
7.0.40.0030.04320.08
7.0.30.0230.08020.21
7.0.20.0300.06720.16
7.0.10.0030.08720.16
7.0.00.0030.04320.02
5.6.280.0030.07321.00
5.6.210.0200.06720.56
5.6.200.0100.07318.20
5.6.190.0030.06720.45
5.6.180.0200.04720.61
5.6.170.0330.07720.48
5.6.160.0130.07320.48
5.6.150.0070.07718.20
5.6.140.0070.03718.15
5.6.130.0130.05018.16
5.6.120.0130.04021.04
5.6.110.0170.07721.13
5.6.100.0100.07021.03
5.6.90.0130.08020.94
5.6.80.0270.06020.38
5.6.70.2430.03320.43
5.5.350.0270.08320.40
5.5.340.0000.05317.97
5.5.330.0070.04020.43
5.5.320.0270.05320.28
5.5.310.0200.04320.41
5.5.300.0170.07018.01
5.5.290.0100.03317.88
5.5.280.0070.04320.77
5.5.270.0030.08720.86
5.5.260.0070.09020.79
5.5.250.0030.07020.68
5.5.240.0300.07020.13
5.4.450.0030.04319.13
5.4.440.0070.07719.53
5.4.430.0000.04719.25
5.4.420.0100.04719.37
5.4.410.0030.07719.33
5.4.400.0030.07319.22
5.4.390.0030.08019.11
5.4.380.0030.06718.79
5.4.370.0100.07019.22
5.4.360.0030.05718.81
5.4.350.0000.08318.81
5.4.340.0030.06719.09
5.4.320.0000.08019.08
5.4.310.0070.07719.08
5.4.300.0200.06019.06
5.4.290.0030.07319.05
5.4.280.0000.05019.08
5.4.270.0030.07018.81
5.4.260.0030.07718.92
5.4.250.0070.04719.13
5.4.240.0000.07718.92
5.4.230.0070.07018.87
5.4.220.0070.07019.11
5.4.210.0000.06319.21
5.4.200.0030.07318.80
5.4.190.0070.07018.92
5.4.180.0030.06719.07
5.4.170.0030.04719.24
5.4.160.0000.07319.07
5.4.150.0030.05719.03
5.4.140.0070.07016.46
5.4.130.0030.07316.27
5.4.120.0070.06716.43
5.4.110.0030.05316.51
5.4.100.0030.05316.39
5.4.90.0030.04716.23
5.4.80.0000.05016.34
5.4.70.0030.07016.28
5.4.60.0070.04316.43
5.4.50.0030.04716.15
5.4.40.0030.07316.31
5.4.30.0000.07716.36
5.4.20.0100.04716.43
5.4.10.0030.04716.27
5.4.00.0000.05315.71
5.3.290.0030.04714.61
5.3.280.0030.07714.54
5.3.270.0070.07314.58
5.3.260.0070.07714.64
5.3.250.0070.05714.47
5.3.240.0030.07314.63
5.3.230.0030.07714.44
5.3.220.0070.05014.43
5.3.210.0030.07014.51
5.3.200.0030.04014.43
5.3.190.0030.06014.50
5.3.180.0070.07014.51
5.3.170.0000.07714.51
5.3.160.0030.07714.41
5.3.150.0070.06014.42
5.3.140.0070.05314.48
5.3.130.0000.07314.49
5.3.120.0070.07714.59
5.3.110.0000.04714.43
5.3.100.0000.05713.87
5.3.90.0030.06013.96
5.3.80.0030.07014.04
5.3.70.0000.05713.79
5.3.60.0070.07013.91
5.3.50.0030.06013.79
5.3.40.0030.07713.85
5.3.30.0000.04713.86
5.3.20.0000.06713.63
5.3.10.0000.05013.51
5.3.00.0000.04713.52
5.2.170.0000.05712.30
5.2.160.0070.05712.30
5.2.150.0000.06012.30
5.2.140.0100.05712.30
5.2.130.0000.05012.30
5.2.120.0070.05312.30
5.2.110.0000.03712.30
5.2.100.0030.02712.30
5.2.90.0000.03712.30
5.2.80.0070.02712.30
5.2.70.0030.06312.30
5.2.60.0000.06312.30
5.2.50.0070.05712.30
5.2.40.0030.03312.30
5.2.30.0000.06312.30
5.2.20.0030.06012.30
5.2.10.0100.05312.30
5.2.00.0030.05012.30
5.1.60.0030.04312.30
5.1.50.0070.04712.30
5.1.40.0030.05312.30
5.1.30.0070.03712.30
5.1.20.0030.05312.30
5.1.10.0070.05312.30
5.1.00.0000.06012.30
5.0.50.0030.03012.30
5.0.40.0030.04012.30
5.0.30.0030.06312.30
5.0.20.0030.02712.30
5.0.10.0030.02012.30
5.0.00.0000.06712.30
4.4.90.0030.03312.30
4.4.80.0000.03312.30
4.4.70.0030.01712.30
4.4.60.0000.03712.30
4.4.50.0030.02712.30
4.4.40.0030.05312.30
4.4.30.0030.03712.30
4.4.20.0030.03312.30
4.4.10.0000.03712.30
4.4.00.0030.03312.30
4.3.110.0030.02712.30
4.3.100.0030.02312.30
4.3.90.0070.01312.30
4.3.80.0100.04012.30
4.3.70.0000.02012.30
4.3.60.0000.01712.30
4.3.50.0070.01312.30
4.3.40.0000.02712.30
4.3.30.0000.02012.30
4.3.20.0070.01712.30
4.3.10.0000.03712.30
4.3.00.0030.01712.30

preferences:
37.33 ms | 401 KiB | 5 Q