3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myArray = array( '@@warning_count' => 2, array( 'level' => 'Warning', 'code' => 1266, 'message' => "Incorrect integer value: ‘Johny’ for column ‘billing_cycle’ at row 1"), array( 'level' => 'Warning', 'code' => 1266, 'message' => "Incorrect integer value: ‘Johny’ for column ‘billing_cycle’ at row 1"), ); print "Warning Count: {$myArray['@@warning_count']}\n"; foreach ($myArray as $key => $value){ if (is_array($value)){ foreach ($value as $subKey => $subValue){ print $subKey . "=>" . $subValue . "\n"; } } }

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.0170.00318.31
8.3.50.0100.00822.11
8.3.40.0100.00718.82
8.3.30.0090.00620.34
8.3.20.0050.00318.64
8.3.10.0030.00521.05
8.3.00.0040.00419.56
8.2.180.0070.00716.75
8.2.170.0120.00322.96
8.2.160.0130.00020.38
8.2.150.0050.00324.18
8.2.140.0070.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00421.00
8.2.110.0060.00320.55
8.2.100.0080.00417.72
8.2.90.0050.00319.22
8.2.80.0070.00019.32
8.2.70.0000.00917.63
8.2.60.0040.00417.93
8.2.50.0030.00518.07
8.2.40.0030.00620.07
8.2.30.0100.00019.51
8.2.20.0000.00717.61
8.2.10.0000.00717.63
8.2.00.0040.00417.64
8.1.280.0030.01425.92
8.1.270.0000.00723.99
8.1.260.0040.01126.35
8.1.250.0040.00428.09
8.1.240.0000.01023.84
8.1.230.0090.00322.72
8.1.220.0000.00818.77
8.1.210.0090.00019.03
8.1.200.0030.00617.23
8.1.190.0000.00817.29
8.1.180.0090.00018.10
8.1.170.0050.00318.63
8.1.160.0070.00018.89
8.1.150.0000.00718.56
8.1.140.0070.00017.38
8.1.130.0000.00717.83
8.1.120.0000.00817.50
8.1.110.0030.00517.45
8.1.100.0030.00417.37
8.1.90.0030.00517.42
8.1.80.0000.00817.46
8.1.70.0030.00317.48
8.1.60.0030.00617.60
8.1.50.0040.00417.54
8.1.40.0040.00417.41
8.1.30.0040.00417.68
8.1.20.0040.00417.68
8.1.10.0000.00717.48
8.1.00.0080.00317.41
8.0.300.0050.00319.89
8.0.290.0000.00717.16
8.0.280.0070.00018.38
8.0.270.0070.00017.34
8.0.260.0000.00616.91
8.0.250.0000.00716.96
8.0.240.0030.00616.96
8.0.230.0030.00316.98
8.0.220.0030.00316.86
8.0.210.0000.00616.84
8.0.200.0060.00016.90
8.0.190.0000.00716.80
8.0.180.0040.00416.95
8.0.170.0080.00016.77
8.0.160.0040.00416.85
8.0.150.0030.00316.91
8.0.140.0040.00416.89
8.0.130.0000.00513.29
8.0.120.0000.00816.77
8.0.110.0000.00716.96
8.0.100.0040.00416.79
8.0.90.0040.00416.90
8.0.80.0080.01116.85
8.0.70.0000.00816.77
8.0.60.0070.00016.78
8.0.50.0070.00016.96
8.0.30.0090.00917.04
8.0.20.0120.01117.44
8.0.10.0000.00717.05
8.0.00.0120.01116.78
7.4.330.0000.00516.84
7.4.320.0040.00416.48
7.4.300.0060.00316.53
7.4.290.0000.00716.60
7.4.280.0000.00716.40
7.4.270.0000.00616.51
7.4.260.0000.00513.35
7.4.250.0000.00716.47
7.4.240.0030.00516.63
7.4.230.0030.00316.63
7.4.220.0060.00916.32
7.4.210.0090.00716.52
7.4.200.0000.00716.72
7.4.190.0000.00716.55
7.4.160.0120.00316.62
7.4.150.0120.00617.40
7.4.140.0070.01017.86
7.4.130.0050.01316.57
7.4.120.0050.01216.59
7.4.110.0160.00616.45
7.4.100.0130.00516.33
7.4.90.0180.00716.48
7.4.80.0070.01019.39
7.4.70.0120.00416.48
7.4.60.0170.00316.49
7.4.50.0030.00616.54
7.4.40.0030.00822.77
7.4.30.0030.01316.59
7.4.00.0060.00914.91
7.3.330.0060.00013.06
7.3.320.0000.00713.17
7.3.310.0050.00216.47
7.3.300.0000.00716.24
7.3.290.0070.00716.27
7.3.280.0100.00816.24
7.3.270.0110.00617.40
7.3.260.0120.00818.24
7.3.250.0100.00616.32
7.3.240.0060.01016.30
7.3.230.0120.00616.69
7.3.210.0060.01516.57
7.3.200.0100.00919.39
7.3.190.0120.00416.59
7.3.180.0100.00716.36
7.3.170.0130.00316.48
7.3.160.0090.00616.48
7.3.120.0040.01114.96
7.3.110.0040.01114.87
7.3.100.0000.01414.91
7.3.90.0060.00914.86
7.3.80.0030.00715.03
7.3.70.0050.00514.79
7.3.60.0090.00614.68
7.3.50.0100.00014.93
7.3.40.0030.00714.63
7.3.30.0040.01114.79
7.3.20.0060.01216.62
7.3.10.0120.00116.70
7.3.00.0050.00716.61
7.2.330.0120.00616.80
7.2.320.0100.00716.87
7.2.310.0060.01316.50
7.2.300.0060.01216.77
7.2.290.0040.01216.68
7.2.240.0030.00715.25
7.2.230.0100.00314.96
7.2.220.0070.00315.13
7.2.210.0040.01114.68
7.2.200.0000.01415.10
7.2.190.0060.00915.19
7.2.180.0030.01215.11
7.2.170.0030.01215.00
7.2.160.0090.00614.95
7.2.150.0100.00716.86
7.2.140.0130.00317.02
7.2.130.0050.00916.77
7.2.120.0050.01016.89
7.2.110.0030.01017.04
7.2.100.0070.00516.89
7.2.90.0040.01216.97
7.2.80.0070.00516.87
7.2.70.0050.01017.02
7.2.60.0050.00816.90
7.2.50.0070.00616.93
7.2.40.0030.01117.07
7.2.30.0090.00716.90
7.2.20.0050.00816.94
7.2.10.0080.00916.99
7.2.00.0070.00717.75
7.1.330.0000.01215.93
7.1.320.0000.01415.59
7.1.310.0070.00315.88
7.1.300.0070.00715.80
7.1.290.0100.00315.88
7.1.280.0070.00315.61
7.1.270.0080.00415.89
7.1.260.0070.01015.46
7.1.250.0000.01415.71
7.1.100.0100.00318.04
7.1.70.0000.01416.93
7.1.60.0070.01417.25
7.1.50.0110.01116.63
7.1.40.0030.00816.58
7.1.30.0040.00716.68
7.1.20.0000.01216.78
7.1.10.0030.01216.56
7.1.00.0040.00816.75
7.0.200.0040.01116.56
7.0.190.0030.00916.68
7.0.180.0000.00816.56
7.0.170.0030.00616.56
7.0.160.0000.00816.56
7.0.150.0030.00916.56
7.0.140.0100.00716.56
7.0.130.0060.00316.60
7.0.120.0000.01016.68
7.0.110.0000.00816.56
7.0.100.0030.00516.56
7.0.90.0050.00316.65
7.0.80.0050.00316.56
7.0.70.0030.00516.56
7.0.60.0000.00816.56
7.0.50.0000.00716.56
7.0.40.0040.00416.56
7.0.30.0100.00716.56
7.0.20.0030.00716.56
7.0.10.0000.00916.56
7.0.00.0040.00416.56
5.6.300.0070.04620.81
5.6.290.0000.08420.82
5.6.280.0070.03920.81
5.6.270.0060.04221.00
5.6.260.0090.03520.96
5.6.250.0030.04120.96
5.6.240.0060.04520.86
5.6.230.0000.04920.95
5.6.220.0060.04220.86
5.6.210.0030.04020.98
5.6.200.0030.08420.77
5.6.190.0070.08121.02
5.6.180.0070.04120.76
5.6.170.0030.06720.79
5.6.160.0100.07521.00
5.6.150.0030.08220.98
5.6.140.0030.07020.95
5.6.130.0060.03820.98
5.6.120.0070.06120.95
5.6.110.0070.04320.94
5.6.100.0000.04720.77
5.6.90.0100.03620.91
5.6.80.0030.05220.31
5.6.70.0070.07820.20
5.6.60.0000.04520.32
5.6.50.0070.03620.31
5.6.40.0030.04120.29
5.6.30.0060.03820.09
5.6.20.0030.08120.18
5.6.10.0030.08820.31
5.6.00.0070.04020.38
5.5.380.0070.03517.46
5.5.370.0070.03717.48
5.5.360.0000.04617.43
5.5.350.0070.03617.45
5.5.340.0070.03718.07
5.5.330.0070.06817.94
5.5.320.0030.05517.97
5.5.310.0030.03918.03
5.5.300.0030.08417.94
5.5.290.0000.05818.07
5.5.280.0030.04017.84
5.5.270.0100.05818.00
5.5.260.0070.04117.82
5.5.250.0070.04317.88
5.5.240.0030.05117.45
5.5.230.0030.07017.24
5.5.220.0070.03717.49
5.5.210.0000.04017.35
5.5.200.0070.03617.37
5.5.190.0030.08217.38
5.5.180.0000.07917.21
5.5.160.0000.06517.40
5.5.150.0140.04117.05
5.5.140.0060.03917.38
5.5.130.0060.03817.40
5.5.120.0070.03717.40
5.5.110.0000.04117.28
5.5.100.0060.03517.22
5.5.90.0000.03916.96
5.5.80.0030.03817.19
5.5.70.0030.03817.23
5.5.60.0070.03917.30
5.5.50.0030.03917.18
5.5.40.0070.04617.15
5.5.30.0000.04216.98
5.5.20.0000.03917.17
5.5.10.0000.04017.10
5.5.00.0100.03017.36
5.4.450.0000.04419.40
5.4.440.0030.07019.21
5.4.430.0030.04119.17
5.4.420.0030.03919.39
5.4.410.0070.03919.36
5.4.400.0070.04019.09
5.4.390.0030.04019.17
5.4.380.0000.04019.07
5.4.370.0070.03619.05
5.4.360.0000.06719.14
5.4.350.0000.07719.07
5.4.340.0000.08019.14
5.4.320.0070.07718.98
5.4.310.0030.04119.07
5.4.300.0100.06619.14
5.4.290.0030.04018.98
5.4.280.0030.03919.05
5.4.270.0000.04019.08
5.4.260.0060.03519.07
5.4.250.0030.03719.09
5.4.240.0030.03719.13
5.4.230.0070.03519.01
5.4.220.0360.03919.06
5.4.210.0030.03918.82
5.4.200.0060.04219.06
5.4.190.0260.03818.82
5.4.180.0030.03619.06
5.4.170.0040.03919.13
5.4.160.0030.07218.96
5.4.150.0030.03718.86
5.4.140.0040.04216.56
5.4.130.0030.03516.56
5.4.120.0040.03616.56
5.4.110.0030.03416.56
5.4.100.0230.02716.56
5.4.90.0000.03816.62
5.4.80.0030.05716.56
5.4.70.0030.03316.57
5.4.60.0030.03916.56
5.4.50.0030.05916.56
5.4.40.0030.03716.57
5.4.30.0170.03716.56
5.4.20.0030.04216.59
5.4.10.0040.03916.56
5.4.00.0030.04016.56
5.3.290.0070.04616.56
5.3.280.0000.04316.56
5.3.270.0230.03616.56
5.3.260.0060.03516.56
5.3.250.0030.03616.56
5.3.240.0000.03816.56
5.3.230.0030.03516.56
5.3.220.0070.03716.56
5.3.210.0030.04016.56
5.3.200.0030.03516.56
5.3.190.0030.04616.56
5.3.180.0030.03916.56
5.3.170.0030.03516.56
5.3.160.0030.05216.56
5.3.150.0030.03716.56
5.3.140.0000.03716.56
5.3.130.0030.03816.56
5.3.120.0070.03716.56
5.3.110.0000.04016.56
5.3.100.0030.03516.56
5.3.90.0100.03116.56
5.3.80.0070.07316.56
5.3.70.0030.03616.56
5.3.60.0000.04116.56
5.3.50.0070.03116.56
5.3.40.0000.03716.56
5.3.30.0000.04816.56
5.3.20.0030.03416.56
5.3.10.0000.04916.56
5.3.00.0000.05716.56
5.2.170.0060.02516.56
5.2.160.0030.02616.56
5.2.150.0060.02416.56
5.2.140.0030.02816.56
5.2.130.0030.06316.56
5.2.120.0060.02616.56
5.2.110.0000.03216.56
5.2.100.0030.07116.56
5.2.90.0070.04116.56
5.2.80.0030.03016.56
5.2.70.0000.03816.56
5.2.60.0140.03116.56
5.2.50.0000.03416.56
5.2.40.0000.03016.56
5.2.30.0000.03616.56
5.2.20.0060.02616.56
5.2.10.0000.03116.56
5.2.00.0030.03816.56
5.1.60.0030.02416.56
5.1.50.0060.02616.56
5.1.40.0030.02516.56
5.1.30.0000.04616.56
5.1.20.0100.03316.56
5.1.10.0030.05416.56
5.1.00.0040.02516.56
5.0.50.0000.04216.56
5.0.40.0030.01916.56
5.0.30.0030.03216.56
5.0.20.0000.02716.56
5.0.10.0030.04216.56
5.0.00.0030.04016.56
4.4.90.0000.02416.56
4.4.80.0060.01216.56
4.4.70.0040.01416.56
4.4.60.0000.02016.56
4.4.50.0030.01516.56
4.4.40.0000.04916.56
4.4.30.0040.02516.56
4.4.20.0000.03916.56
4.4.10.0030.02316.56
4.4.00.0040.02116.56
4.3.110.0000.01816.56
4.3.100.0030.01916.56
4.3.90.0040.02116.56
4.3.80.0030.05516.56
4.3.70.0060.01016.56
4.3.60.0000.02616.56
4.3.50.0000.02216.56
4.3.40.0030.05216.56
4.3.30.0070.02716.56
4.3.20.0000.03916.56
4.3.10.0030.04216.56
4.3.00.0040.02216.56

preferences:
65.83 ms | 401 KiB | 5 Q