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) { if(is_Array ($array)) { echo "======== \n"; forEach($array as $index => $item) { $dimensionPath = $array[$index]; $dimensionName = ($array) . ($index); echo "YES-" . (($dimensionName) . ": " . ($item) . "\n"); checkArray($dimensionPath); } } } 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.0150.00316.50
8.3.50.0120.00621.98
8.3.40.0100.00718.82
8.3.30.0140.00018.67
8.3.20.0040.00420.29
8.3.10.0080.00021.90
8.3.00.0040.00419.38
8.2.180.0120.00616.75
8.2.170.0100.00722.96
8.2.160.0140.00019.42
8.2.150.0040.00424.18
8.2.140.0020.00524.66
8.2.130.0000.00826.16
8.2.120.0040.00421.00
8.2.110.0000.01020.43
8.2.100.0090.00318.05
8.2.90.0000.00819.10
8.2.80.0040.00417.97
8.2.70.0000.00817.63
8.2.60.0050.00517.93
8.2.50.0030.00518.07
8.2.40.0050.00319.47
8.2.30.0000.00720.62
8.2.20.0030.00617.68
8.2.10.0050.00318.13
8.2.00.0030.00518.04
8.1.280.0120.00925.92
8.1.270.0030.00622.04
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0090.00022.19
8.1.230.0040.00717.79
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0030.00617.23
8.1.190.0050.00317.13
8.1.180.0030.00618.10
8.1.170.0000.00818.66
8.1.160.0070.00321.93
8.1.150.0000.00718.78
8.1.140.0040.00419.59
8.1.130.0030.00517.68
8.1.120.0000.00717.50
8.1.110.0000.00717.40
8.1.100.0040.00417.47
8.1.90.0000.00717.36
8.1.80.0030.00317.48
8.1.70.0040.00417.37
8.1.60.0080.00417.47
8.1.50.0080.00017.49
8.1.40.0030.00517.44
8.1.30.0000.00817.54
8.1.20.0000.00817.61
8.1.10.0030.00617.57
8.1.00.0040.00417.50
8.0.300.0000.00818.77
8.0.290.0000.00716.58
8.0.280.0030.00318.45
8.0.270.0040.00417.27
8.0.260.0060.00017.28
8.0.250.0070.00016.97
8.0.240.0000.00717.03
8.0.230.0000.00716.93
8.0.220.0050.00216.94
8.0.210.0000.00716.99
8.0.200.0000.00616.98
8.0.190.0000.01017.00
8.0.180.0000.00817.05
8.0.170.0030.00516.89
8.0.160.0030.00416.89
8.0.150.0070.00016.88
8.0.140.0040.00816.79
8.0.130.0000.00613.35
8.0.120.0080.00016.82
8.0.110.0030.00516.88
8.0.100.0050.00216.96
8.0.90.0040.00417.00
8.0.80.0160.00616.91
8.0.70.0000.00816.99
8.0.60.0050.00216.84
8.0.50.0040.00416.79
8.0.30.0060.01317.04
8.0.20.0110.01517.40
8.0.10.0040.00416.94
8.0.00.0120.00716.77
7.4.330.0000.00516.77
7.4.320.0030.00316.54
7.4.300.0000.00616.60
7.4.290.0000.00716.46
7.4.280.0060.00316.49
7.4.270.0000.00716.44
7.4.260.0000.00716.64
7.4.250.0040.00416.43
7.4.240.0040.00416.53
7.4.230.0000.00716.51
7.4.220.0110.01116.63
7.4.210.0180.00016.46
7.4.200.0000.00716.40
7.4.160.0110.00716.79
7.4.150.0040.01817.40
7.4.140.0080.01217.86
7.4.130.0100.00816.54
7.4.120.0080.00916.55
7.4.110.0100.00716.61
7.4.100.0060.01216.41
7.4.90.0150.00716.33
7.4.80.0160.00619.39
7.4.70.0130.00616.71
7.4.60.0060.00916.43
7.4.50.0110.00716.51
7.4.40.0060.01216.44
7.4.30.0100.00716.50
7.4.00.0070.01015.03
7.3.330.0060.00013.32
7.3.320.0040.00413.20
7.3.310.0040.00416.34
7.3.300.0030.00316.31
7.3.290.0070.00816.31
7.3.280.0060.01016.37
7.3.270.0060.01217.40
7.3.260.0120.00916.61
7.3.250.0090.01216.44
7.3.240.0110.00816.67
7.3.230.0100.01316.56
7.3.210.0070.01016.59
7.3.200.0030.01316.61
7.3.190.0160.00316.50
7.3.180.0100.00816.35
7.3.170.0130.00316.52
7.3.160.0110.00516.39
7.3.10.0120.00316.65
7.3.00.0100.00316.60
7.2.330.0030.01416.75
7.2.320.0030.01516.70
7.2.310.0150.00916.80
7.2.300.0060.01216.86
7.2.290.0130.01116.82
7.2.130.0090.00316.57
7.2.120.0110.00416.74
7.2.110.0040.00717.11
7.2.100.0070.00717.00
7.2.90.0070.00716.94
7.2.80.0030.01016.60
7.2.70.0080.00617.00
7.2.60.0060.00316.89
7.2.50.0080.00316.97
7.2.40.0000.01517.13
7.2.30.0130.00616.58
7.2.20.0110.00716.53
7.2.10.0100.00716.94
7.2.00.0070.01017.97
7.1.250.0070.01015.87
7.1.100.0030.00918.16
7.1.70.0000.00817.16
7.1.60.0120.01219.36
7.1.50.0070.01417.02
7.1.00.0100.07022.28
7.0.200.0030.00616.96
7.0.60.0030.06019.93
7.0.50.0130.07717.95
7.0.40.0000.04720.05
7.0.30.0470.06720.30
7.0.20.0330.06320.24
7.0.10.0030.06720.21
7.0.00.0100.06720.14
5.6.280.0000.03321.08
5.6.210.0100.05320.73
5.6.200.0070.05018.25
5.6.190.0030.04320.60
5.6.180.0600.06020.55
5.6.170.0170.04020.39
5.6.160.0030.05720.45
5.6.150.0030.05018.29
5.6.140.0130.05318.16
5.6.130.0030.07718.28
5.6.120.0170.04321.02
5.6.110.0070.08021.01
5.6.100.0170.07721.11
5.6.90.0070.04320.97
5.6.80.0100.07720.37
5.5.350.4130.04320.29
5.5.340.0130.06718.02
5.5.330.0100.04020.57
5.5.320.0000.05020.20
5.5.310.0330.07020.24
5.5.300.0070.06717.98
5.5.290.0070.05318.08
5.5.280.0100.08020.70
5.5.270.0130.07720.89
5.5.260.0070.08320.65
5.5.250.0030.08720.50
5.5.240.0300.06320.25

preferences:
54.59 ms | 401 KiB | 5 Q