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 . "_" . $index; //$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.60.0180.00316.88
8.3.50.0100.01221.99
8.3.40.0070.01418.77
8.3.30.0150.00018.59
8.3.20.0050.00320.30
8.3.10.0040.00423.73
8.3.00.0040.00419.38
8.2.180.0170.00316.63
8.2.170.0210.00022.96
8.2.160.0110.00719.29
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0060.00317.63
8.2.120.0040.00426.35
8.2.110.0070.00322.17
8.2.100.0000.01117.80
8.2.90.0040.00419.05
8.2.80.0000.00917.97
8.2.70.0080.00017.50
8.2.60.0050.00317.80
8.2.50.0000.00818.07
8.2.40.0040.00419.29
8.2.30.0030.00320.54
8.2.20.0060.00317.68
8.2.10.0040.00418.12
8.2.00.0050.00318.03
8.1.280.0150.00625.92
8.1.270.0070.00323.96
8.1.260.0040.00428.09
8.1.250.0000.00728.09
8.1.240.0030.00622.59
8.1.230.0080.00317.64
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0080.00417.35
8.1.180.0040.00418.10
8.1.170.0040.00418.77
8.1.160.0040.00421.91
8.1.150.0050.00218.90
8.1.140.0040.00419.57
8.1.130.0030.00317.51
8.1.120.0080.00017.40
8.1.110.0000.00817.41
8.1.100.0000.00817.39
8.1.90.0070.00017.29
8.1.80.0000.00717.43
8.1.70.0000.00717.42
8.1.60.0040.00417.57
8.1.50.0030.00517.50
8.1.40.0080.00017.45
8.1.30.0000.00917.71
8.1.20.0030.00617.65
8.1.10.0030.00917.56
8.1.00.0050.00317.43
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0030.00318.25
8.0.270.0030.00317.09
8.0.260.0000.00617.18
8.0.250.0030.00316.90
8.0.240.0080.00016.91
8.0.230.0040.00416.90
8.0.220.0030.00616.91
8.0.210.0000.00816.93
8.0.200.0000.00616.92
8.0.190.0110.00016.96
8.0.180.0070.00016.96
8.0.170.0070.00016.91
8.0.160.0070.00016.93
8.0.150.0080.00016.82
8.0.140.0060.00616.77
8.0.130.0030.00313.29
8.0.120.0000.00816.74
8.0.110.0040.00416.81
8.0.100.0070.00016.84
8.0.90.0000.00816.95
8.0.80.0100.00616.93
8.0.70.0000.00716.82
8.0.60.0080.00016.91
8.0.50.0000.00716.75
8.0.30.0140.00816.84
8.0.20.0170.00517.40
8.0.10.0050.00316.80
8.0.00.0120.00516.76
7.4.330.0020.00216.70
7.4.320.0060.00016.46
7.4.300.0030.00316.48
7.4.290.0000.00716.51
7.4.280.0040.00416.57
7.4.270.0030.00316.50
7.4.260.0030.00616.59
7.4.250.0040.00416.55
7.4.240.0040.00416.53
7.4.230.0070.00016.49
7.4.220.0130.01016.60
7.4.210.0060.00916.52
7.4.200.0040.00416.61
7.4.160.0130.00616.50
7.4.150.0150.00917.40
7.4.140.0110.01117.86
7.4.130.0050.01316.58
7.4.120.0080.01116.50
7.4.110.0140.01016.57
7.4.100.0070.01516.51
7.4.90.0110.00816.66
7.4.80.0110.00719.39
7.4.70.0110.00716.35
7.4.60.0110.00516.32
7.4.50.0070.01016.21
7.4.40.0080.00816.34
7.4.30.0120.00616.60
7.4.00.0110.00715.12
7.3.330.0050.00013.27
7.3.320.0000.00513.25
7.3.310.0070.00016.19
7.3.300.0030.00316.34
7.3.290.0030.00316.13
7.3.280.0090.00716.27
7.3.270.0080.01317.40
7.3.260.0100.00616.46
7.3.250.0110.00916.41
7.3.240.0110.00916.34
7.3.230.0100.00616.39
7.3.210.0070.01016.46
7.3.200.0120.00316.17
7.3.190.0080.00816.32
7.3.180.0180.00416.45
7.3.170.0080.00816.44
7.3.160.0060.01016.58
7.2.330.0100.00716.50
7.2.320.0070.01116.32
7.2.310.0120.00916.63
7.2.300.0060.01116.32
7.2.290.0150.00416.43
7.2.60.0120.00316.61
7.1.200.0030.00715.81
7.1.100.0060.00617.54
7.1.70.0030.00917.11
7.1.60.0120.01219.36
7.1.50.0030.02216.55
7.1.00.0070.07322.27
7.0.200.0030.00916.97
7.0.60.0100.07720.05
7.0.50.0000.04317.84
7.0.40.0000.07020.12
7.0.30.0600.07020.21
7.0.20.0200.03720.26
7.0.10.0000.07720.25
7.0.00.0030.08720.29
5.6.280.0070.06020.89
5.6.210.0170.04720.75
5.6.200.0170.04718.29
5.6.190.0070.04320.53
5.6.180.0500.06720.42
5.6.170.0270.07020.56
5.6.160.0070.08720.39
5.6.150.0070.04718.27
5.6.140.0130.05018.21
5.6.130.0170.04018.21
5.6.120.0070.08320.96
5.6.110.0100.07021.02
5.6.100.0070.04020.96
5.6.90.0030.05721.00
5.6.80.0230.05720.54
5.5.350.2570.04320.41
5.5.340.0000.04017.98
5.5.330.0070.07020.17
5.5.320.0000.04020.34
5.5.310.0270.05720.51
5.5.300.0070.08017.97
5.5.290.0070.03717.94
5.5.280.0030.04020.66
5.5.270.0100.05020.97
5.5.260.0000.09020.77
5.5.250.0100.07720.71
5.5.240.0230.07720.27

preferences:
39.62 ms | 401 KiB | 5 Q