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, $dimensionName) { 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.0090.00616.63
8.3.50.0050.01322.05
8.3.40.0070.01118.80
8.3.30.0100.00518.48
8.3.20.0040.00420.07
8.3.10.0040.00421.60
8.3.00.0050.00319.25
8.2.180.0110.00717.00
8.2.170.0070.01022.96
8.2.160.0070.00719.32
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0030.00619.36
8.2.120.0040.00426.35
8.2.110.0090.00020.52
8.2.100.0040.00817.91
8.2.90.0080.00019.16
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0040.00717.80
8.2.50.0030.00618.07
8.2.40.0040.00419.44
8.2.30.0040.00420.56
8.2.20.0040.00417.57
8.2.10.0000.00717.98
8.2.00.0050.00317.94
8.1.280.0110.01125.92
8.1.270.0060.00322.11
8.1.260.0070.00028.09
8.1.250.0000.00828.09
8.1.240.0000.00822.18
8.1.230.0080.00317.63
8.1.220.0040.00417.79
8.1.210.0040.00418.77
8.1.200.0030.00617.25
8.1.190.0040.00417.23
8.1.180.0000.00718.10
8.1.170.0050.00218.76
8.1.160.0080.00021.95
8.1.150.0000.00818.84
8.1.140.0040.00419.57
8.1.130.0080.00017.69
8.1.120.0040.00417.40
8.1.110.0070.00017.46
8.1.100.0040.00417.37
8.1.90.0040.00317.38
8.1.80.0000.00817.37
8.1.70.0000.00717.24
8.1.60.0080.00417.56
8.1.50.0000.00817.53
8.1.40.0080.00017.52
8.1.30.0040.00417.66
8.1.20.0000.00717.65
8.1.10.0070.00317.50
8.1.00.0040.00717.57
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0000.00718.26
8.0.270.0030.00317.21
8.0.260.0030.00317.16
8.0.250.0070.00016.97
8.0.240.0000.00716.99
8.0.230.0000.00716.99
8.0.220.0000.00816.79
8.0.210.0030.00416.89
8.0.200.0030.00316.94
8.0.190.0040.00417.01
8.0.180.0040.00416.91
8.0.170.0030.00516.84
8.0.160.0030.00316.92
8.0.150.0000.00716.88
8.0.140.0060.00316.73
8.0.130.0060.00013.34
8.0.120.0050.00316.91
8.0.110.0050.00316.91
8.0.100.0040.00416.95
8.0.90.0030.00316.86
8.0.80.0070.01416.83
8.0.70.0040.00416.77
8.0.60.0040.00417.02
8.0.50.0080.00016.80
8.0.30.0070.00917.09
8.0.20.0110.00717.40
8.0.10.0000.00716.80
8.0.00.0110.00716.77
7.4.330.0050.00016.77
7.4.320.0000.00616.57
7.4.300.0060.00016.51
7.4.290.0000.00716.53
7.4.280.0050.00316.57
7.4.270.0040.00416.57
7.4.260.0000.00716.59
7.4.250.0040.00416.58
7.4.240.0030.00316.63
7.4.230.0030.00316.54
7.4.220.0090.00916.66
7.4.210.0110.00416.41
7.4.200.0030.00316.70
7.4.160.0000.01516.47
7.4.150.0070.01317.40
7.4.140.0120.01017.86
7.4.130.0100.01016.54
7.4.120.0090.00816.60
7.4.110.0080.00816.55
7.4.100.0070.01016.61
7.4.90.0070.01016.60
7.4.80.0120.01219.39
7.4.70.0110.00616.56
7.4.60.0070.00716.52
7.4.50.0070.00716.50
7.4.40.0130.00316.40
7.4.30.0070.01416.66
7.4.00.0100.00615.04
7.3.330.0030.00313.16
7.3.320.0050.00213.16
7.3.310.0040.00416.29
7.3.300.0040.00416.35
7.3.290.0040.01016.32
7.3.280.0040.01216.27
7.3.270.0070.01017.40
7.3.260.0060.01116.49
7.3.250.0150.00616.36
7.3.240.0110.00516.25
7.3.230.0070.01016.39
7.3.210.0120.00316.61
7.3.200.0090.00616.30
7.3.190.0090.00916.41
7.3.180.0060.00916.49
7.3.170.0150.00316.29
7.3.160.0150.00016.47
7.3.10.0090.00616.41
7.3.00.0070.00316.33
7.2.330.0090.01316.18
7.2.320.0120.00616.36
7.2.310.0130.00316.64
7.2.300.0120.01216.67
7.2.290.0130.00916.42
7.2.130.0100.00716.41
7.2.120.0090.00916.80
7.2.110.0030.01016.50
7.2.100.0030.00616.77
7.2.90.0040.00816.50
7.2.80.0150.00616.67
7.2.70.0070.00716.69
7.2.60.0060.00916.72
7.2.50.0030.00916.57
7.2.40.0110.00716.64
7.2.30.0070.00716.51
7.2.20.0030.00716.72
7.2.10.0100.00316.81
7.2.00.0080.00417.98
7.1.250.0000.00915.36
7.1.200.0040.00715.63
7.1.100.0000.01417.91
7.1.70.0040.01116.92
7.1.60.0130.01019.36
7.1.50.0180.00616.52
7.1.00.0030.07722.24
7.0.200.0030.00516.89
7.0.60.0070.04019.93
7.0.50.0070.08017.89
7.0.40.0100.03719.96
7.0.30.0400.07320.03
7.0.20.0400.06320.24
7.0.10.0170.07720.18
7.0.00.0100.08020.22
5.6.280.0000.03321.13
5.6.210.0100.07020.72
5.6.200.0070.04018.22
5.6.190.0000.04720.65
5.6.180.0430.04320.50
5.6.170.0200.03720.50
5.6.160.0100.04020.46
5.6.150.0030.05718.27
5.6.140.0100.07018.18
5.6.130.0100.07718.19
5.6.120.0070.07721.12
5.6.110.0130.08321.00
5.6.100.0070.05320.99
5.6.90.0100.05020.97
5.6.80.0070.05320.42
5.5.350.4230.04320.31
5.5.340.0070.06717.97
5.5.330.0070.07020.19
5.5.320.0030.07320.34
5.5.310.0300.07720.36
5.5.300.0130.05717.98
5.5.290.0070.08318.08
5.5.280.0070.05720.91
5.5.270.0130.08020.88
5.5.260.0030.07720.75
5.5.250.0070.05320.47
5.5.240.0230.08020.25

preferences:
48.88 ms | 401 KiB | 5 Q