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) { forEach($array as $index => $item) { $dimensionName = $dimensionName . $array; //$dimensionPath = $array . $index; if(is_Array($item)) { echo "========== \n"; //$dimensionPath = $array . $index; echo "YES-" . $dimensionName . ": " . $item . "\n"; checkArray($item, $dimensionName); } else { echo "NO-" . $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.60.0110.00416.88
8.3.50.0120.00822.11
8.3.40.0040.01118.54
8.3.30.0150.00018.84
8.3.20.0000.00720.39
8.3.10.0090.00023.51
8.3.00.0050.00519.36
8.2.180.0060.01216.88
8.2.170.0120.00922.96
8.2.160.0100.00319.46
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0030.00617.60
8.2.120.0000.00726.35
8.2.110.0050.00520.35
8.2.100.0000.01117.93
8.2.90.0030.00519.09
8.2.80.0080.00017.97
8.2.70.0040.00417.38
8.2.60.0040.00417.92
8.2.50.0030.00618.07
8.2.40.0040.00719.34
8.2.30.0000.00820.57
8.2.20.0040.00417.59
8.2.10.0030.00617.97
8.2.00.0000.00717.97
8.1.280.0150.00025.92
8.1.270.0160.00023.99
8.1.260.0000.00728.09
8.1.250.0040.00428.09
8.1.240.0090.00022.14
8.1.230.0090.00317.76
8.1.220.0160.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00617.11
8.1.190.0000.00817.23
8.1.180.0030.00518.10
8.1.170.0000.00718.78
8.1.160.0070.00021.87
8.1.150.0070.00018.86
8.1.140.0050.00319.50
8.1.130.0040.00417.57
8.1.120.0000.00717.37
8.1.110.0050.00317.38
8.1.100.0030.00417.36
8.1.90.0000.00717.29
8.1.80.0000.00717.41
8.1.70.0070.00017.34
8.1.60.0040.00417.53
8.1.50.0000.00917.41
8.1.40.0080.00017.50
8.1.30.0030.00617.62
8.1.20.0040.00417.63
8.1.10.0040.00817.43
8.1.00.0000.00917.45
8.0.300.0040.00418.77
8.0.290.0050.00316.63
8.0.280.0070.00018.37
8.0.270.0030.00317.28
8.0.260.0000.00617.27
8.0.250.0030.00316.93
8.0.240.0040.00416.84
8.0.230.0000.00716.94
8.0.220.0000.00816.93
8.0.210.0030.00316.79
8.0.200.0000.00716.93
8.0.190.0090.00017.00
8.0.180.0040.00416.81
8.0.170.0030.00516.86
8.0.160.0000.00816.88
8.0.150.0000.00716.73
8.0.140.0080.00316.84
8.0.130.0000.00613.20
8.0.120.0030.00616.70
8.0.110.0000.00716.96
8.0.100.0040.00416.84
8.0.90.0080.00016.88
8.0.80.0070.01016.94
8.0.70.0000.00716.86
8.0.60.0020.00516.86
8.0.50.0030.00516.70
8.0.30.0070.01117.01
8.0.20.0120.00817.40
8.0.10.0000.00816.88
8.0.00.0130.00416.60
7.4.330.0030.00316.73
7.4.320.0060.00016.51
7.4.300.0030.00316.51
7.4.290.0040.00416.55
7.4.280.0040.00416.61
7.4.270.0000.00616.40
7.4.260.0040.00316.62
7.4.250.0080.00016.41
7.4.240.0050.00216.58
7.4.230.0030.00316.71
7.4.220.0030.01516.70
7.4.210.0060.01116.53
7.4.200.0070.00016.50
7.4.160.0120.00416.49
7.4.150.0080.01117.40
7.4.140.0180.00517.86
7.4.130.0080.01016.51
7.4.120.0100.00816.48
7.4.110.0070.01016.48
7.4.100.0100.00716.54
7.4.90.0090.00916.64
7.4.80.0150.00319.39
7.4.70.0000.01716.62
7.4.60.0060.00916.42
7.4.50.0000.01616.13
7.4.40.0060.00916.37
7.4.30.0090.00916.68
7.4.00.0070.01014.96
7.3.330.0060.00013.30
7.3.320.0000.00613.15
7.3.310.0030.00316.18
7.3.300.0030.00516.16
7.3.290.0030.00316.25
7.3.280.0110.00616.31
7.3.270.0260.02017.40
7.3.260.0070.01016.51
7.3.250.0130.00616.42
7.3.240.0070.01216.47
7.3.230.0130.00316.58
7.3.210.0030.01316.57
7.3.200.0080.01116.48
7.3.190.0030.01416.50
7.3.180.0130.00316.38
7.3.170.0070.01016.37
7.3.160.0100.00616.40
7.3.10.0070.01016.51
7.3.00.0090.01216.42
7.2.330.0030.01316.65
7.2.320.0080.01116.60
7.2.310.0130.00316.58
7.2.300.0040.01216.61
7.2.290.0170.00616.47
7.2.130.0110.01016.68
7.2.120.0100.00816.41
7.2.110.0150.00516.57
7.2.100.0130.00616.46
7.2.90.0100.00816.57
7.2.80.0140.00416.50
7.2.70.0080.00516.60
7.2.60.0040.00916.57
7.2.50.0060.01016.57
7.2.40.0050.01116.51
7.2.30.0070.00916.59
7.2.20.0070.00816.51
7.2.10.0100.00416.62
7.2.00.0070.00717.63
7.1.250.0140.00715.46
7.1.200.0060.00615.63
7.1.100.0060.00617.44
7.1.70.0040.01117.14
7.1.60.0130.01019.36
7.1.50.0060.01616.80
7.1.00.0030.07722.48
7.0.200.0090.00616.69
7.0.100.0030.07319.89
7.0.90.0070.07019.86
7.0.80.0100.08019.91
7.0.70.0170.04719.92
7.0.60.0330.08019.94
7.0.50.0430.07020.28
7.0.40.0170.07320.17
7.0.30.0100.07720.10
7.0.20.0070.08019.99
7.0.10.0100.07720.06
7.0.00.0030.07320.16
5.6.280.0030.07321.13
5.6.250.0000.08020.72
5.6.240.0100.06020.64
5.6.230.0000.05020.63
5.6.220.0100.04320.59
5.6.210.0130.04320.67
5.6.200.0130.05721.01
5.6.190.0170.06021.14
5.6.180.0100.08021.05
5.6.170.0100.08021.08
5.6.160.0000.09021.02
5.6.150.0070.08321.09
5.6.140.0100.08320.95
5.6.130.0100.08721.09
5.6.120.0130.06721.06
5.6.110.0230.07020.97
5.6.100.0100.07321.01
5.6.90.0030.08721.09
5.6.80.0070.05320.35
5.6.70.0070.06320.46
5.6.60.0130.08020.48
5.6.50.0100.04320.45
5.6.40.0070.07020.46
5.6.30.0070.07020.37
5.6.20.0100.04320.38
5.6.10.0070.07720.32
5.6.00.0100.07320.52
5.5.380.0070.07320.57
5.5.370.0030.04720.38
5.5.360.0130.08020.41
5.5.350.0030.06720.38
5.5.340.0030.08320.93
5.5.330.0070.08320.78
5.5.320.0130.07720.87
5.5.310.0130.07320.90
5.5.300.0100.06720.65
5.5.290.0200.07020.87
5.5.280.0000.08020.78
5.5.270.0070.08320.83
5.5.260.0070.06020.82
5.5.250.0100.07720.46
5.5.240.0000.08320.29
5.5.230.0170.06320.11
5.5.220.0030.07720.21
5.5.210.0170.04020.17
5.5.200.0070.08020.21
5.5.190.0030.05320.13
5.5.180.0170.07720.18
5.5.160.0230.06320.09
5.5.150.0100.08720.18
5.5.140.0100.06720.21
5.5.130.0130.06720.13
5.5.120.0030.08020.08
5.5.110.0070.06320.23
5.5.100.0230.06020.19
5.5.90.0030.08019.95
5.5.80.0130.06719.98
5.5.70.0130.07320.11
5.5.60.0170.06720.09
5.5.50.0030.08020.04
5.5.40.0070.07720.15
5.5.30.0070.08019.96
5.5.20.0170.06720.16
5.5.10.0070.07720.04
5.5.00.0200.05720.11

preferences:
89.81 ms | 401 KiB | 5 Q