3v4l.org

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

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.40.0240.01421.17
8.3.30.0190.01921.46
8.3.20.0100.02322.68
8.3.10.0060.00924.40
8.3.00.0130.01723.06
8.2.170.0200.01722.96
8.2.160.0100.01324.06
8.2.150.0160.01624.18
8.2.140.0040.02524.66
8.2.130.0070.00726.16
8.2.120.0070.00721.64
8.2.110.0030.01424.20
8.2.100.0110.01120.66
8.2.90.0060.01221.67
8.2.80.0030.01420.09
8.2.70.0130.01020.13
8.2.60.0100.01020.55
8.2.50.0070.01120.13
8.2.40.0040.01222.04
8.2.30.0030.01520.45
8.2.20.0090.00920.19
8.2.10.0030.01420.44
8.2.00.0030.01421.17
8.1.270.0040.01126.68
8.1.260.0080.00826.35
8.1.250.0070.00730.03
8.1.240.0120.00926.07
8.1.230.0170.00722.64
8.1.220.0000.02022.51
8.1.210.0030.01522.23
8.1.200.0070.01322.23
8.1.190.0080.01121.98
8.1.180.0110.00722.28
8.1.170.0030.01623.65
8.1.160.0060.01226.86
8.1.150.0000.01823.64
8.1.140.0070.01023.02
8.1.130.0030.01422.64
8.1.120.0090.00922.36
8.1.110.0070.01122.22
8.1.100.0040.01422.21
8.1.90.0100.01022.34
8.1.80.0040.01422.20
8.1.70.0030.01522.28
8.1.60.0030.01722.48
8.1.50.0070.01322.29
8.1.40.0060.01322.40
8.1.30.0070.01322.45
8.1.20.0060.01622.43
8.1.10.0030.01622.36
8.1.00.0040.01922.31
8.0.300.0090.00921.79
8.0.290.0070.01121.50
8.0.280.0040.01423.05
8.0.270.0030.01521.99
8.0.260.0030.01321.95
8.0.250.0070.01021.52
8.0.240.0060.01221.74
8.0.230.0110.00721.72
8.0.220.0060.01221.62
8.0.210.0070.01121.54
8.0.200.0000.01921.64
8.0.190.0090.00921.78
8.0.180.0040.01521.56
8.0.170.0100.01021.65
8.0.160.0030.01621.59
8.0.150.0000.01821.60
8.0.140.0100.01021.65
8.0.130.0030.01518.12
8.0.120.0100.01021.58
8.0.110.0070.01121.61
8.0.100.0040.01421.49
8.0.90.0060.01321.55
8.0.80.0140.02121.55
8.0.70.0090.00921.59
8.0.60.0000.01921.65
8.0.50.0030.01721.59
8.0.30.0190.02621.89
8.0.20.0120.02621.70
8.0.10.0070.01321.78
8.0.00.0120.02721.41
7.4.330.0060.00921.09
7.4.320.0070.01121.17
7.4.300.0030.01421.18
7.4.290.0000.01921.30
7.4.280.0030.01921.11
7.4.270.0090.00921.30
7.4.260.0060.01921.14
7.4.250.0130.00721.18
7.4.240.0040.01521.17
7.4.230.0000.01921.09
7.4.220.0160.02521.29
7.4.210.0110.03721.31
7.4.200.0060.01321.19
7.4.160.0190.01621.33
7.4.150.0250.03521.22
7.4.140.0200.02721.16
7.4.130.0150.02421.26
7.4.120.0170.02321.32
7.4.110.0110.04021.41
7.4.100.0130.02621.25
7.4.90.0170.02321.23
7.4.80.0130.02921.31
7.4.70.0170.02721.31
7.4.60.0100.02921.27
7.4.50.0000.01821.27
7.4.40.0170.02121.34
7.4.30.0130.03021.19
7.4.00.0030.02719.33
7.3.330.0030.01318.08
7.3.320.0120.01218.05
7.3.310.0090.00921.02
7.3.300.0070.01121.04
7.3.290.0090.00921.05
7.3.280.0170.03021.08
7.3.270.0130.02621.25
7.3.260.0100.02820.96
7.3.250.0180.02921.14
7.3.240.0160.02521.05
7.3.230.0220.01920.95
7.3.210.0160.02321.35
7.3.200.0180.02121.44
7.3.190.0150.02421.33
7.3.180.0170.02021.01
7.3.170.0130.03221.05
7.3.160.0170.03621.14
7.2.330.0170.02421.27
7.2.320.0130.03221.54
7.2.310.0160.02621.35
7.2.300.0160.02221.28
7.2.290.0190.02221.08
7.2.60.0040.02222.73
7.2.00.0090.01525.16
7.1.200.0040.02221.71
7.1.100.0780.01021.61
7.1.70.0030.02022.86
7.1.60.0030.02523.32
7.1.50.0100.04222.82
7.1.00.0130.09028.24
7.0.200.0520.05656.89
7.0.140.0070.06762.17
7.0.60.0230.12759.12
7.0.50.0200.08057.05
7.0.40.0070.12323.61
7.0.30.0500.11023.73
7.0.20.0270.09323.55
7.0.10.0200.10323.55
7.0.00.0130.09323.62
5.6.280.0330.16778.08
5.6.210.0370.17777.60
5.6.200.0230.13374.95
5.6.190.0400.17077.32
5.6.180.0530.13377.24
5.6.170.0330.13077.18
5.6.160.0170.12077.16
5.6.150.0370.15375.08
5.6.140.0170.17075.01
5.6.130.0100.12075.08
5.6.120.0330.10777.91
5.6.110.0200.19377.81
5.6.100.0370.16777.80
5.6.90.0330.16777.93
5.6.80.0400.15777.31
5.5.350.4170.13377.28
5.5.340.0170.19774.89
5.5.330.0170.18777.09
5.5.320.0470.15077.04
5.5.310.0300.17777.00
5.5.300.0330.17074.80
5.5.290.0200.12074.78
5.5.280.0300.17377.77
5.5.270.0230.12777.81
5.5.260.0170.18777.80
5.5.250.0330.16377.71
5.5.240.0530.15777.11
5.4.450.0400.12776.00
5.4.440.0430.15076.20
5.4.430.0400.14076.23
5.4.420.0330.16776.24
5.4.410.0570.15376.17
5.4.400.0430.11076.11
5.4.390.0370.15775.87
5.4.380.0330.16375.88
5.4.370.0500.13375.98
5.4.360.0430.13775.93
5.4.350.0330.16775.94
5.4.340.0330.16076.10
5.4.320.0500.14375.93
5.4.310.0500.16775.91
5.4.300.0370.16776.09
5.4.290.0400.11075.64
5.4.280.0730.12375.88
5.4.270.0600.14775.77
5.4.260.0530.15376.06
5.4.250.0500.13775.88
5.4.240.0170.13376.09
5.4.230.0300.11075.88
5.4.220.0300.14075.64
5.4.210.0470.15075.93
5.4.200.0330.11375.88
5.4.190.0300.14075.77
5.4.180.0300.13775.87
5.4.170.0200.12775.75
5.4.160.0270.11375.86
5.4.150.0270.11375.96
5.4.140.0300.11373.16
5.4.130.0300.10373.05
5.4.120.0300.11073.24
5.4.110.0370.13373.11
5.4.100.0300.11072.97
5.4.90.0530.12773.34
5.4.80.0430.11073.17
5.4.70.0600.12073.29
5.4.60.0430.16073.17
5.4.50.0300.17772.94
5.4.40.0430.15373.20
5.4.30.0330.13373.16
5.4.20.0430.10373.20
5.4.10.0430.15073.09
5.4.00.0330.15072.80
5.3.290.0500.16372.14
5.3.280.0230.12071.97
5.3.270.0430.10372.07
5.3.260.0370.11072.10
5.3.250.0270.12771.95
5.3.240.0300.11072.08
5.3.230.0500.12371.96
5.3.220.0430.12072.04
5.3.210.0300.15372.04
5.3.200.0300.12772.02
5.3.190.0330.18372.03
5.3.180.0370.15072.05
5.3.170.0330.14072.02
5.3.160.0500.16072.03
5.3.150.0330.13771.93
5.3.140.0300.16072.16
5.3.130.0400.14771.99
5.3.120.0400.16072.02
5.3.110.0470.16772.15
5.3.100.0300.14371.41
5.3.90.0330.13371.49
5.3.80.0470.16071.32
5.3.70.0370.11771.32
5.3.60.0870.14371.43
5.3.50.0330.13371.23
5.3.40.0500.16071.35
5.3.30.0270.12771.29
5.3.20.0330.12070.98
5.3.10.0370.29371.06
5.3.00.0300.28371.02
5.2.170.0330.16066.63
5.2.160.0270.15066.09
5.2.150.0200.17366.14
5.2.140.0470.13765.91
5.2.130.0370.15765.91
5.2.120.0330.10365.92
5.2.110.0430.12765.83
5.2.100.0400.13765.87
5.2.90.0370.16366.00
5.2.80.0200.11765.86
5.2.70.0630.14065.98
5.2.60.0430.15365.77
5.2.50.0270.18365.98
5.2.40.0330.17765.82
5.2.30.0270.14366.43
5.2.20.0400.13365.79
5.2.10.0270.12765.83
5.2.00.0300.16065.63
5.1.60.0430.16780.73
5.1.50.0500.15780.87
5.1.40.0500.14780.65
5.1.30.0300.15081.05
5.1.20.0330.13781.16
5.1.10.0330.18080.89
5.1.00.0400.17081.04
5.0.50.0330.24779.20
5.0.40.0330.18079.18
5.0.30.0430.19379.00
5.0.20.0300.18079.07
5.0.10.0370.18779.19
5.0.00.0300.16779.00
4.4.90.0330.19376.72
4.4.80.0370.19076.72
4.4.70.0270.14076.68
4.4.60.0330.14376.82
4.4.50.0370.16076.71
4.4.40.0330.19776.68
4.4.30.0300.18076.76
4.4.20.0430.18376.88
4.4.10.0370.12776.78
4.4.00.0270.21076.84
4.3.110.0300.19776.68
4.3.100.0100.17376.67
4.3.90.0870.15776.64
4.3.80.0530.18376.70
4.3.70.0330.19076.64
4.3.60.0370.17076.61
4.3.50.0270.13776.75
4.3.40.0070.22376.68
4.3.30.0170.17375.41
4.3.20.0300.15075.41
4.3.10.0270.18375.33
4.3.00.0530.17075.36

preferences:
48.4 ms | 400 KiB | 5 Q