3v4l.org

run code in 300+ PHP versions simultaneously
<?php $txt = ''; for ( $i=0; $i<=5; $i++ ) { $txt = ($i<2) ? ((0===$i) ? $starNum=$i : ($starNum=$i) . ' & ' . ($i+1)) : (($starNum=$i)+1) . ' & ' . ($i+2); echo 'Starnum: '.$starNum.' - '.$txt."\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)
8.3.60.0070.01118.28
8.3.50.0070.00718.09
8.3.40.0090.00618.71
8.3.30.0030.01418.45
8.3.20.0070.00021.77
8.3.10.0000.00821.78
8.3.00.0040.00419.58
8.2.180.0060.00918.06
8.2.170.0040.01122.96
8.2.160.0110.00320.33
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00819.38
8.2.120.0000.00726.35
8.2.110.0060.00321.04
8.2.100.0130.00017.72
8.2.90.0040.00417.72
8.2.80.0040.00418.00
8.2.70.0000.00818.04
8.2.60.0090.00017.90
8.2.50.0040.00418.10
8.2.40.0000.00720.54
8.2.30.0040.00419.39
8.2.20.0040.00418.15
8.2.10.0040.00417.98
8.2.00.0040.00418.11
8.1.280.0120.00325.92
8.1.270.0040.00423.84
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.46
8.1.230.0070.00422.68
8.1.220.0030.00617.79
8.1.210.0040.00418.77
8.1.200.0000.00817.35
8.1.190.0000.00917.23
8.1.180.0080.00018.10
8.1.170.0000.00818.91
8.1.160.0070.00018.79
8.1.150.0020.00519.00
8.1.140.0040.00417.53
8.1.130.0000.00719.00
8.1.120.0000.00717.47
8.1.110.0000.00717.50
8.1.100.0040.00417.50
8.1.90.0030.00517.43
8.1.80.0000.00717.42
8.1.70.0000.00717.42
8.1.60.0050.00317.60
8.1.50.0000.00817.54
8.1.40.0000.00817.53
8.1.30.0040.00417.47
8.1.20.0040.00417.59
8.1.10.0000.00817.39
8.1.00.0040.00417.40
8.0.300.0000.00820.03
8.0.290.0040.00416.63
8.0.280.0000.00718.30
8.0.270.0000.00817.16
8.0.260.0030.00319.14
8.0.250.0000.00616.84
8.0.240.0100.00016.95
8.0.230.0000.00716.89
8.0.220.0000.00816.87
8.0.210.0030.00316.92
8.0.200.0030.00316.83
8.0.190.0040.00416.89
8.0.180.0030.00316.94
8.0.170.0030.00616.82
8.0.160.0000.00816.89
8.0.150.0000.00716.82
8.0.140.0040.00416.73
8.0.130.0000.00513.36
8.0.120.0000.00716.75
8.0.110.0040.00416.88
8.0.100.0070.00016.82
8.0.90.0000.00816.82
8.0.80.0120.00916.93
8.0.70.0040.00416.82
8.0.60.0070.00016.71
8.0.50.0000.00816.94
8.0.30.0090.01117.08
8.0.20.0170.00617.40
8.0.10.0050.00316.91
8.0.00.0040.01516.82
7.4.330.0020.00215.55
7.4.320.0000.00616.52
7.4.300.0030.00316.62
7.4.290.0040.00416.62
7.4.280.0080.00016.46
7.4.270.0070.00016.61
7.4.260.0060.00316.50
7.4.250.0070.00016.39
7.4.240.0000.00716.55
7.4.230.0000.00716.64
7.4.220.0000.00716.64
7.4.210.0110.00816.55
7.4.200.0030.00316.50
7.4.160.0090.00716.49
7.4.140.0090.01017.86
7.4.130.0130.00916.51
7.4.120.0110.01016.50
7.4.110.0060.01716.55
7.4.100.0080.01516.57
7.4.90.0060.01316.46
7.4.80.0040.01519.39
7.4.70.0030.01316.51
7.4.60.0030.01316.32
7.4.50.0070.00716.43
7.4.40.0090.00916.43
7.4.00.0100.00715.05
7.3.330.0070.00013.23
7.3.320.0030.00313.06
7.3.310.0040.00416.44
7.3.300.0030.00316.24
7.3.290.0060.00016.17
7.3.280.0140.00716.29
7.3.260.0100.00916.45
7.3.240.0080.00816.41
7.3.230.0000.01616.30
7.3.210.0100.00716.54
7.3.200.0030.01316.42
7.3.190.0060.01216.65
7.3.180.0090.00616.17
7.3.170.0040.01216.32
7.3.160.0070.01016.47
7.2.330.0120.00616.61
7.2.320.0060.01216.49
7.2.310.0100.00716.69
7.2.300.0110.00516.78
7.2.290.0040.01516.46
7.2.110.0140.00016.74
7.2.60.0050.00516.98
7.2.40.1070.01017.75
7.2.30.1100.01417.83
7.2.20.1000.01117.70
7.2.10.1250.01117.71
7.2.00.1030.01317.44
7.1.200.0040.01215.55
7.1.160.1130.01116.82
7.1.150.0970.01016.79
7.1.140.1240.01316.79
7.1.130.1140.01116.69
7.1.120.0900.01016.62
7.1.110.1140.01116.25
7.1.100.1110.01216.03
7.1.90.1370.01115.89
7.1.80.1220.00916.09
7.1.70.1470.00815.24
7.1.60.1380.01533.01
7.1.50.1840.01332.98
7.1.40.2390.01532.65
7.1.30.1650.01332.77
7.1.20.1810.01532.69
7.1.10.2000.01214.73
7.1.00.1330.01215.03

preferences:
55.15 ms | 401 KiB | 5 Q