3v4l.org

run code in 300+ PHP versions simultaneously
<?php $superheroes = array( "spider-man" => array( "name" => "Peter Parker", "email" => "peterparker@mail.com", ), "super-man" => array( "name" => "Clark Kent", "email" => "clarkkent@mail.com", ), "iron-man" => array( "name" => "Harry Potter", "email" => "harrypotter@mail.com", ) ); function checkArray($array) { forEach($array as $index => $item) { if(is_Array ($item)) { echo "========== \n"; $dimensionPath = $array . $index; echo "YES-" . $dimensionPath . ": " . $item . "\n"; checkArray($item); } else { echo "NO-" . $index . ": " . $item . "\n"; } } } checkArray($superheroes);

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.0040.01116.75
8.3.50.0160.00321.99
8.3.40.0120.00318.56
8.3.30.0070.01418.89
8.3.20.0080.00020.34
8.3.10.0030.00523.66
8.3.00.0050.00319.25
8.2.180.0120.00618.43
8.2.170.0160.00622.96
8.2.160.0060.00920.13
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0090.00019.36
8.2.120.0070.00026.35
8.2.110.0060.00322.00
8.2.100.0000.01217.91
8.2.90.0040.00418.22
8.2.80.0040.00417.97
8.2.70.0080.00017.63
8.2.60.0030.00718.05
8.2.50.0040.00418.07
8.2.40.0060.00319.28
8.2.30.0030.00320.51
8.2.20.0030.00617.74
8.2.10.0030.00518.11
8.2.00.0080.00018.13
8.1.280.0150.00625.92
8.1.270.0040.00722.18
8.1.260.0000.00828.09
8.1.250.0040.00428.09
8.1.240.0030.01021.94
8.1.230.0080.00422.52
8.1.220.0030.00617.91
8.1.210.0030.00518.77
8.1.200.0040.00417.23
8.1.190.0000.00817.22
8.1.180.0050.00318.10
8.1.170.0050.00320.50
8.1.160.0000.00721.91
8.1.150.0040.00418.77
8.1.140.0040.00419.64
8.1.130.0000.00717.38
8.1.120.0050.00217.50
8.1.110.0040.00417.42
8.1.100.0040.00417.40
8.1.90.0000.00817.50
8.1.80.0050.00317.37
8.1.70.0080.00017.46
8.1.60.0080.00017.61
8.1.50.0030.00517.52
8.1.40.0080.00017.52
8.1.30.0040.00417.51
8.1.20.0000.00917.65
8.1.10.0070.00317.52
8.1.00.0040.00417.30
8.0.300.0040.00420.21
8.0.290.0080.00016.75
8.0.280.0030.00318.33
8.0.270.0070.00017.26
8.0.260.0000.00616.80
8.0.250.0070.00017.02
8.0.240.0000.00816.89
8.0.230.0040.00416.89
8.0.220.0040.00416.96
8.0.210.0030.00516.86
8.0.200.0000.00716.95
8.0.190.0030.00716.99
8.0.180.0050.00217.00
8.0.170.0070.00016.89
8.0.160.0050.00316.93
8.0.150.0070.00016.81
8.0.140.0000.01116.81
8.0.130.0060.00013.34
8.0.120.0000.00816.92
8.0.110.0050.00216.89
8.0.100.0080.00016.79
8.0.90.0040.00417.00
8.0.80.0000.02216.98
8.0.70.0040.00416.95
8.0.60.0040.00417.02
8.0.50.0040.00416.99
8.0.30.0090.00917.29
8.0.20.0060.01517.40
8.0.10.0080.00017.11
8.0.00.0040.01316.68
7.4.330.0030.00316.84
7.4.320.0000.00616.61
7.4.300.0030.00316.40
7.4.290.0030.00316.59
7.4.280.0050.00516.54
7.4.270.0070.00016.50
7.4.260.0040.00416.61
7.4.250.0040.00416.59
7.4.240.0060.00216.46
7.4.230.0000.00716.50
7.4.220.0060.01616.61
7.4.210.0140.00516.50
7.4.200.0070.00016.41
7.4.160.0100.01016.44
7.4.150.0070.01117.40
7.4.140.0100.01017.86
7.4.130.0120.00616.53
7.4.120.0060.01116.50
7.4.110.0070.01016.58
7.4.100.0070.01016.43
7.4.90.0130.00416.47
7.4.80.0150.00319.39
7.4.70.0160.00716.46
7.4.60.0130.00316.52
7.4.50.0000.01516.70
7.4.40.0030.01316.45
7.4.30.0090.00616.74
7.4.00.0080.00914.98
7.3.330.0030.00313.39
7.3.320.0000.00613.36
7.3.310.0070.00016.36
7.3.300.0030.00316.24
7.3.290.0080.00616.35
7.3.280.0050.01016.39
7.3.270.0120.00617.40
7.3.260.0150.01116.55
7.3.250.0120.00616.47
7.3.240.0080.00816.46
7.3.230.0090.00916.45
7.3.210.0140.00316.50
7.3.200.0090.01116.60
7.3.190.0060.01016.37
7.3.180.0100.01016.48
7.3.170.0060.01016.38
7.3.160.0120.00416.41
7.3.120.0040.01314.80
7.3.110.0050.01114.85
7.3.100.0060.00814.81
7.3.90.0050.00914.94
7.3.80.0040.00914.81
7.3.70.0060.00714.89
7.3.60.0040.00914.87
7.3.50.0030.01014.89
7.3.40.0040.01014.80
7.3.30.0070.00814.92
7.3.20.0070.00616.65
7.3.10.0060.00916.70
7.3.00.0050.00916.57
7.2.330.0120.00616.67
7.2.320.0170.00016.46
7.2.310.0040.01416.79
7.2.300.0100.00616.51
7.2.290.0130.01016.41
7.2.250.0090.00814.88
7.2.240.0050.01114.95
7.2.230.0050.01014.96
7.2.220.0030.01114.97
7.2.210.0090.00514.99
7.2.200.0090.00415.08
7.2.190.0070.00915.07
7.2.180.0100.00614.97
7.2.170.0060.00815.01
7.2.160.0130.00314.81
7.2.150.0000.01317.03
7.2.140.0110.00316.96
7.2.130.0070.00816.80
7.2.120.0040.01216.93
7.2.110.0070.00716.98
7.2.100.0030.01116.90
7.2.90.0080.00716.75
7.2.80.0030.00716.90
7.2.70.0040.01216.87
7.2.60.0050.00916.68
7.2.50.0030.01116.92
7.2.40.0080.00517.04
7.2.30.0070.00617.04
7.2.20.0080.00516.90
7.2.10.0090.00516.99
7.2.00.0030.01017.65
7.1.330.0050.01015.74
7.1.320.0070.00815.78
7.1.310.0070.00715.92
7.1.300.0070.00715.76
7.1.290.0060.00715.75
7.1.280.0040.00815.69
7.1.270.0050.00815.62
7.1.260.0070.00715.70
7.1.250.0080.00815.68
7.1.100.0030.00918.39
7.1.70.0000.01016.99
7.1.60.0120.01219.36
7.1.50.0090.01316.71
7.1.00.0100.06722.44
7.0.200.0030.00516.85
7.0.100.0070.03720.05
7.0.90.0100.03019.94
7.0.80.0000.04019.98
7.0.70.0000.03719.86
7.0.60.0100.04719.88
7.0.50.0000.04320.15
7.0.40.0130.07320.13
7.0.30.0130.07020.05
7.0.20.0070.07720.09
7.0.10.0000.09720.07
7.0.00.0100.04020.09
5.6.280.0070.03321.12
5.6.250.0030.04020.63
5.6.240.0070.04020.64
5.6.230.0030.04320.51
5.6.220.0000.03720.56
5.6.210.0030.04720.75
5.6.200.0000.03721.03
5.6.190.0070.04020.98
5.6.180.0000.05321.00
5.6.170.0000.05021.14
5.6.160.0030.05021.08
5.6.150.0100.04321.14
5.6.140.0030.08720.99
5.6.130.0100.08321.08
5.6.120.0070.04721.03
5.6.110.0100.07721.13
5.6.100.0100.07720.93
5.6.90.0100.06021.11
5.6.80.0100.07720.43
5.6.70.0030.05720.45
5.6.60.0170.06720.38
5.6.50.0070.05320.47
5.6.40.0030.07720.43
5.6.30.0030.07720.31
5.6.20.0030.08720.37
5.6.10.0030.05020.30
5.6.00.0130.07020.35
5.5.380.0030.04020.43
5.5.370.0070.04320.43
5.5.360.0000.05020.34
5.5.350.0070.03720.46
5.5.340.0030.05020.92
5.5.330.0100.07320.74
5.5.320.0030.08020.95
5.5.310.0130.05020.73
5.5.300.0030.05020.84
5.5.290.0070.09020.79
5.5.280.0030.07320.91
5.5.270.0100.03720.87
5.5.260.0000.08720.80
5.5.250.0100.06320.69
5.5.240.0100.06020.26
5.5.230.0030.04720.12
5.5.220.0100.08020.02
5.5.210.0030.08020.03
5.5.200.0030.05320.14
5.5.190.0000.08320.11
5.5.180.0100.07020.19
5.5.160.0030.08020.16
5.5.150.0100.07320.25
5.5.140.0170.06020.13
5.5.130.0100.07020.08
5.5.120.0070.08019.97
5.5.110.0200.06320.24
5.5.100.0100.07320.20
5.5.90.0000.08020.13
5.5.80.0030.08020.05
5.5.70.0070.08020.04
5.5.60.0070.07020.10
5.5.50.0070.04020.01
5.5.40.0070.07020.11
5.5.30.0100.06020.08
5.5.20.0030.06720.05
5.5.10.0030.05320.12
5.5.00.0070.06720.09

preferences:
56.13 ms | 401 KiB | 5 Q