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.0460.05040.46
8.3.50.0230.05840.75
8.3.40.0340.04142.29
8.3.30.0230.05042.78
8.3.20.0200.02043.85
8.3.10.0190.02945.54
8.3.00.0090.01643.59
8.2.180.0320.04240.16
8.2.170.0470.02742.54
8.2.160.0170.04544.37
8.2.150.0240.02142.50
8.2.140.0130.02742.94
8.2.130.0070.02744.52
8.2.120.0190.01640.96
8.2.110.0220.02243.80
8.2.100.0160.03340.72
8.2.90.0100.02742.10
8.2.80.0170.02440.38
8.2.70.0070.03240.50
8.2.60.0120.03940.68
8.2.50.0170.02440.50
8.2.40.0100.03141.22
8.2.30.0130.02740.99
8.2.20.0140.02440.66
8.2.10.0060.03140.92
8.2.00.0030.03740.49
8.1.280.0160.04658.23
8.1.270.0110.01144.87
8.1.260.0100.01346.00
8.1.250.0190.00447.92
8.1.240.0240.00344.89
8.1.230.0110.02146.66
8.1.220.0100.01043.41
8.1.210.0120.00843.03
8.1.200.0070.01442.88
8.1.190.0160.00642.63
8.1.180.0150.00443.13
8.1.170.0150.00644.22
8.1.160.0110.00847.41
8.1.150.0110.00744.37
8.1.140.0100.01042.77
8.1.130.0170.00343.39
8.1.120.0120.00642.84
8.1.110.0110.00842.99
8.1.100.0070.01042.82
8.1.90.0130.00642.96
8.1.80.0100.01042.95
8.1.70.0070.01142.91
8.1.60.0110.01142.98
8.1.50.0110.01042.85
8.1.40.0070.01442.96
8.1.30.0160.00643.01
8.1.20.0120.00942.94
8.1.10.0140.03456.78
8.1.00.0240.03156.83
8.0.300.0160.03056.49
8.0.290.0190.03255.88
8.0.280.0130.02857.59
8.0.270.0200.02456.29
8.0.260.0160.02356.45
8.0.250.0130.03556.10
8.0.240.0130.03256.11
8.0.230.0160.02656.12
8.0.220.0160.02656.13
8.0.210.0190.02355.88
8.0.200.0130.03656.19
8.0.190.0170.03056.13
8.0.180.0290.02356.08
8.0.170.0170.03155.99
8.0.160.0200.03056.11
8.0.150.0220.03156.02
8.0.140.0130.03355.93
8.0.130.0210.02152.58
8.0.120.0130.03755.86
8.0.110.0170.03056.01
8.0.100.0230.02356.00
8.0.90.0170.02855.90
8.0.80.0390.08256.05
8.0.70.0200.02755.86
8.0.60.0160.02656.02
8.0.50.0140.03256.02
8.0.30.0460.08656.34
8.0.20.0560.07956.21
8.0.10.0100.03655.98
8.0.00.0520.07155.97
7.4.330.0230.02052.89
7.4.320.0160.03355.50
7.4.300.0200.02755.60
7.4.290.0250.02255.51
7.4.280.0300.04355.48
7.4.270.0170.03455.70
7.4.260.0270.02755.62
7.4.250.0200.03355.55
7.4.240.0150.03555.60
7.4.230.0220.02555.54
7.4.220.0510.08855.45
7.4.210.0510.08555.59
7.4.200.0130.03255.80
7.4.160.0360.07355.66
7.4.150.0400.09255.50
7.4.140.0500.07955.61
7.4.130.0450.07755.64
7.4.120.0500.07055.65
7.4.110.0540.08355.59
7.4.100.0360.08855.75
7.4.90.0520.07255.48
7.4.80.0390.08455.67
7.4.70.0630.09155.74
7.4.60.0500.07055.47
7.4.50.0130.04255.75
7.4.40.0370.08555.61
7.4.30.0530.13055.80
7.4.00.0200.06554.18
7.3.330.0210.02452.28
7.3.320.0130.04452.26
7.3.310.0130.03755.39
7.3.300.0200.03055.38
7.3.290.0100.04055.18
7.3.280.0360.08655.34
7.3.270.0510.06755.33
7.3.260.0400.08755.55
7.3.250.0440.08055.62
7.3.240.0280.09255.43
7.3.230.0650.07555.51
7.3.210.0400.08355.41
7.3.200.0490.10055.44
7.3.190.0330.09255.50
7.3.180.0510.09155.58
7.3.170.0370.11755.62
7.3.160.0460.07355.75
7.2.330.0520.07255.90
7.2.320.0460.07655.92
7.2.310.0610.10155.83
7.2.300.0530.07355.80
7.2.290.0570.11055.98
7.2.60.1280.04357.16
7.2.00.1500.06059.23
7.1.200.0800.06356.06
7.1.101.7840.11655.45
7.1.70.0530.05657.31
7.1.60.0170.09957.66
7.1.50.0270.05757.38
7.1.00.0100.13362.45
7.0.200.3880.08054.04
7.0.140.0030.08062.38
7.0.60.0200.15059.17
7.0.50.0270.10357.05
7.0.40.0200.14323.68
7.0.30.0400.13323.73
7.0.20.0130.14323.70
7.0.10.0070.10323.58
7.0.00.0200.15023.58
5.6.280.0070.25378.02
5.6.210.0270.20077.64
5.6.200.0370.19774.85
5.6.190.0230.21777.32
5.6.180.0600.20077.25
5.6.170.0330.20077.25
5.6.160.0330.21777.27
5.6.150.0200.22775.05
5.6.140.0170.17375.01
5.6.130.0300.22075.08
5.6.120.0200.17378.05
5.6.110.0330.17077.95
5.6.100.0330.20078.10
5.6.90.0230.23077.93
5.6.80.0330.18777.32
5.5.350.0400.21777.36
5.5.340.0230.17374.89
5.5.330.0270.15377.16
5.5.320.0230.23376.97
5.5.310.0570.20777.09
5.5.300.0300.22374.90
5.5.290.0130.17074.89
5.5.280.0330.22377.90
5.5.270.0270.23077.73
5.5.260.0230.17377.56
5.5.250.0230.23077.70
5.5.240.0400.21777.16
5.4.450.0970.24076.44
5.4.440.1300.32776.26
5.4.430.0900.25376.16
5.4.420.1600.26076.20
5.4.410.1400.29076.36
5.4.400.1330.26075.67
5.4.390.0870.40075.42
5.4.380.0730.31375.58
5.4.370.0570.30075.57
5.4.360.0530.34375.42
5.4.350.0730.40775.60
5.4.340.0370.32075.39
5.4.320.0770.33075.38
5.4.310.0470.31075.39
5.4.300.0500.33375.41
5.4.290.0530.27375.57
5.4.280.0600.27775.52
5.4.270.0670.40775.46
5.4.260.0670.49375.59
5.4.250.0500.28075.44
5.4.240.0500.31375.43
5.4.230.0530.27375.46
5.4.220.0730.39375.57
5.4.210.0730.43075.38
5.4.200.0600.39073.50
5.4.190.0700.31375.56
5.4.180.0570.29075.48
5.4.170.0530.32775.39
5.4.160.0600.27775.58
5.4.150.0470.37075.54
5.4.140.0770.27073.07
5.4.130.0570.28773.12
5.4.120.0330.35072.93
5.4.110.0800.32072.95
5.4.100.0500.30073.11
5.4.90.0370.33073.11
5.4.80.0630.34773.24
5.4.70.0570.31373.10
5.4.60.0730.29372.91
5.4.50.0700.33373.15
5.4.40.0370.34773.05
5.4.30.0400.35073.23
5.4.20.0570.34073.04
5.4.10.0970.41072.97
5.4.00.0500.36372.68
5.3.290.0430.41770.48
5.3.280.0530.39770.50
5.3.270.0570.53070.64
5.3.260.0430.47370.66
5.3.250.0370.39770.63
5.3.240.0330.39370.50
5.3.230.0600.52370.54
5.3.220.0700.59770.65
5.3.210.0800.35070.61
5.3.200.0700.37070.64
5.3.190.0500.50770.53
5.3.180.0870.54070.54
5.3.170.0670.51770.52
5.3.160.0630.54770.50
5.3.150.0500.37770.62
5.3.140.0470.53070.54
5.3.130.0630.41070.51
5.3.120.0500.41370.60
5.3.110.0570.35770.59
5.3.100.0630.52369.85
5.3.90.0700.49069.98
5.3.80.0700.36769.99
5.3.70.0400.41370.02
5.3.60.0670.35069.85
5.3.50.0470.36069.87
5.3.40.0630.39069.95
5.3.30.0430.39369.74
5.3.20.0430.36069.59
5.3.10.0430.90369.54
5.3.00.0670.85369.53
5.2.170.0400.33064.65
5.2.160.0530.40764.64
5.2.150.0530.27764.54
5.2.140.0700.35364.54
5.2.130.0400.29364.41
5.2.120.0600.40064.47
5.2.110.0400.27064.52
5.2.100.0430.27764.39
5.2.90.0300.31064.38
5.2.80.0670.29064.41
5.2.70.0470.34364.49
5.2.60.0530.28364.42
5.2.50.0500.42764.52
5.2.40.0530.38364.34
5.2.30.0570.32364.30
5.2.20.0530.35764.36
5.2.10.0370.39764.25
5.2.00.0470.29064.34
5.1.60.0670.33380.87
5.1.50.0530.32780.82
5.1.40.0770.36780.88
5.1.30.0870.37781.17
5.1.20.0700.37781.21
5.1.10.0470.33080.98
5.1.00.0530.34380.94
5.0.50.0800.43779.42
5.0.40.0470.41079.33
5.0.30.0470.45079.14
5.0.20.0670.47779.01
5.0.10.0930.59079.04
5.0.00.0770.51079.07
4.4.90.0770.55076.75
4.4.80.0530.56776.79
4.4.70.0500.47376.89
4.4.60.0530.48776.85
4.4.50.1030.44376.75
4.4.40.0730.55776.86
4.4.30.0500.47076.84
4.4.20.0700.58376.85
4.4.10.0800.54376.93
4.4.00.0670.51376.81
4.3.110.0870.57076.74
4.3.100.0870.57076.75
4.3.90.0630.63076.71
4.3.80.0770.59076.70
4.3.70.0500.44776.70
4.3.60.0500.45776.73
4.3.50.0500.44376.80
4.3.40.0630.48076.93
4.3.30.0600.64075.51
4.3.20.0330.48375.58
4.3.10.0400.42375.52
4.3.00.0330.20375.34

preferences:
49.77 ms | 401 KiB | 5 Q