3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fields = array( 'a' => 'a', 'b' => 'b', 'c' => 'c', 'd' => 'd', 'e' => 'e', 'f' => 'd', 'g' => 'g', 'h' => 'h', 'i' => 'b', 'j' => 's', 'k' => 'r', 'l' => 't', 'm' => 'ac', 'n' => '<sfda', 'o' => 'a<d', ); $i = 0; for ($i; $i < 1000000; $i++) { if ($fields['g']) { } if ($fields['m']) { } if ($fields['c']) { } if ($fields['a']) { } }

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.0070.07018.18
8.3.50.0230.06421.93
8.3.40.0100.06618.76
8.3.30.0030.06120.18
8.3.20.0100.05418.60
8.3.10.0030.03220.96
8.3.00.0070.02819.41
8.2.180.0170.05716.50
8.2.170.0130.07722.96
8.2.160.0100.06520.52
8.2.150.0040.03224.18
8.2.140.0000.03524.66
8.2.130.0000.03526.16
8.2.120.0100.04619.95
8.2.110.0030.05620.42
8.2.100.0090.03817.72
8.2.90.0070.04319.21
8.2.80.0030.04219.21
8.2.70.0030.04717.63
8.2.60.0100.03918.04
8.2.50.0060.05118.07
8.2.40.0060.03819.95
8.2.30.0070.03719.44
8.2.20.0060.03917.71
8.2.10.0030.04017.50
8.2.00.0030.04217.71
8.1.280.0100.06025.92
8.1.270.0070.02923.99
8.1.260.0070.06126.35
8.1.250.0070.03028.09
8.1.240.0070.04822.49
8.1.230.0100.04021.04
8.1.220.0060.04218.77
8.1.210.0090.03518.79
8.1.200.0030.04317.23
8.1.190.0060.03817.39
8.1.180.0000.04418.10
8.1.170.0100.03618.41
8.1.160.0000.04418.73
8.1.150.0090.03418.44
8.1.140.0000.04317.32
8.1.130.0030.04017.77
8.1.120.0060.05117.34
8.1.110.0000.04417.27
8.1.100.0060.03917.28
8.1.90.0030.04117.37
8.1.80.0070.04017.27
8.1.70.0030.04117.26
8.1.60.0100.04617.52
8.1.50.0000.05417.36
8.1.40.0000.05617.48
8.1.30.0030.05117.55
8.1.20.0030.05217.42
8.1.10.0000.05417.48
8.1.00.0030.06217.41
8.0.300.0060.04219.91
8.0.290.0000.04517.04
8.0.280.0000.04418.37
8.0.270.0070.03717.06
8.0.260.0090.03816.75
8.0.250.0000.04516.88
8.0.240.0030.04316.91
8.0.230.0070.03916.93
8.0.220.0030.04116.83
8.0.210.0000.05016.84
8.0.200.0030.04316.88
8.0.190.0070.05016.88
8.0.180.0070.04816.85
8.0.170.0070.05016.75
8.0.160.0030.05116.80
8.0.150.0000.05516.78
8.0.140.0030.05416.76
8.0.130.0070.04613.21
8.0.120.0030.05316.81
8.0.110.0070.04916.85
8.0.100.0100.04516.82
8.0.90.0000.05416.77
8.0.80.0170.12916.86
8.0.70.0030.05416.67
8.0.60.0060.05216.63
8.0.50.0000.05816.70
8.0.30.0080.09117.02
8.0.20.0110.11717.40
8.0.10.0060.04816.93
8.0.00.0080.09416.71
7.4.330.0030.04116.79
7.4.320.0070.03916.52
7.4.300.0030.04316.33
7.4.290.0070.05016.45
7.4.280.0000.05916.48
7.4.270.0100.04816.43
7.4.260.0000.05613.13
7.4.250.0100.04916.49
7.4.240.0060.05516.53
7.4.230.0000.05716.43
7.4.220.0100.12016.36
7.4.210.0050.09716.52
7.4.200.0070.05016.41
7.4.190.0030.05416.70
7.4.160.0100.09316.30
7.4.150.0140.09617.40
7.4.140.0050.10517.86
7.4.130.0160.09616.48
7.4.120.0130.09916.40
7.4.110.0100.10616.50
7.4.100.0060.14416.44
7.4.90.0160.09916.51
7.4.80.0220.13919.39
7.4.70.0100.09716.38
7.4.60.0130.11516.41
7.4.50.0000.06716.46
7.4.40.0030.08022.77
7.4.30.0100.10116.36
7.4.00.0100.07014.60
7.3.330.0000.05413.20
7.3.320.0030.05213.14
7.3.310.0000.05516.39
7.3.300.0030.05616.25
7.3.290.0130.09116.29
7.3.280.0120.10116.23
7.3.270.0120.10517.40
7.3.260.0100.12318.24
7.3.250.0080.11516.40
7.3.240.0070.10516.29
7.3.230.0130.10216.39
7.3.210.0130.10616.36
7.3.200.0140.13419.39
7.3.190.0100.11316.41
7.3.180.0000.11116.50
7.3.170.0130.09816.27
7.3.160.0060.11116.31
7.3.120.0000.08414.85
7.2.330.0030.13616.70
7.2.320.0130.16616.52
7.2.310.0070.13216.71
7.2.300.0030.13016.55
7.2.290.0030.13416.61
7.2.00.0070.07719.40
7.1.200.0030.07815.57
7.1.100.0000.08917.83
7.1.70.0150.07616.96
7.1.60.0070.07716.86
7.1.50.0160.07516.57
7.1.40.0000.09016.59
7.1.30.0130.08016.57
7.1.20.0100.07316.65
7.1.10.0070.07716.38
7.1.00.0000.09316.53
7.0.200.0100.07916.89
7.0.190.0090.07316.39
7.0.180.0040.10016.16
7.0.170.0100.08316.53
7.0.160.0070.08816.34
7.0.150.0070.09216.43
7.0.140.0030.11316.21
7.0.130.0070.08316.54
7.0.120.0000.09716.54
7.0.110.0060.08116.25
7.0.100.0000.08416.30
7.0.90.0000.08116.39
7.0.80.0030.09216.54
7.0.70.0030.08716.48
7.0.60.0030.08516.29
7.0.50.0070.07816.59
7.0.40.0030.10214.87
7.0.30.0030.07814.87
7.0.20.0000.07514.87
7.0.10.0000.07914.87
7.0.00.0030.07814.87
5.6.300.0100.17420.63
5.6.290.0060.17220.91
5.6.280.0000.21720.86
5.6.270.0070.18220.80
5.6.260.0070.20920.87
5.6.250.0070.16820.78
5.6.240.0030.16920.88
5.6.230.0000.18520.81
5.6.220.0630.14620.95
5.6.210.0030.16721.03
5.6.200.0100.15821.00
5.6.190.0030.16120.92
5.6.180.0030.17120.80
5.6.170.0030.16620.80
5.6.160.0030.16820.96
5.6.150.0000.18021.02
5.6.140.0000.15820.70
5.6.130.0030.16621.01
5.6.120.0000.16020.81
5.6.110.0030.17620.94
5.6.100.0070.16520.79
5.6.90.0030.16120.90
5.6.80.0860.14520.18
5.6.70.0100.14920.19
5.6.60.0000.19820.29
5.6.50.0030.16320.22
5.6.40.0100.16220.22
5.6.30.0030.17520.32
5.6.20.0030.16220.34
5.6.10.0070.15720.37
5.6.00.0070.15920.28
5.5.380.0500.15417.58
5.5.370.0000.16217.46
5.5.360.0030.16317.48
5.5.350.0030.21717.54
5.5.340.0590.17717.94
5.5.330.0070.16618.02
5.5.320.0100.17118.04
5.5.310.0030.18118.03
5.5.300.0000.16017.70
5.5.290.0000.17818.00
5.5.280.0100.16418.07
5.5.270.0030.16517.69
5.5.260.0070.15717.99
5.5.250.0030.16917.54
5.5.240.0030.15917.41
5.5.230.0000.17917.40
5.5.220.0070.16117.40
5.5.210.0030.16817.40
5.5.200.0070.16317.38
5.5.190.0030.15917.38
5.5.180.0000.18117.38
5.5.160.0070.15317.34
5.5.150.0070.16417.36
5.5.140.0000.20117.38
5.5.130.0000.18517.29
5.5.120.0000.22517.11
5.5.110.0070.20717.38
5.5.100.0000.18817.27
5.5.90.0000.16117.09
5.5.80.0070.18016.99
5.5.70.0070.23917.26
5.5.60.0030.19817.15
5.5.50.0100.17317.26
5.5.40.0000.15917.28
5.5.30.0030.17917.14
5.5.20.0070.17617.17
5.5.10.0030.17717.17
5.5.00.0000.16917.26
5.4.450.0000.15619.34
5.4.440.0030.16219.29
5.4.430.0030.16619.38
5.4.420.0030.16819.38
5.4.410.0030.15419.12
5.4.400.0000.16818.93
5.4.390.0230.18418.89
5.4.380.0030.16619.15
5.4.370.0030.15218.94
5.4.360.0030.16719.00
5.4.350.0030.15019.12
5.4.340.0000.17918.86
5.4.320.0000.17019.13
5.4.310.0030.15918.84
5.4.300.0130.21219.14
5.4.290.0030.18119.17
5.4.280.0030.16218.94
5.4.270.0030.17619.15
5.4.260.0000.16018.86
5.4.250.0000.16318.82
5.4.240.0030.15918.86
5.4.230.0030.17719.12
5.4.220.0070.16219.12
5.4.210.0000.16019.00
5.4.200.0030.17318.81
5.4.190.0030.16919.05
5.4.180.0070.15718.89
5.4.170.0070.15619.01
5.4.160.0030.15619.13
5.4.150.0200.15518.98
5.4.140.0160.15216.56
5.4.130.0070.14516.59
5.4.120.0070.16216.54
5.4.110.0000.17216.34
5.4.100.0000.16316.36
5.4.90.0060.15916.34
5.4.80.0060.17216.45
5.4.70.0070.15116.58
5.4.60.0000.16616.40
5.4.50.0070.15916.46
5.4.40.0030.15916.61
5.4.30.0030.16416.50
5.4.20.0030.18516.60
5.4.10.0030.17516.44
5.4.00.0000.17216.05
5.3.290.0000.19114.87
5.3.280.0030.19914.87
5.3.270.0070.17714.87
5.3.260.0030.17214.87
5.3.250.0000.19514.87
5.3.240.0070.19014.87
5.3.230.0070.19014.87
5.3.220.0030.17314.87
5.3.210.0030.17714.87
5.3.200.0030.18814.87
5.3.190.0000.17614.87
5.3.180.0100.17314.87
5.3.170.0030.16714.87
5.3.160.0030.19114.87
5.3.150.0070.20914.87
5.3.140.0100.22414.87
5.3.130.0000.17814.87
5.3.120.0330.19314.87
5.3.110.0030.18314.87
5.3.100.0000.18514.87
5.3.90.0030.18214.87
5.3.80.0100.18614.87
5.3.70.0070.18514.87
5.3.60.0070.21514.87
5.3.50.0070.17914.87
5.3.40.0100.18014.87
5.3.30.0000.18214.87
5.3.20.0000.19314.87
5.3.10.0530.16914.87
5.3.00.0000.18814.87
5.2.170.0070.21014.87
5.2.160.0030.20114.87
5.2.150.0000.21014.87
5.2.140.0000.21314.87
5.2.130.0070.20114.87
5.2.120.0440.24014.87
5.2.110.0000.23014.87
5.2.100.0100.21814.87
5.2.90.0000.24014.87
5.2.80.0000.23714.87
5.2.70.0100.23514.87
5.2.60.0060.22714.87
5.2.50.0100.26114.87
5.2.40.0030.22714.87
5.2.30.0070.20514.87
5.2.20.0130.21214.87
5.2.10.0070.21514.87
5.2.00.0070.22414.87
5.1.60.0930.22814.87
5.1.50.0000.22314.87
5.1.40.0100.20714.87
5.1.30.0070.23214.87
5.1.20.0100.18414.87
5.1.10.0030.20114.87
5.1.00.0000.22314.87
5.0.50.0030.35214.87
5.0.40.0030.33414.87
5.0.30.1000.35514.87
5.0.20.0030.36114.87
5.0.10.0030.38414.87
5.0.00.0100.37014.87
4.4.90.0030.41814.87
4.4.80.0030.36114.87
4.4.70.0070.35714.87
4.4.60.0000.38514.87
4.4.50.0030.36614.87
4.4.40.0000.37314.87
4.4.30.0030.33614.87
4.4.20.0070.34214.87
4.4.10.0000.36514.87
4.4.00.0030.36014.87
4.3.110.0000.35714.87
4.3.100.0030.35414.87
4.3.90.0000.35614.87
4.3.80.0000.35914.87
4.3.70.0070.35014.87
4.3.60.0000.35614.87
4.3.50.0070.33014.87
4.3.40.0000.34314.87
4.3.30.0000.34514.87
4.3.20.0070.40614.87
4.3.10.0030.35814.87
4.3.00.0030.32614.87

preferences:
49.66 ms | 401 KiB | 5 Q