3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('hhvm.enable_zend_sorting', 0); define("thisIsVeryBigKeyName0",0); define("thisIsVeryBigKeyName1",1); $a=array(); for ($n=0;$n<100000;$n++){ $a[]=array("thisIsVeryBigKeyName0"=>0,"thisIsVeryBigKeyName1"=>1); } for ($n=0;$n<2;$n++){ foreach ($a as $a2){ $test=$a2["thisIsVeryBigKeyName0"].$a2["thisIsVeryBigKeyName1"]; } }

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.0100.03019.13
8.3.50.0100.02920.36
8.3.40.0140.03121.18
8.3.30.0060.03621.29
8.3.20.0030.01522.83
8.3.10.0070.02024.36
8.3.00.0000.01723.00
8.2.180.0030.03119.13
8.2.170.0190.01622.96
8.2.160.0140.02824.22
8.2.150.0000.03424.18
8.2.140.0030.01624.66
8.2.130.0140.02526.16
8.2.120.0070.02020.54
8.2.110.0060.01922.89
8.2.100.0070.02120.50
8.2.90.0000.02521.89
8.2.80.0030.02120.13
8.2.70.0080.01920.00
8.2.60.0000.02620.53
8.2.50.0030.02120.55
8.2.40.0040.01923.05
8.2.30.0060.02120.43
8.2.20.0090.01520.01
8.2.10.0030.02120.33
8.2.00.0040.02219.98
8.1.280.0130.01925.92
8.1.270.0040.01823.88
8.1.260.0080.01126.35
8.1.250.0140.02428.09
8.1.240.0060.01827.90
8.1.230.0120.01925.83
8.1.220.0030.02422.64
8.1.210.0060.02222.23
8.1.200.0030.02422.22
8.1.190.0040.02222.22
8.1.180.0030.02322.23
8.1.170.0040.02123.59
8.1.160.0030.02326.69
8.1.150.0030.02123.70
8.1.140.0030.03022.31
8.1.130.0100.01922.62
8.1.120.0000.02622.32
8.1.110.0000.02622.38
8.1.100.0060.01922.22
8.1.90.0030.02322.35
8.1.80.0030.02222.32
8.1.70.0070.02022.33
8.1.60.0090.01922.41
8.1.50.0100.01722.45
8.1.40.0060.02322.29
8.1.30.0040.02522.47
8.1.20.0030.02322.43
8.1.10.0070.02322.37
8.1.00.0030.02422.31
8.0.300.0060.01921.60
8.0.290.0070.02021.50
8.0.280.0030.02323.09
8.0.270.0030.02321.98
8.0.260.0070.01721.91
8.0.250.0060.01921.65
8.0.240.0100.01621.63
8.0.230.0030.02321.76
8.0.220.0100.01621.66
8.0.210.0070.02021.66
8.0.200.0070.02321.76
8.0.190.0000.02821.66
8.0.180.0090.01821.71
8.0.170.0060.02221.67
8.0.160.0060.02021.64
8.0.150.0070.02021.61
8.0.140.0070.02021.52
8.0.130.0040.02218.16
8.0.120.0100.01721.71
8.0.110.0030.02321.61
8.0.100.0000.02521.66
8.0.90.0070.02021.43
8.0.80.0130.03421.66
8.0.70.0110.01421.49
8.0.60.0070.02021.63
8.0.50.0030.02421.52
8.0.30.0190.04221.93
8.0.20.0130.04021.72
8.0.10.0060.02221.62
8.0.00.0190.03721.49
7.4.330.0070.01618.02
7.4.320.0070.02021.31
7.4.300.0100.01621.06
7.4.290.0060.02221.21
7.4.280.0070.02821.19
7.4.270.0040.02221.27
7.4.260.0070.02021.25
7.4.250.0030.02621.31
7.4.240.0070.01921.24
7.4.230.0060.01921.09
7.4.220.0160.03921.10
7.4.210.0130.03321.20
7.4.200.0030.02321.33
7.4.160.0100.03921.18
7.4.150.0160.03621.28
7.4.140.0140.03721.29
7.4.130.0160.03521.29
7.4.120.0150.03821.31
7.4.110.0130.04021.14
7.4.100.0200.03321.41
7.4.90.0170.03721.15
7.4.80.0130.04621.26
7.4.70.0130.04721.40
7.4.60.0170.03721.16
7.4.50.0030.03221.13
7.4.40.0130.03921.08
7.4.30.0160.03621.20
7.4.10.0030.05819.83
7.4.00.0120.03919.58
7.3.330.0000.02517.90
7.3.320.0040.02917.97
7.3.310.0000.02721.18
7.3.300.0030.02321.14
7.3.290.0090.03921.01
7.3.280.0120.04521.01
7.3.270.0370.05121.25
7.3.260.0190.04121.26
7.3.250.0160.03821.13
7.3.240.0210.03121.25
7.3.230.0270.04621.11
7.3.210.0160.03621.24
7.3.200.0130.04621.14
7.3.190.0210.02921.29
7.3.180.0150.03821.29
7.3.170.0170.05521.10
7.3.160.0140.05721.09
7.3.130.0070.03719.95
7.3.120.0060.05519.61
7.3.110.0160.04519.76
7.3.100.0070.03319.80
7.3.90.0100.02619.69
7.3.80.0070.03419.42
7.3.70.0060.03519.64
7.3.60.0030.04319.49
7.3.50.0030.03519.36
7.3.40.0030.03419.39
7.3.30.0130.02619.66
7.3.20.0000.04822.26
7.3.10.0070.04022.36
7.3.00.0070.02522.54
7.2.330.0160.04121.14
7.2.320.0170.04721.14
7.2.310.0170.05121.52
7.2.300.0100.04521.44
7.2.290.0130.04921.09
7.2.260.0130.03319.92
7.2.250.0040.04619.66
7.2.240.0030.03519.77
7.2.230.0060.03820.04
7.2.220.0090.03119.53
7.2.210.0070.03419.72
7.2.200.0130.03019.75
7.2.190.0030.04619.82
7.2.180.0160.03219.93
7.2.170.0100.03019.63
7.2.160.0100.04319.80
7.2.150.0060.03822.60
7.2.140.0100.03322.63
7.2.130.0030.03722.53
7.2.120.0000.05922.59
7.2.110.0160.03522.63
7.2.100.0030.04022.50
7.2.90.0060.03522.62
7.2.80.0030.05722.78
7.2.70.0000.04522.82
7.2.60.0100.04622.98
7.2.50.0030.04222.98
7.2.40.0030.03522.61
7.2.30.0070.03722.91
7.2.20.0070.03122.96
7.2.10.0070.03122.82
7.2.00.0070.04123.78
7.1.330.0100.04921.90
7.1.320.0100.04921.61
7.1.310.0000.05621.86
7.1.300.0100.05021.71
7.1.290.0030.05221.73
7.1.280.0030.05521.50
7.1.270.0070.05021.43
7.1.260.0030.05721.50
7.1.250.0100.04521.72
7.1.240.0030.07221.62
7.1.230.0070.07021.45
7.1.220.0030.06121.74
7.1.210.0000.05721.76
7.1.200.0060.05021.75
7.1.190.0000.06321.70
7.1.180.0030.05521.51
7.1.170.0030.05521.70
7.1.160.0030.06321.74
7.1.150.0000.06021.77
7.1.140.0030.05521.75
7.1.130.0070.04721.85
7.1.120.0070.07021.48
7.1.110.0100.04921.83
7.1.100.0310.03821.75
7.1.90.0000.05221.86
7.1.80.0100.05321.89
7.1.70.0030.05922.34
7.1.60.0080.06122.33
7.1.50.0050.04122.29
7.1.40.0070.06921.53
7.1.30.0130.05121.80
7.1.20.0060.05521.68
7.1.10.0070.05921.71
7.1.00.0080.08124.93
7.0.330.0070.09455.66
7.0.320.0170.07055.61
7.0.310.0030.10755.70
7.0.300.0070.08655.39
7.0.290.0170.07755.81
7.0.280.0070.11755.66
7.0.270.0130.07255.47
7.0.260.0270.09055.53
7.0.250.0100.09455.60
7.0.240.0190.11755.60
7.0.230.0200.09955.86
7.0.220.0170.07455.94
7.0.210.0030.08155.82
7.0.200.1700.08255.01
7.0.190.0130.08755.86
7.0.180.0240.08855.74
7.0.170.0200.08255.70
7.0.160.0100.08355.65
7.0.150.0030.12155.46
7.0.140.0120.09958.98
7.0.130.0130.09355.80
7.0.120.0200.08455.80
7.0.110.0070.12755.72
7.0.100.0130.10955.74
7.0.90.0260.08655.77
7.0.80.0070.09355.76
7.0.70.0070.10455.56
7.0.60.0450.12157.51
7.0.50.0200.10956.31
7.0.40.0080.08421.48
7.0.30.0270.11821.45
7.0.20.0170.07921.57
7.0.10.0130.12121.42
7.0.00.0100.12721.55
5.6.400.0370.19671.40
5.6.390.0330.20671.49
5.6.380.0400.20571.53
5.6.370.0300.20371.77
5.6.360.0340.19171.60
5.6.350.0470.20771.35
5.6.340.0230.21571.35
5.6.330.0330.20171.45
5.6.320.0130.24071.21
5.6.310.0130.22771.58
5.6.300.0430.21671.57
5.6.290.0370.21771.46
5.6.280.0250.24374.74
5.6.270.0300.25671.67
5.6.260.0370.24971.41
5.6.250.0170.22771.60
5.6.240.0500.26771.27
5.6.230.0540.26871.14
5.6.220.0430.24271.57
5.6.210.0200.19874.44
5.6.200.0300.22273.10
5.6.190.0350.24574.39
5.6.180.0520.23374.47
5.6.170.0270.20274.30
5.6.160.0250.18773.13
5.6.150.0270.21373.30
5.6.140.0270.21373.11
5.6.130.0230.25573.24
5.6.120.0280.22674.77
5.6.110.0400.22474.79
5.6.100.0280.22474.71
5.6.90.0380.23174.54
5.6.80.0270.23874.39
5.6.70.0220.24071.38
5.6.60.0500.18871.43
5.6.50.0370.19871.34
5.6.40.0230.21471.62
5.6.30.0460.20371.02
5.6.20.0290.19871.50
5.6.10.0330.26871.17
5.6.00.0330.26071.16
5.5.380.0270.23771.69
5.5.370.0370.21471.22
5.5.360.0560.18671.42
5.5.350.0330.20774.41
5.5.340.0130.19873.05
5.5.330.0320.23074.11
5.5.320.0320.21574.12
5.5.310.0310.21074.29
5.5.300.0280.18573.13
5.5.290.0270.24573.22
5.5.280.0280.19674.59
5.5.270.0360.20074.39
5.5.260.0400.22274.51
5.5.250.0370.24174.32
5.5.240.0300.20374.22
5.5.230.0330.19471.03
5.5.220.0260.19971.09
5.5.210.0270.21371.29
5.5.200.0400.18471.19
5.5.190.0310.19771.52
5.5.180.0330.21570.86
5.5.170.0230.24571.21
5.5.160.0230.25271.14
5.5.150.0230.27071.22
5.5.140.0400.24471.37
5.5.130.0200.23271.55
5.5.120.0170.29471.31
5.5.110.0370.21371.21
5.5.100.0400.20970.98
5.5.90.0270.24370.93
5.5.80.0270.24971.00
5.5.70.0300.20270.89
5.5.60.0370.25171.45
5.5.50.0430.20971.31
5.5.40.0370.22171.27
5.5.30.0330.27371.02
5.5.20.0330.28671.07
5.5.10.0300.24071.26
5.5.00.0400.21571.36
5.4.450.0650.25871.97
5.4.440.0780.26472.20
5.4.430.0750.23572.04
5.4.420.0380.24572.13
5.4.410.0830.23272.02
5.4.400.0700.25571.86
5.4.390.0500.25371.75
5.4.380.0420.23971.72
5.4.370.0280.27371.86
5.4.360.0550.26271.68
5.4.350.0500.24571.81
5.4.340.0480.30171.70
5.4.330.0270.19667.88
5.4.320.0480.30471.66
5.4.310.0500.29271.66
5.4.300.0370.26371.69
5.4.290.0470.27371.79
5.4.280.0470.27571.71
5.4.270.0480.33371.79
5.4.260.0570.26871.67
5.4.250.0480.24371.80
5.4.240.0450.26871.70
5.4.230.0500.25071.79
5.4.220.0400.24871.81
5.4.210.0530.24071.74
5.4.200.0480.24670.73
5.4.190.0380.26771.68
5.4.180.0350.28371.73
5.4.170.0350.26571.63
5.4.160.0500.25671.72
5.4.150.0450.26971.76
5.4.140.0430.24570.58
5.4.130.0570.27470.47
5.4.120.0420.26870.50
5.4.110.0420.26070.65
5.4.100.0520.29170.56
5.4.90.0600.25770.54
5.4.80.0500.23270.63
5.4.70.0550.26970.51
5.4.60.0330.26070.57
5.4.50.0430.23870.50
5.4.40.0370.26070.55
5.4.30.0450.26270.46
5.4.20.0520.26970.39
5.4.10.0520.24770.42
5.4.00.0380.27270.16
5.3.290.0670.31375.22
5.3.280.0600.35075.09
5.3.270.0570.32375.16
5.3.260.0630.32075.16
5.3.250.0670.29075.24
5.3.240.0530.31075.27
5.3.230.0530.31775.02
5.3.220.0670.31775.19
5.3.210.0600.30775.21
5.3.200.0430.32375.23
5.3.190.0530.37375.12
5.3.180.0430.32775.23
5.3.170.1130.40775.21
5.3.160.0500.31375.24
5.3.150.0470.34375.12
5.3.140.0900.29375.10
5.3.130.0600.36075.05
5.3.120.0430.31775.20
5.3.110.0600.28775.11
5.3.100.0330.40075.16
5.3.90.0370.32374.44
5.3.80.0570.35774.49
5.3.70.0700.31074.63
5.3.60.0530.31774.59
5.3.50.0770.37074.56
5.3.40.0570.33374.52
5.3.30.0400.35074.48
5.3.20.0670.31074.29
5.3.10.0530.96774.27
5.3.00.0930.94074.03
5.2.170.0430.26769.07
5.2.160.0470.29769.15
5.2.150.0600.23369.23
5.2.140.0430.31769.15
5.2.130.0500.29069.10
5.2.120.0430.24769.03
5.2.110.0470.30069.10
5.2.100.0830.26769.10
5.2.90.0470.28069.07
5.2.80.0630.24069.18
5.2.70.0600.28069.01
5.2.60.0600.27068.97
5.2.50.0570.28068.75
5.2.40.0530.27068.72
5.2.30.0570.40768.76
5.2.20.0630.28368.75
5.2.10.0430.28068.78
5.2.00.0500.28368.65
5.1.60.0700.29784.00
5.1.50.0700.27384.01
5.1.40.0600.28783.87
5.1.30.0700.32084.13
5.1.20.0600.30384.38
5.1.10.0530.27783.97
5.1.00.0830.29083.89
5.0.50.0730.43382.50
5.0.40.0470.43082.42
5.0.30.0800.52382.24
5.0.20.0630.44082.10
5.0.10.0630.40782.04
5.0.00.0570.45782.07
4.4.90.0770.51379.86
4.4.80.0730.53379.86
4.4.70.0370.58779.82
4.4.60.0800.43779.82
4.4.50.0730.43379.84
4.4.40.0730.42379.83
4.4.30.0600.42079.88
4.4.20.0630.42379.93
4.4.10.0430.41779.88
4.4.00.0470.49779.86
4.3.110.0570.48379.77
4.3.100.0730.60079.75
4.3.90.0730.36379.69
4.3.80.0470.40379.72
4.3.70.0630.38079.72
4.3.60.0570.45379.71
4.3.50.0670.40779.75
4.3.40.0400.48079.69
4.3.30.0730.37778.52
4.3.20.0830.59078.48
4.3.10.0630.39078.55
4.3.00.0400.25778.32

preferences:
51.04 ms | 400 KiB | 5 Q