3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "A-MTP-"; $i = 1; $j=1; $s=1; while ($i < 4) { $ch="ch".$s ; $ch= "$".$ch; $$ch =array(); while($j < 13) { $$ch[$s] = $a."-".$i."-".$j if($j % 4 == 0) { $s++; } $j++; } $i++; }

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)
5.4.270.3930.03719.09
5.4.260.3200.04719.09
5.4.250.3930.03318.84
5.4.240.3900.04318.98
5.4.230.4070.03019.19
5.4.220.3930.03718.86
5.4.210.4070.03018.93
5.4.200.4570.03319.30
5.4.190.4130.03719.05
5.4.180.4070.03718.84
5.4.170.3700.03019.12
5.4.160.4000.03018.96
5.4.150.3870.04319.20
5.4.140.3730.03716.36
5.4.130.3930.03716.41
5.4.120.4030.03716.46
5.4.110.4600.03316.38
5.4.100.4570.04016.45
5.4.90.4570.03016.54
5.4.80.4130.03716.27
5.4.70.3830.03716.44
5.4.60.4830.03716.43
5.4.50.3930.03316.48
5.4.40.3970.03716.23
5.4.30.3700.03016.53
5.4.20.4000.03716.25
5.4.10.3770.04016.53
5.4.00.3900.04015.79
5.3.280.4070.04314.56
5.3.270.3600.04014.67
5.3.260.3900.03714.45
5.3.250.3730.04014.44
5.3.240.3730.04014.46
5.3.230.3700.03714.50
5.3.220.4670.03314.43
5.3.210.4800.03714.40
5.3.200.4530.03014.51
5.3.190.4370.03714.65
5.3.180.4230.03314.47
5.3.170.3730.03714.54
5.3.160.3970.03314.66
5.3.150.4000.04014.41
5.3.140.4270.04314.41
5.3.130.3900.04014.59
5.3.120.3730.03714.40
5.3.110.3730.03014.41
5.3.100.4170.04713.98
5.3.90.4030.03013.87
5.3.80.4300.04013.87
5.3.70.3970.04313.97
5.3.60.3770.03714.10
5.3.50.3670.03313.90
5.3.40.3870.03713.90
5.3.30.4130.03713.81
5.3.20.4000.03313.78
5.3.10.3770.03313.59
5.3.00.3870.03713.50
5.2.170.3200.02711.19
5.2.160.3130.02710.99
5.2.150.3570.03311.01
5.2.140.3430.02711.16
5.2.130.3100.02311.12
5.2.120.3630.03311.15
5.2.110.2800.03311.26
5.2.100.3400.02710.94
5.2.90.3100.03011.11
5.2.80.3630.03310.96
5.2.70.3900.02711.13
5.2.60.3200.03010.89
5.2.50.3230.03010.95
5.2.40.2700.03310.83
5.2.30.2900.03310.81
5.2.20.2870.03710.81
5.2.10.2670.03010.97
5.2.00.2530.03010.68
5.1.60.2000.02310.11
5.1.50.1970.02010.12
5.1.40.2270.0209.91
5.1.30.1900.03010.45
5.1.20.1830.02310.33
5.1.10.2170.01710.12
5.1.00.1830.04010.14
5.0.50.0830.0239.55
5.0.40.1130.0209.55
5.0.30.0170.0339.56
5.0.20.1330.0179.56
5.0.10.1100.0209.57
5.0.00.0970.0279.57
4.4.90.1570.0139.55
4.4.80.1530.0139.55
4.4.70.1200.0139.55
4.4.60.1030.0179.55
4.4.50.1230.0179.55
4.4.40.1100.0209.55
4.4.30.0970.0139.55
4.4.20.0270.0179.55
4.4.10.1270.0179.55
4.4.00.1500.0279.55
4.3.110.1130.0179.56
4.3.100.0570.0179.56
4.3.90.0370.0109.56
4.3.80.0830.0209.57
4.3.70.0870.0139.57
4.3.60.0870.0139.57
4.3.50.1200.0139.57
4.3.40.1230.0239.57
4.3.30.0830.0209.57
4.3.20.0600.0179.57
4.3.10.0600.0179.57
4.3.00.0670.0209.57

preferences:
140.16 ms | 1394 KiB | 7 Q