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.0110.00716.63
8.3.50.0180.00221.98
8.3.40.0120.00918.60
8.3.30.0120.00619.02
8.3.20.0040.00420.21
8.3.10.0090.00023.48
8.3.00.0040.00419.38
8.2.180.0090.00618.13
8.2.170.0040.01122.96
8.2.160.0030.01020.21
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0030.00617.63
8.2.120.0080.00026.35
8.2.110.0040.00421.04
8.2.100.0000.01217.84
8.2.90.0050.00517.63
8.2.80.0050.00318.85
8.2.70.0060.00317.93
8.2.60.0070.00318.22
8.2.50.0040.00418.10
8.2.40.0080.00021.07
8.2.30.0000.00820.69
8.2.20.0030.00617.77
8.2.10.0040.00418.07
8.2.00.0040.00418.11
8.1.280.0140.00325.92
8.1.270.0000.01122.10
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0000.01119.01
8.1.230.0040.00720.95
8.1.220.0040.00417.79
8.1.210.0050.00318.77
8.1.200.0030.00617.22
8.1.190.0050.00517.35
8.1.180.0000.00818.10
8.1.170.0040.00418.59
8.1.160.0000.00821.99
8.1.150.0000.00718.90
8.1.140.0030.00619.49
8.1.130.0000.00717.70
8.1.120.0000.00717.51
8.1.110.0050.00317.41
8.1.100.0030.00517.52
8.1.90.0000.00717.45
8.1.80.0040.00417.50
8.1.70.0040.00417.44
8.1.60.0040.00417.52
8.1.50.0030.00617.47
8.1.40.0000.00817.45
8.1.30.0030.00617.63
8.1.20.0040.00417.66
8.1.10.0090.00317.61
8.1.00.0050.00517.57
8.0.300.0000.00718.77
8.0.290.0080.00016.75
8.0.280.0030.00318.42
8.0.270.0000.00717.23
8.0.260.0030.00317.18
8.0.250.0000.00717.07
8.0.240.0030.00517.00
8.0.230.0000.00717.03
8.0.220.0070.00017.05
8.0.210.0030.00516.85
8.0.200.0060.00016.89
8.0.190.0070.00417.04
8.0.180.0000.00716.91
8.0.170.0040.00417.05
8.0.160.0080.00016.96
8.0.150.0040.00416.83
8.0.140.0060.00616.91
8.0.130.0060.00013.35
8.0.120.0040.00416.82
8.0.110.0020.00516.91
8.0.100.0030.00516.83
8.0.90.0000.00716.78
8.0.80.0040.01116.96
8.0.70.0050.00216.95
8.0.60.0040.00416.83
8.0.50.0000.00716.91
8.0.30.0120.00617.29
8.0.20.0120.00817.42
8.0.10.0040.00417.15
8.0.00.0100.00916.78
7.4.330.0020.00216.83
7.4.320.0000.00716.51
7.4.300.0000.00616.48
7.4.290.0040.00416.56
7.4.280.0000.00716.49
7.4.270.0030.00316.55
7.4.260.0040.00416.59
7.4.250.0000.00716.47
7.4.240.0020.00516.59
7.4.230.0030.00316.50
7.4.220.0080.01116.63
7.4.210.0000.01416.43
7.4.200.0030.00316.60
7.4.160.0060.00916.63
7.4.150.0150.00317.40
7.4.140.0100.00917.86
7.4.130.0110.00716.53
7.4.120.0130.00416.55
7.4.110.0110.00516.50
7.4.100.0110.00716.70
7.4.90.0070.01116.60
7.4.80.0080.00819.39
7.4.70.0000.01716.49
7.4.60.0100.00716.67
7.4.50.0130.00316.63
7.4.40.0030.01316.48
7.4.30.0040.01416.61
7.4.00.0120.00314.85
7.3.330.0030.00313.39
7.3.320.0030.00413.22
7.3.310.0030.00516.21
7.3.300.0030.00516.40
7.3.290.0060.00816.34
7.3.280.0090.00616.36
7.3.270.0120.00917.40
7.3.260.0090.00616.52
7.3.250.0120.00716.46
7.3.240.0110.00616.53
7.3.230.0090.00916.68
7.3.210.0110.00516.53
7.3.200.0030.01216.45
7.3.190.0100.01316.45
7.3.180.0040.01216.54
7.3.170.0070.00716.34
7.3.160.0030.01316.36
7.2.330.0090.00916.47
7.2.320.0040.01916.36
7.2.310.0090.01216.37
7.2.300.0100.00616.33
7.2.290.0150.00916.52
7.2.60.0110.00017.00
7.2.00.0060.00919.29
7.1.200.0040.00815.75
7.1.100.0000.01217.67
7.1.70.0100.01017.08
7.1.60.0070.01719.36
7.1.50.0100.01316.84
7.1.00.0100.06722.46
7.0.200.0080.00016.93
7.0.60.0170.05319.92
7.0.50.0030.04317.90
7.0.40.0000.04720.29
7.0.30.0370.04720.30
7.0.20.0200.05320.33
7.0.10.0000.09320.34
7.0.00.0100.06320.20
5.6.280.0000.06721.08
5.6.210.0170.07020.70
5.6.200.0000.04718.19
5.6.190.0070.06320.63
5.6.180.0500.07720.64
5.6.170.0230.05320.39
5.6.160.0070.05720.54
5.6.150.0070.08018.14
5.6.140.0030.04318.26
5.6.130.0000.08718.18
5.6.120.0100.04721.05
5.6.110.0070.07321.14
5.6.100.0100.04321.00
5.6.90.0000.08320.89
5.6.80.0030.08720.41
5.5.350.2730.03020.41
5.5.340.0070.03717.96
5.5.330.0000.05320.35
5.5.320.0000.04720.32
5.5.310.0300.07020.27
5.5.300.0030.05318.07
5.5.290.0100.07018.04
5.5.280.0100.08720.94
5.5.270.0070.04020.80
5.5.260.0000.04320.76
5.5.250.0030.08720.70
5.5.240.0230.03720.16

preferences:
52.26 ms | 401 KiB | 5 Q