3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t = $tt = 2044; $w = $ww = 1212; while (($w / $t) < .60) { $w++; $t++; } echo "w = $w, t = $t\n"; echo "streak: " . ($t - $tt), "\n"; $t = $tt; $w = $ww; $n = 0; $c = 0; while (($w / $t) < .60) { $w++; $t++; $n++; if ($n == 5) { $n = 0; $t++; $c++; } } echo "runs of five: " + $c;

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.0120.00618.43
8.3.50.0130.00616.38
8.3.40.0040.01118.76
8.3.30.0070.00718.99
8.3.20.0110.00419.96
8.3.10.0130.00721.95
8.3.00.0060.00321.01
8.2.180.0180.00018.47
8.2.170.0100.00722.96
8.2.160.0100.00722.25
8.2.150.0110.00724.18
8.2.140.0040.01224.66
8.2.130.0040.00421.97
8.2.120.0150.00326.35
8.2.110.0030.00620.24
8.2.100.0090.00317.61
8.2.90.0000.00819.22
8.2.80.0030.00517.97
8.2.70.0040.00417.74
8.2.60.0000.00717.93
8.2.50.0040.00418.10
8.2.40.0040.00422.30
8.2.30.0040.00420.91
8.2.20.0060.00418.01
8.2.10.0000.00818.00
8.2.00.0040.00418.18
8.1.280.0140.00725.92
8.1.270.0040.00422.19
8.1.260.0040.00426.35
8.1.250.0070.01028.09
8.1.240.0060.00321.95
8.1.230.0080.00417.77
8.1.220.0060.00317.74
8.1.210.0090.00018.77
8.1.200.0030.00717.48
8.1.190.0060.00317.13
8.1.180.0050.00318.10
8.1.170.0040.00418.61
8.1.160.0050.00218.95
8.1.150.0040.00420.67
8.1.140.0050.00219.50
8.1.130.0030.00318.84
8.1.120.0000.00817.47
8.1.110.0040.00417.51
8.1.100.0050.00317.54
8.1.90.0040.00417.36
8.1.80.0000.00717.32
8.1.70.0000.00717.53
8.1.60.0040.00417.60
8.1.50.0000.00817.42
8.1.40.0060.00317.55
8.1.30.0040.00417.69
8.1.20.0030.00617.65
8.1.10.0040.00417.63
8.1.00.0030.00617.58
8.0.300.0040.00420.01
8.0.290.0070.00016.63
8.0.280.0000.00718.52
8.0.270.0000.00717.26
8.0.260.0030.00516.75
8.0.250.0000.00717.04
8.0.240.0060.00316.81
8.0.230.0000.00817.08
8.0.220.0000.00716.96
8.0.210.0000.00716.97
8.0.200.0000.01016.97
8.0.190.0000.00817.04
8.0.180.0040.00416.84
8.0.170.0000.00717.08
8.0.160.0000.00817.00
8.0.150.0040.00416.98
8.0.140.0100.00016.93
8.0.130.0030.00513.36
8.0.120.0050.00216.94
8.0.110.0050.00216.90
8.0.100.0000.00717.07
8.0.90.0030.00316.86
8.0.80.0240.00016.85
8.0.70.0040.00416.91
8.0.60.0040.00416.96
8.0.50.0000.00716.93
8.0.30.0140.00617.14
8.0.20.0120.00917.40
8.0.10.0000.00716.93
8.0.00.0080.00816.86
7.4.330.0000.00515.55
7.4.320.0000.00716.54
7.4.300.0060.00016.43
7.4.290.0030.00316.64
7.4.280.0060.00316.62
7.4.270.0000.00716.65
7.4.260.0000.00716.57
7.4.250.0030.00316.56
7.4.240.0000.00816.54
7.4.230.0070.00016.51
7.4.220.0140.01016.65
7.4.210.0070.00716.61
7.4.200.0000.00816.71
7.4.160.0060.01116.53
7.4.150.0120.00617.40
7.4.140.0120.00517.86
7.4.130.0180.00916.71
7.4.120.0100.00816.54
7.4.110.0150.00316.54
7.4.100.0170.00716.66
7.4.90.0100.00616.50
7.4.80.0110.01119.39
7.4.70.0030.01516.68
7.4.60.0030.01316.41
7.4.50.0090.00616.64
7.4.40.0060.01316.67
7.4.30.0160.00716.67
7.4.10.0150.00314.75
7.4.00.0030.01115.21
7.3.330.0050.00013.16
7.3.320.0030.00313.39
7.3.310.0040.00416.26
7.3.300.0040.00416.30
7.3.290.0050.01116.35
7.3.280.0100.00716.40
7.3.270.0120.00617.40
7.3.260.0170.00616.62
7.3.250.0090.01216.48
7.3.240.0140.00516.35
7.3.230.0120.00316.49
7.3.210.0060.01516.29
7.3.200.0100.01316.35
7.3.190.0100.01016.55
7.3.180.0040.01316.37
7.3.170.0090.01316.45
7.3.160.0100.00616.51
7.3.130.0030.01614.99
7.3.120.0060.00614.71
7.3.110.0090.00914.90
7.3.100.0100.00314.91
7.3.90.0070.00715.04
7.3.80.0040.01114.96
7.3.70.0100.00014.65
7.3.60.0040.00814.93
7.3.50.0030.01014.48
7.3.40.0030.00515.02
7.3.30.0030.01014.81
7.3.20.0030.00616.63
7.3.10.0090.00616.91
7.3.00.0060.00916.69
7.2.330.0110.00716.60
7.2.320.0110.00616.76
7.2.310.0090.01216.75
7.2.300.0130.00316.56
7.2.290.0160.00216.77
7.2.260.0060.01315.27
7.2.250.0070.01015.00
7.2.240.0100.00715.01
7.2.230.0040.01115.08
7.2.220.0040.00815.20
7.2.210.0030.01014.86
7.2.200.0030.00615.17
7.2.190.0040.01115.02
7.2.180.0150.00014.80
7.2.170.0040.01115.18
7.2.160.0090.00615.12
7.2.150.0090.00617.16
7.2.140.0030.01316.71
7.2.130.0040.00716.85
7.2.120.0100.00317.15
7.2.110.0040.00816.98
7.2.100.0040.01116.63
7.2.90.0000.01116.93
7.2.80.0070.00717.13
7.2.70.0040.01416.84
7.2.60.0060.00816.91
7.2.50.0000.01516.96
7.2.40.0060.00917.05
7.2.30.0050.00517.12
7.2.20.0030.00617.05
7.2.10.0000.01416.97
7.2.00.0070.00618.10
7.1.330.0060.00615.88
7.1.320.0070.00315.83
7.1.310.0000.00815.77
7.1.300.0030.01015.77
7.1.290.0030.01216.00
7.1.280.0000.00815.72
7.1.270.0000.00815.91
7.1.260.0030.01315.64
7.1.250.0090.00316.00
7.1.240.0000.01216.00
7.1.230.0070.00715.88
7.1.220.0060.00615.54
7.1.210.0030.00615.89
7.1.200.0050.00815.57
7.1.190.0050.00515.71
7.1.180.0030.01015.80
7.1.170.0070.01015.74
7.1.160.0030.00915.71
7.1.150.0130.00015.97
7.1.140.0110.00415.83
7.1.130.0100.00615.76
7.1.120.0070.00715.92
7.1.110.0030.00916.00
7.1.100.0060.00317.16
7.1.90.0040.00716.02
7.1.80.0030.01415.93
7.1.70.0030.00616.60
7.1.60.0210.00624.52
7.1.50.0180.01024.43
7.1.40.0250.00524.11
7.1.30.0330.00624.19
7.1.20.0220.00824.31
7.1.10.0670.00715.15
7.1.00.0100.01315.29
7.0.330.0030.01015.36
7.0.320.0090.00615.41
7.0.310.0060.00615.47
7.0.300.0040.01115.26
7.0.290.0050.00815.59
7.0.280.0040.00815.43
7.0.270.0000.00915.39
7.0.260.0050.00315.48
7.0.250.0050.00515.46
7.0.240.0070.00415.31
7.0.230.0030.01015.61
7.0.220.0040.00415.60
7.0.210.0040.00415.34
7.0.200.0150.00415.23
7.0.190.0130.00915.19
7.0.180.0100.01114.75
7.0.170.0170.00514.84
7.0.160.0180.00814.86
7.0.150.0130.00814.93
7.0.140.0170.00415.03
7.0.130.0130.01014.95
7.0.120.0170.00515.11
7.0.110.0130.00815.08
7.0.100.0160.00614.90
7.0.90.0130.00815.00
7.0.80.0100.01415.04
7.0.70.0130.01115.00
7.0.60.0130.00914.96
7.0.50.0200.00515.10
7.0.40.0130.01014.08
7.0.30.0170.00614.01
7.0.20.0120.01213.92
7.0.10.0140.00814.15
7.0.00.0170.00714.05
5.6.400.0080.00414.37
5.6.390.0110.00314.39
5.6.380.0040.01214.32
5.6.370.0120.00314.30
5.6.360.0000.01414.25
5.6.350.0100.00314.11
5.6.340.0030.00614.48
5.6.330.0090.00914.67
5.6.320.0080.00014.39
5.6.310.0070.00714.11
5.6.300.0030.01014.61
5.6.290.0060.00814.02
5.6.280.0030.00714.57
5.6.270.0030.00614.46
5.6.260.0100.00314.29
5.6.250.0040.00714.30
5.6.240.0060.01014.34
5.6.230.0000.01014.40
5.6.220.0110.00414.49
5.6.210.0040.01114.45
5.6.200.0040.00414.38
5.6.190.0130.00014.45
5.6.180.0070.00014.33
5.6.170.0040.01114.25
5.6.160.0060.00314.55
5.6.150.0030.01014.35
5.6.140.0030.00614.32
5.6.130.0030.00614.56
5.6.120.0030.00614.52
5.6.110.0000.01314.37
5.6.100.0000.01414.23
5.6.90.0040.01114.08
5.6.80.0060.00613.97
5.6.70.0000.01214.30
5.6.60.0000.00914.15
5.6.50.0040.00813.93
5.6.40.0060.00614.41
5.6.30.0030.00714.17
5.6.20.0080.00614.20
5.6.10.0090.00614.14
5.6.00.0120.00414.29

preferences:
42.35 ms | 400 KiB | 5 Q