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"; } print "------------------\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.0070.00718.31
8.3.50.0090.01322.11
8.3.40.0150.00018.79
8.3.30.0070.00720.39
8.3.20.0030.00618.57
8.3.10.0090.00021.06
8.3.00.0050.00319.66
8.2.180.0140.00416.50
8.2.170.0090.00622.96
8.2.160.0070.00722.31
8.2.150.0100.01024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00021.19
8.2.110.0100.00020.47
8.2.100.0040.00817.84
8.2.90.0030.00620.41
8.2.80.0070.00319.19
8.2.70.0040.00417.50
8.2.60.0000.00817.93
8.2.50.0000.00818.07
8.2.40.0040.00418.34
8.2.30.0020.00618.05
8.2.20.0040.00417.66
8.2.10.0040.00417.61
8.2.00.0040.00417.68
8.1.280.0110.01125.92
8.1.270.0060.00323.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00619.25
8.1.230.0060.00622.81
8.1.220.0030.00617.74
8.1.210.0000.00818.89
8.1.200.0030.00617.36
8.1.190.0040.00417.22
8.1.180.0030.00618.10
8.1.170.0000.00918.66
8.1.160.0040.00418.89
8.1.150.0000.00918.59
8.1.140.0050.00217.47
8.1.130.0070.00017.87
8.1.120.0030.00317.35
8.1.110.0000.00817.39
8.1.100.0040.00417.49
8.1.90.0000.00717.34
8.1.80.0050.00317.36
8.1.70.0070.00017.34
8.1.60.0040.00417.56
8.1.50.0030.00617.50
8.1.40.0000.00817.45
8.1.30.0060.00317.51
8.1.20.0040.00417.57
8.1.10.0040.00417.56
8.1.00.0070.00317.40
8.0.300.0030.00319.89
8.0.290.0040.00416.75
8.0.280.0030.00318.45
8.0.270.0040.00418.01
8.0.260.0030.00316.70
8.0.250.0000.00816.98
8.0.240.0030.00716.91
8.0.230.0080.00016.87
8.0.220.0000.00616.92
8.0.210.0030.00316.96
8.0.200.0000.00616.99
8.0.190.0000.00716.90
8.0.180.0000.00816.91
8.0.170.0040.00416.87
8.0.160.0000.00716.99
8.0.150.0070.00016.75
8.0.140.0000.00716.76
8.0.130.0030.00313.26
8.0.120.0050.00316.82
8.0.110.0050.00216.86
8.0.100.0040.00416.86
8.0.90.0000.00816.88
8.0.80.0030.01216.85
8.0.70.0040.00416.90
8.0.60.0050.00316.79
8.0.50.0000.00716.79
8.0.30.0090.01117.07
8.0.20.0100.00917.40
8.0.10.0000.00717.07
8.0.00.0100.00816.89
7.4.330.0000.00514.96
7.4.320.0050.00316.53
7.4.300.0060.00316.50
7.4.290.0030.00316.56
7.4.280.0000.00716.58
7.4.270.0000.00716.60
7.4.260.0030.00316.53
7.4.250.0000.00816.58
7.4.240.0000.00716.51
7.4.230.0030.00316.57
7.4.220.0030.01916.40
7.4.210.0060.00916.57
7.4.200.0070.00016.63
7.4.190.0070.00016.57
7.4.160.0130.01016.34
7.4.150.0040.01417.40
7.4.140.0080.00817.86
7.4.130.0080.00916.46
7.4.120.0070.01016.60
7.4.110.0060.01216.53
7.4.100.0090.00916.38
7.4.90.0040.02016.39
7.4.80.0120.00619.39
7.4.70.0030.01216.63
7.4.60.0000.01916.56
7.4.50.0000.00516.47
7.4.40.0040.00822.77
7.4.30.0020.01916.36
7.4.10.0070.01115.01
7.4.00.0030.01014.84
7.3.330.0050.00013.13
7.3.320.0000.00813.24
7.3.310.0080.00016.27
7.3.300.0040.00416.32
7.3.290.0000.01416.26
7.3.280.0150.00316.33
7.3.270.0120.00617.40
7.3.260.0110.01018.24
7.3.250.0080.00916.63
7.3.240.0040.01216.23
7.3.230.0070.01016.39
7.3.210.0030.01416.52
7.3.200.0150.00619.39
7.3.190.0110.01116.57
7.3.180.0070.01016.18
7.3.170.0060.00916.48
7.3.160.0080.00816.55
7.3.130.0090.00914.77
7.3.120.0090.00714.74
7.3.110.0100.01014.65
7.3.100.0060.00914.91
7.3.90.0070.00714.92
7.3.80.0000.00814.77
7.3.70.0030.01014.84
7.3.60.0070.01014.70
7.3.50.0030.00614.60
7.3.40.0060.00914.62
7.3.30.0070.00714.96
7.3.20.0070.00316.76
7.3.10.0050.00816.45
7.3.00.0070.00916.45
7.2.330.0180.00416.57
7.2.320.0090.00816.46
7.2.310.0120.00916.65
7.2.300.0060.01016.67
7.2.290.0030.01416.63
7.2.260.0060.01215.38
7.2.250.0090.00915.38
7.2.240.0000.01614.86
7.2.230.0030.00714.84
7.2.220.0100.00314.94
7.2.210.0080.00615.13
7.2.200.0100.00315.06
7.2.190.0000.01514.98
7.2.180.0100.00715.20
7.2.170.0060.00915.04
7.2.160.0040.00715.05
7.2.150.0070.00417.10
7.2.140.0100.00716.99
7.2.130.0050.00816.66
7.2.120.0050.00716.80
7.2.110.0020.00916.68
7.2.100.0030.00916.79
7.2.90.0090.00616.83
7.2.80.0050.01116.89
7.2.70.0030.01116.79
7.2.60.0060.00816.85
7.2.50.0080.00816.78
7.2.40.0050.00816.88
7.2.30.0090.00916.83
7.2.20.0070.00916.94
7.2.10.0070.00516.88
7.2.00.0080.01017.04
7.1.330.0100.00715.79
7.1.320.0070.00415.91
7.1.310.0030.00515.63
7.1.300.0030.00615.90
7.1.290.0070.01015.84
7.1.280.0100.00015.71
7.1.270.0130.00315.60
7.1.260.0040.01115.70
7.1.250.0080.00515.69
7.1.240.0100.00615.79
7.1.230.0030.00915.81
7.1.220.0080.00415.84
7.1.210.0000.01515.64
7.1.200.0060.00515.73
7.1.190.0030.01315.63
7.1.180.0070.01015.76
7.1.170.0090.00915.97
7.1.160.0040.01115.55
7.1.150.0060.00615.91
7.1.140.0070.00315.81
7.1.130.0110.00415.64
7.1.120.0030.00515.73
7.1.110.0040.00715.73
7.1.100.0080.00616.95
7.1.90.0040.00715.79
7.1.80.0070.00715.75
7.1.70.0050.00416.52
7.1.60.0070.00516.38
7.1.50.0070.00516.39
7.1.40.0030.01115.88
7.1.30.0050.00916.08
7.1.20.0070.01016.24
7.1.10.0040.00616.16
7.1.00.0030.01016.18
7.0.330.0030.01215.35
7.0.320.0080.00315.34
7.0.310.0070.00315.60
7.0.300.0070.01015.21
7.0.290.0040.01115.41
7.0.280.0100.00315.45
7.0.270.0080.00415.07
7.0.260.0030.00915.14
7.0.250.0060.00915.33
7.0.240.0090.00615.38
7.0.230.0070.00715.59
7.0.220.0000.01215.41
7.0.210.0040.00415.36
7.0.200.0050.00316.20
7.0.190.0050.00516.05
7.0.180.0030.01115.77
7.0.170.0020.01015.96
7.0.160.0050.00715.92
7.0.150.0020.00915.91
7.0.140.0080.00615.99
7.0.130.0000.00816.12
7.0.120.0050.00616.03
7.0.110.0000.00915.88
7.0.100.0050.00315.89
7.0.90.0000.00915.80
7.0.80.0000.01015.95
7.0.70.0040.00515.82
7.0.60.0040.00715.94
7.0.50.0020.01116.02
7.0.40.0050.00514.22
7.0.30.0040.00714.18
7.0.20.0040.00414.22
7.0.10.0060.00414.09
7.0.00.0030.00714.04
5.6.400.0110.00014.39
5.6.390.0060.00614.41
5.6.380.0100.00314.23
5.6.370.0060.00614.35
5.6.360.0040.00814.60
5.6.350.0090.00614.56
5.6.340.0060.01014.60
5.6.330.0040.01114.23
5.6.320.0060.00914.61
5.6.310.0040.00713.88
5.6.300.0060.02617.46
5.6.290.0030.04417.38
5.6.280.0090.04117.66
5.6.270.0020.02917.65
5.6.260.0060.02117.75
5.6.250.0000.02817.81
5.6.240.0070.02417.60
5.6.230.0050.02517.79
5.6.220.0070.02317.58
5.6.210.0050.04117.65
5.6.200.0040.02717.77
5.6.190.0120.03717.48
5.6.180.0050.02517.52
5.6.170.0060.02317.57
5.6.160.0030.02617.62
5.6.150.0030.02517.61
5.6.140.0030.02617.50
5.6.130.0070.02317.61
5.6.120.0040.04817.81
5.6.110.0050.02617.45
5.6.100.0050.02417.63
5.6.90.0100.01917.77
5.6.80.0040.03217.46
5.6.70.0020.02717.35
5.6.60.0080.02317.16
5.6.50.0050.03717.24
5.6.40.0050.02217.34
5.6.30.0080.02417.27
5.6.20.0080.02017.30
5.6.10.0080.01917.25
5.6.00.0020.02817.23
5.5.380.0050.02415.96
5.5.370.0090.01615.97
5.5.360.0050.02415.84
5.5.350.0160.02115.85
5.5.340.0000.03016.02
5.5.330.0110.03716.17
5.5.320.0050.02516.07
5.5.310.0050.02216.12
5.5.300.0010.02516.12
5.5.290.0030.02316.21
5.5.280.0040.02916.18
5.5.270.0020.02716.20
5.5.260.0060.02515.95
5.5.250.0030.02316.06
5.5.240.0080.01915.95
5.5.230.0040.02315.80
5.5.220.0050.02215.79
5.5.210.0070.02515.70
5.5.200.0070.02615.64
5.5.190.0040.02215.86
5.5.180.0050.02615.86
5.5.170.0030.01013.85
5.5.160.0050.02515.74
5.5.150.0050.02115.95
5.5.140.0040.02215.76
5.5.130.0050.02215.76
5.5.120.0020.02715.95
5.5.110.0050.02415.84
5.5.100.0030.02315.67
5.5.90.0100.02115.78
5.5.80.0020.04615.76
5.5.70.0020.02715.86
5.5.60.0050.02015.58
5.5.50.0060.02015.54
5.5.40.0050.02115.59
5.5.30.0030.04415.52
5.5.20.0110.02215.53
5.5.10.0060.02115.70
5.5.00.0030.02315.59
5.4.450.0070.02815.33
5.4.440.0080.02115.33
5.4.430.0050.02415.31
5.4.420.0000.02715.42
5.4.410.0110.02515.33
5.4.400.0050.02115.08
5.4.390.0050.03815.25
5.4.380.0020.02515.19
5.4.370.0020.02315.12
5.4.360.0050.02215.18
5.4.350.0020.02415.19
5.4.340.0010.02715.13
5.4.330.0050.00311.33
5.4.320.0150.01715.23
5.4.310.0050.02115.19
5.4.300.0030.02215.15
5.4.290.0080.01815.19
5.4.280.0020.02515.20
5.4.270.0050.02015.19
5.4.260.0050.02015.10
5.4.250.0040.02015.09
5.4.240.0020.02715.07
5.4.230.0030.02415.18
5.4.220.0160.01815.09
5.4.210.0030.02715.15
5.4.200.0050.02115.20
5.4.190.0020.02715.15
5.4.180.0050.02215.16
5.4.170.0050.04115.24
5.4.160.0060.01815.07
5.4.150.0000.04615.07
5.4.140.0040.02214.01
5.4.130.0020.02813.85
5.4.120.0070.02213.96
5.4.110.0080.01714.01
5.4.100.0040.02213.95
5.4.90.0030.02113.84
5.4.80.0050.01813.98
5.4.70.0080.01913.91
5.4.60.0020.02513.99
5.4.50.0020.03313.97
5.4.40.0020.02113.96
5.4.30.0020.02313.84
5.4.20.0060.02013.94
5.4.10.0030.02213.94
5.4.00.0020.03713.68
5.3.290.0020.02913.08
5.3.280.0030.02213.08
5.3.270.0030.02113.08
5.3.260.0020.02413.08
5.3.250.0020.02113.08
5.3.240.0010.02413.08
5.3.230.0030.02013.08
5.3.220.0060.03413.08
5.3.210.0010.02613.08
5.3.200.0060.01713.08
5.3.190.0020.02313.08
5.3.180.0020.02513.08
5.3.170.0060.02213.08
5.3.160.0000.02213.08
5.3.150.0070.03813.08
5.3.140.0020.02613.08
5.3.130.0030.02313.08
5.3.120.0000.02713.08
5.3.110.0030.02113.08
5.3.100.0050.02113.08
5.3.90.0040.02113.08
5.3.80.0050.02113.08
5.3.70.0030.01913.08
5.3.60.0020.02113.08
5.3.50.0050.01913.08
5.3.40.0050.02313.08
5.3.30.0020.02513.08
5.3.20.0020.03713.08
5.3.10.0050.02513.08
5.3.00.0070.02913.08
5.2.170.0000.03714.84
5.2.160.0000.03414.84
5.2.150.0000.03114.84
5.2.140.0030.03014.84
5.2.130.0000.06314.84
5.2.120.0000.04314.84
5.2.110.0040.02514.84
5.2.100.0000.03314.84
5.2.90.0000.03014.84
5.2.80.0030.03514.84
5.2.70.0030.03914.84
5.2.60.0030.02914.84
5.2.50.0000.03214.84
5.2.40.0000.03814.84
5.2.30.0030.03114.84
5.2.20.0060.02514.84
5.2.10.0030.03114.84
5.2.00.0000.04114.84
5.1.60.0000.03314.84
5.1.50.0000.05414.84
5.1.40.0030.02314.84
5.1.30.0000.03014.84
5.1.20.0000.03014.84
5.1.10.0000.02714.84
5.1.00.0030.02514.84
5.0.50.0000.02214.84
5.0.40.0030.02014.84
5.0.30.0000.03414.84
5.0.20.0030.01714.84
5.0.10.0000.02314.84
5.0.00.0000.03414.84
4.4.90.0000.01814.84
4.4.80.0030.03314.84
4.4.70.0000.01714.84
4.4.60.0040.01814.84
4.4.50.0000.01814.84
4.4.40.0160.02214.84
4.4.30.0060.01214.84
4.4.20.0000.01714.84
4.4.10.0040.01214.84
4.4.00.0030.02414.84
4.3.110.0000.01714.84
4.3.100.0030.01514.84
4.3.90.0000.01814.84
4.3.80.0030.02414.84
4.3.70.0000.01814.84
4.3.60.0000.01614.84
4.3.50.0000.01614.84
4.3.40.0030.03814.84
4.3.30.0110.01114.84
4.3.20.0000.02314.84
4.3.10.0000.01714.84
4.3.00.0000.01714.84

preferences:
54.52 ms | 400 KiB | 5 Q