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) { forEach($array as $index => $item) { if(is_Array($item)) { echo "YES-" . ": " . $item . "\n"; checkArray($item); } else { echo "NO-" . ": " . $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.0130.00716.63
8.3.50.0140.00521.95
8.3.40.0140.00018.57
8.3.30.0110.00318.67
8.3.20.0040.00420.39
8.3.10.0040.00423.70
8.3.00.0050.00319.38
8.2.180.0090.01218.02
8.2.170.0160.00622.96
8.2.160.0060.01220.43
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0030.00617.50
8.2.120.0040.00426.35
8.2.110.0070.00322.12
8.2.100.0070.00419.63
8.2.90.0040.00419.05
8.2.80.0080.00017.97
8.2.70.0030.00617.50
8.2.60.0060.00317.89
8.2.50.0080.00018.07
8.2.40.0040.00419.46
8.2.30.0000.00720.60
8.2.20.0080.00017.75
8.2.10.0000.00818.22
8.2.00.0000.00718.05
8.1.280.0100.01025.92
8.1.270.0050.00323.83
8.1.260.0080.00028.09
8.1.250.0000.00728.09
8.1.240.0040.00423.91
8.1.230.0120.00019.20
8.1.220.0070.00017.74
8.1.210.0000.00718.77
8.1.200.0060.00317.23
8.1.190.0000.00817.23
8.1.180.0000.00918.10
8.1.170.0000.00718.71
8.1.160.0040.00421.93
8.1.150.0000.00818.83
8.1.140.0050.00319.58
8.1.130.0070.00017.69
8.1.120.0040.00417.34
8.1.110.0040.00417.34
8.1.100.0040.00417.44
8.1.90.0000.00717.29
8.1.80.0040.00417.46
8.1.70.0000.00817.49
8.1.60.0030.00517.62
8.1.50.0000.00817.48
8.1.40.0030.00817.49
8.1.30.0060.00317.55
8.1.20.0000.00817.64
8.1.10.0040.00417.54
8.1.00.0040.00417.34
8.0.300.0070.00018.77
8.0.290.0000.00816.75
8.0.280.0030.00318.43
8.0.270.0000.00717.27
8.0.260.0050.00517.25
8.0.250.0000.00716.95
8.0.240.0040.00416.87
8.0.230.0040.00416.92
8.0.220.0060.00316.96
8.0.210.0000.00716.96
8.0.200.0030.00316.97
8.0.190.0040.00316.97
8.0.180.0050.00216.94
8.0.170.0000.00716.96
8.0.160.0000.00716.85
8.0.150.0060.00316.93
8.0.140.0000.00816.88
8.0.130.0000.00513.38
8.0.120.0040.00416.92
8.0.110.0000.00816.93
8.0.100.0030.00516.80
8.0.90.0000.00716.77
8.0.80.0130.00317.00
8.0.70.0000.00716.77
8.0.60.0020.00516.79
8.0.50.0050.00216.95
8.0.30.0130.00717.08
8.0.20.0070.01117.41
8.0.10.0030.00517.02
8.0.00.0100.00816.78
7.4.330.0020.00216.89
7.4.320.0000.00716.43
7.4.300.0060.00016.55
7.4.290.0060.00016.55
7.4.280.0050.00316.59
7.4.270.0040.00416.50
7.4.260.0070.00016.38
7.4.250.0030.00316.57
7.4.240.0050.00216.56
7.4.230.0000.00716.41
7.4.220.0140.01116.50
7.4.210.0030.01016.42
7.4.200.0000.00816.30
7.4.160.0080.01116.50
7.4.150.0040.01317.40
7.4.140.0090.01617.86
7.4.130.0110.00616.56
7.4.120.0080.00816.48
7.4.110.0090.00816.54
7.4.100.0090.00916.61
7.4.90.0150.00716.54
7.4.80.0180.00019.39
7.4.70.0090.01616.40
7.4.60.0120.00316.55
7.4.50.0060.00916.35
7.4.40.0160.00616.50
7.4.30.0150.00316.45
7.4.00.0070.00614.87
7.3.330.0000.00513.26
7.3.320.0000.00713.23
7.3.310.0050.00216.23
7.3.300.0030.00316.36
7.3.290.0090.00616.34
7.3.280.0080.00816.37
7.3.270.0220.00017.40
7.3.260.0130.00316.84
7.3.250.0110.00616.36
7.3.240.0140.00316.45
7.3.230.0110.01516.59
7.3.210.0030.01416.49
7.3.200.0060.01016.39
7.3.190.0030.01316.64
7.3.180.0100.00616.25
7.3.170.0030.01316.70
7.3.160.0080.00816.54
7.2.330.0040.01516.54
7.2.320.0150.00916.61
7.2.310.0180.00016.79
7.2.300.0100.00616.71
7.2.290.0120.00616.54
7.1.70.0050.00316.84
7.1.60.0160.00919.36
7.1.50.0230.01134.40
7.1.00.0070.07322.48
7.0.200.0060.00316.53
7.0.60.0170.07719.91
7.0.50.0100.03317.96
7.0.40.0100.04020.10
7.0.30.0270.03320.13
7.0.20.0270.04320.16
7.0.10.0100.08020.06
7.0.00.0070.09020.31
5.6.280.0070.03021.01
5.6.210.0070.08020.50
5.6.200.0130.07318.25
5.6.190.0070.08020.57
5.6.180.0500.07320.42
5.6.170.0330.07720.52
5.6.160.0030.04020.50
5.6.150.0030.08718.14
5.6.140.0000.09318.21
5.6.130.0170.04318.18
5.6.120.0130.06320.98
5.6.110.0100.08020.99
5.6.100.0000.04720.89
5.6.90.0070.04321.00
5.6.80.0070.04020.45
5.5.350.4270.04320.52
5.5.340.0070.04017.99
5.5.330.0230.04720.35
5.5.320.0170.04020.35
5.5.310.0200.04320.28
5.5.300.0030.05717.94
5.5.290.0030.06317.96
5.5.280.0030.07320.77
5.5.270.0100.04720.80
5.5.260.0100.07320.68
5.5.250.0200.06720.69
5.5.240.0270.06020.27

preferences:
37.76 ms | 401 KiB | 5 Q