3v4l.org

run code in 300+ PHP versions simultaneously
<?php $txt = ''; for ( $i=0; $i<=5; $i++ ) { $incr = ($i<2) ? $i : $i+3; $txt = ($i<2) ? ((0===$i) ? $starNum=$i : ($starNum=$i) . ' & ' . ($i+1)) : (($starNum=$i)+2) . ' & ' . ($i+3); 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.0190.00318.43
8.3.50.0070.00718.28
8.3.40.0160.00618.47
8.3.30.0070.01118.85
8.3.20.0070.00021.77
8.3.10.0050.00321.92
8.3.00.0040.00419.54
8.2.180.0090.00618.54
8.2.170.0090.00622.96
8.2.160.0100.00320.25
8.2.150.0070.00024.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0080.00019.23
8.2.110.0060.00321.10
8.2.100.0030.01017.91
8.2.90.0050.00319.21
8.2.80.0040.00417.97
8.2.70.0040.00417.68
8.2.60.0040.00418.03
8.2.50.0000.00818.22
8.2.40.0000.00820.31
8.2.30.0000.00719.31
8.2.20.0040.00418.16
8.2.10.0000.00718.02
8.2.00.0040.00418.02
8.1.280.0110.00425.92
8.1.270.0000.00824.02
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0090.00022.68
8.1.230.0110.00017.72
8.1.220.0050.00317.77
8.1.210.0000.00818.77
8.1.200.0050.00317.35
8.1.190.0030.00617.22
8.1.180.0060.00318.10
8.1.170.0040.00418.90
8.1.160.0040.00418.82
8.1.150.0000.00718.95
8.1.140.0070.00017.70
8.1.130.0030.00319.03
8.1.120.0070.00017.50
8.1.110.0040.00417.40
8.1.100.0040.00417.48
8.1.90.0040.00417.39
8.1.80.0000.00717.36
8.1.70.0030.00517.48
8.1.60.0090.00017.51
8.1.50.0030.00617.55
8.1.40.0040.00417.43
8.1.30.0000.00817.52
8.1.20.0000.00817.54
8.1.10.0030.00717.38
8.1.00.0080.00017.44
8.0.300.0000.00718.77
8.0.290.0030.00616.63
8.0.280.0050.00318.36
8.0.270.0030.00317.14
8.0.260.0030.00319.16
8.0.250.0040.00417.02
8.0.240.0030.00616.93
8.0.230.0040.00416.95
8.0.220.0030.00516.91
8.0.210.0070.00016.90
8.0.200.0000.00716.96
8.0.190.0040.00416.88
8.0.180.0070.00016.97
8.0.170.0090.00016.86
8.0.160.0090.00016.78
8.0.150.0050.00316.89
8.0.140.0030.00516.74
8.0.130.0050.00013.31
8.0.120.0000.00816.81
8.0.110.0050.00216.88
8.0.100.0040.00416.73
8.0.90.0000.00716.79
8.0.80.0110.01116.95
8.0.70.0000.00816.71
8.0.60.0000.00816.91
8.0.50.0040.00416.72
8.0.30.0130.01017.08
8.0.20.0120.01117.40
8.0.10.0040.00416.96
8.0.00.0100.00716.68
7.4.330.0050.00015.55
7.4.320.0040.00416.52
7.4.300.0030.00316.53
7.4.290.0040.00416.61
7.4.280.0080.00016.50
7.4.270.0030.00316.54
7.4.260.0000.00916.49
7.4.250.0050.00216.57
7.4.240.0080.00016.63
7.4.230.0040.00216.37
7.4.220.0030.00516.51
7.4.210.0110.00716.64
7.4.200.0030.00316.63
7.4.160.0090.00716.43
7.4.140.0090.00917.86
7.4.130.0070.01116.48
7.4.120.0110.00816.47
7.4.110.0120.00316.49
7.4.100.0060.01216.40
7.4.90.0150.00316.57
7.4.80.0060.01519.39
7.4.70.0110.00716.41
7.4.60.0030.01216.41
7.4.50.0070.00716.46
7.4.40.0060.01116.28
7.4.00.0090.00614.86
7.3.330.0050.00213.22
7.3.320.0060.00013.12
7.3.310.0040.00416.42
7.3.300.0030.00316.41
7.3.290.0030.00316.34
7.3.280.0060.01016.32
7.3.260.0090.01116.51
7.3.240.0090.01116.41
7.3.230.0070.01016.36
7.3.210.0060.00916.52
7.3.200.0090.00816.66
7.3.190.0160.00016.52
7.3.180.0090.00716.42
7.3.170.0100.00616.55
7.3.160.0040.01216.27
7.2.330.0070.01016.49
7.2.320.0140.00316.45
7.2.310.0130.00916.51
7.2.300.0030.01516.53
7.2.290.0080.00816.80
7.2.40.0940.01017.97
7.2.30.0970.01618.05
7.2.20.0920.01217.49
7.2.10.0450.01117.80
7.2.00.0610.01117.48
7.1.200.0070.00715.95
7.1.160.0950.01316.49
7.1.150.0600.01116.55
7.1.140.0940.01316.75
7.1.130.0520.01216.37
7.1.120.0670.00816.84
7.1.110.1570.01116.37
7.1.100.0660.00915.93
7.1.90.1030.01316.06
7.1.80.0950.01216.07
7.1.70.0980.01215.21
7.1.60.1200.01633.29
7.1.50.1130.01433.09
7.1.40.0980.01532.59
7.1.30.1210.01732.58
7.1.20.0860.01732.63
7.1.10.1020.01314.81
7.1.00.1070.01414.63

preferences:
55.71 ms | 400 KiB | 5 Q