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", ) ); //print_r($superheroes); function checkArray($array, $dimensionName) { $dimensionName = $dimensionName . "_" . $array; forEach($array as $index => $item) { //$dimensionPath = $array . $index; if(is_Array($item)) { echo "========== \n"; //$dimensionPath = $array . $index; echo "YES1-" . $dimensionName . ": " . $item . "\n"; checkArray($item, $dimensionName); } else { echo "NO2-" . $dimensionName . ": " . $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.70.0120.00318.18
8.3.60.0030.01417.00
8.3.50.0120.00721.98
8.3.40.0060.00918.57
8.3.30.0120.00318.85
8.3.20.0040.00420.16
8.3.10.0080.00023.54
8.3.00.0090.00019.15
8.2.190.0180.00316.75
8.2.180.0090.00618.33
8.2.170.0070.01122.96
8.2.160.0080.00519.46
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0060.00317.63
8.2.120.0050.00326.35
8.2.110.0030.00722.13
8.2.100.0040.00817.80
8.2.90.0050.00319.23
8.2.80.0000.00817.97
8.2.70.0050.00317.38
8.2.60.0040.00417.66
8.2.50.0040.00418.07
8.2.40.0040.00419.30
8.2.30.0040.00420.49
8.2.20.0040.00417.73
8.2.10.0040.00418.03
8.2.00.0030.00517.93
8.1.280.0140.00725.92
8.1.270.0100.00022.06
8.1.260.0000.00728.09
8.1.250.0070.00028.09
8.1.240.0040.00422.67
8.1.230.0070.00417.54
8.1.220.0000.00917.78
8.1.210.0050.00318.77
8.1.200.0040.00717.36
8.1.190.0090.00317.00
8.1.180.0000.00818.10
8.1.170.0000.00718.59
8.1.160.0000.00721.86
8.1.150.0030.00618.77
8.1.140.0040.00419.39
8.1.130.0030.00317.60
8.1.120.0040.00417.45
8.1.110.0000.00817.42
8.1.100.0030.00517.28
8.1.90.0000.00817.31
8.1.80.0070.00017.44
8.1.70.0070.00017.36
8.1.60.0030.00617.51
8.1.50.0030.00617.42
8.1.40.0050.00317.47
8.1.30.0000.00817.58
8.1.20.0040.00417.54
8.1.10.0060.00317.61
8.1.00.0080.00017.57
8.0.300.0070.00018.77
8.0.290.0000.00816.63
8.0.280.0040.00418.32
8.0.270.0000.00717.14
8.0.260.0040.00417.11
8.0.250.0030.00316.95
8.0.240.0030.00516.91
8.0.230.0030.00316.95
8.0.220.0030.00516.86
8.0.210.0030.00316.89
8.0.200.0000.00616.92
8.0.190.0000.01016.95
8.0.180.0040.00416.80
8.0.170.0040.00416.91
8.0.160.0030.00516.93
8.0.150.0040.00416.73
8.0.140.0000.01116.79
8.0.130.0030.00313.28
8.0.120.0000.00816.70
8.0.110.0080.00016.78
8.0.100.0070.00016.94
8.0.90.0000.00716.92
8.0.80.0070.00716.82
8.0.70.0050.00316.69
8.0.60.0000.00716.92
8.0.50.0040.00416.85
8.0.30.0090.01517.14
8.0.20.0110.01217.40
8.0.10.0000.00716.89
8.0.00.0100.00716.96
7.4.330.0000.00516.84
7.4.320.0030.00316.54
7.4.300.0050.00216.59
7.4.290.0000.00716.58
7.4.280.0040.00416.41
7.4.270.0000.00716.59
7.4.260.0000.00916.57
7.4.250.0040.00416.57
7.4.240.0030.00516.46
7.4.230.0030.00316.62
7.4.220.0170.00316.70
7.4.210.0070.01016.64
7.4.200.0030.00316.61
7.4.160.0090.00616.27
7.4.150.0150.00617.40
7.4.140.0130.00917.86
7.4.130.0110.01216.55
7.4.120.0120.00916.54
7.4.110.0140.00716.48
7.4.100.0070.01016.66
7.4.90.0110.00616.51
7.4.80.0070.01019.39
7.4.70.0070.01016.48
7.4.60.0060.01316.57
7.4.50.0120.00316.31
7.4.40.0090.01216.50
7.4.30.0030.01816.25
7.4.00.0070.00714.91
7.3.330.0000.00513.16
7.3.320.0000.00513.23
7.3.310.0030.00316.27
7.3.300.0050.00316.25
7.3.290.0040.00416.30
7.3.280.0090.00716.29
7.3.270.0130.00917.40
7.3.260.0100.00616.43
7.3.250.0110.00716.42
7.3.240.0130.00916.20
7.3.230.0100.00916.39
7.3.210.0060.01016.59
7.3.200.0130.00316.45
7.3.190.0130.00316.43
7.3.180.0070.01016.59
7.3.170.0070.01616.27
7.3.160.0100.00716.25
7.2.330.0130.00316.69
7.2.320.0100.01316.58
7.2.310.0100.00716.34
7.2.300.0130.00316.62
7.2.290.0160.00616.54
7.2.60.0030.01016.68
7.2.00.0000.01419.06
7.1.200.0130.00315.55
7.1.100.0040.01217.26
7.1.70.0060.00617.04
7.1.60.0000.02419.36
7.1.50.0140.01116.87
7.1.00.0030.07322.30
7.0.200.0050.00316.79
7.0.100.0070.03719.95
7.0.90.0030.04719.94
7.0.80.0100.04019.89
7.0.70.0230.08319.88
7.0.60.0100.07319.95
7.0.50.0100.06720.16
7.0.40.0100.08020.18
7.0.30.0070.09320.08
7.0.20.0000.04720.00
7.0.10.0070.04720.04
7.0.00.0030.05720.16
5.6.280.0030.03021.10
5.6.250.0070.07320.63
5.6.240.0030.06020.51
5.6.230.0130.06720.75
5.6.220.0200.06720.71
5.6.210.0030.05020.76
5.6.200.0070.03721.03
5.6.190.0200.06721.17
5.6.180.0030.07321.11
5.6.170.0100.05021.00
5.6.160.0000.07721.03
5.6.150.0070.06721.03
5.6.140.0070.08021.06
5.6.130.0030.07321.00
5.6.120.0100.08020.96
5.6.110.0030.07321.02
5.6.100.0070.06721.16
5.6.90.0070.08321.00
5.6.80.0070.08020.32
5.6.70.0030.04320.55
5.6.60.0170.03020.49
5.6.50.0100.07720.45
5.6.40.0100.04020.42
5.6.30.0070.06320.47
5.6.20.0000.06020.37
5.6.10.0030.05020.29
5.6.00.0070.06720.42
5.5.380.0000.04720.46
5.5.370.0070.07720.46
5.5.360.0100.07320.35
5.5.350.0100.04320.40
5.5.340.0000.05320.78
5.5.330.0100.07320.74
5.5.320.0000.08720.81
5.5.310.0100.07020.85
5.5.300.0070.04320.89
5.5.290.0000.06720.94
5.5.280.0000.08020.76
5.5.270.0070.05720.86
5.5.260.0070.05020.88
5.5.250.0000.08720.73
5.5.240.0070.07320.17
5.5.230.0070.07720.31
5.5.220.0030.04720.22
5.5.210.0070.04720.22
5.5.200.0100.07020.26
5.5.190.0100.03720.24
5.5.180.0070.06320.16
5.5.160.0030.05720.28
5.5.150.0100.03720.19
5.5.140.0200.06020.22
5.5.130.0000.04720.24
5.5.120.0000.06019.99
5.5.110.0030.04720.26
5.5.100.0030.04020.09
5.5.90.0030.04020.10
5.5.80.0000.04719.91
5.5.70.0100.03320.17
5.5.60.0030.06320.06
5.5.50.0030.06020.10
5.5.40.0030.05320.00
5.5.30.0100.06720.07
5.5.20.0070.08020.06
5.5.10.0100.04320.14
5.5.00.0070.07320.07

preferences:
55.66 ms | 401 KiB | 5 Q