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; $dimensionName = $dimensionName . "_" . $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.40.0070.01318.78
8.3.30.0140.00018.59
8.3.20.0030.00620.30
8.3.10.0040.00423.53
8.3.00.0040.00419.25
8.2.170.0130.00722.96
8.2.160.0070.00719.32
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00417.50
8.2.120.0040.00426.35
8.2.110.0070.00320.52
8.2.100.0040.00817.91
8.2.90.0060.00318.22
8.2.80.0040.00417.97
8.2.70.0000.00917.50
8.2.60.0000.00817.93
8.2.50.0000.00818.07
8.2.40.0070.00019.52
8.2.30.0070.00020.73
8.2.20.0080.00017.61
8.2.10.0030.00518.07
8.2.00.0040.00418.00
8.1.270.0100.00322.24
8.1.260.0070.00028.09
8.1.250.0070.00028.09
8.1.240.0100.00722.18
8.1.230.0070.00420.92
8.1.220.0080.00017.74
8.1.210.0000.00918.77
8.1.200.0030.00617.25
8.1.190.0030.00817.00
8.1.180.0040.00418.10
8.1.170.0070.00018.77
8.1.160.0070.00021.87
8.1.150.0050.00318.83
8.1.140.0040.00419.51
8.1.130.0070.00017.57
8.1.120.0030.00317.34
8.1.110.0080.00017.37
8.1.100.0000.00717.35
8.1.90.0040.00417.28
8.1.80.0040.00417.41
8.1.70.0040.00417.26
8.1.60.0000.00917.57
8.1.50.0040.00417.42
8.1.40.0000.00817.57
8.1.30.0060.00317.65
8.1.20.0000.00817.56
8.1.10.0090.00017.40
8.1.00.0040.00417.39
8.0.300.0000.00720.09
8.0.290.0040.00416.75
8.0.280.0030.00318.39
8.0.270.0000.00717.09
8.0.260.0040.00417.25
8.0.250.0030.00316.95
8.0.240.0050.00316.82
8.0.230.0040.00416.88
8.0.220.0000.00816.86
8.0.210.0030.00416.95
8.0.200.0000.00616.85
8.0.190.0000.01016.99
8.0.180.0000.00716.94
8.0.170.0040.00416.77
8.0.160.0040.00416.95
8.0.150.0030.00316.82
8.0.140.0040.00416.71
8.0.130.0000.00713.35
8.0.120.0030.00516.86
8.0.110.0040.00416.88
8.0.100.0040.00416.84
8.0.90.0070.00016.87
8.0.80.0100.00716.85
8.0.70.0050.00316.76
8.0.60.0000.00716.74
8.0.50.0040.00416.89
8.0.30.0070.01017.01
8.0.20.0140.00917.40
8.0.10.0080.00017.06
8.0.00.0070.01016.80
7.4.330.0020.00216.82
7.4.320.0040.00416.45
7.4.300.0060.00016.62
7.4.290.0000.00716.51
7.4.280.0030.00616.55
7.4.270.0030.00316.59
7.4.260.0040.00416.57
7.4.250.0050.00216.56
7.4.240.0020.00516.50
7.4.230.0000.00716.52
7.4.220.0070.01116.69
7.4.210.0080.01116.56
7.4.200.0000.00716.61
7.4.160.0120.00316.43
7.4.150.0070.01817.40
7.4.140.0050.01417.86
7.4.130.0130.00616.48
7.4.120.0090.01116.41
7.4.110.0070.01016.68
7.4.100.0090.00916.52
7.4.90.0110.01116.61
7.4.80.0150.00619.39
7.4.70.0170.00316.61
7.4.60.0100.00716.34
7.4.50.0130.00316.66
7.4.40.0060.00916.62
7.4.30.0120.00916.46
7.4.00.0100.00715.09
7.3.330.0000.00513.27
7.3.320.0060.00013.29
7.3.310.0030.00316.30
7.3.300.0070.00016.12
7.3.290.0060.00016.28
7.3.280.0090.00816.26
7.3.270.0050.01117.40
7.3.260.0090.00916.36
7.3.250.0110.00616.48
7.3.240.0050.01416.38
7.3.230.0020.01516.39
7.3.210.0100.00716.19
7.3.200.0060.00916.26
7.3.190.0030.01316.45
7.3.180.0070.01016.63
7.3.170.0100.00616.57
7.3.160.0090.00716.32
7.3.10.0070.00516.48
7.3.00.0030.01016.61
7.2.330.0080.00816.52
7.2.320.0070.01016.68
7.2.310.0120.00916.30
7.2.300.0090.01116.46
7.2.290.0070.01316.68
7.2.130.0050.00816.70
7.2.120.0080.00516.52
7.2.110.0060.00416.80
7.2.100.0080.00516.86
7.2.90.0090.00716.57
7.2.80.0060.00616.80
7.2.70.0050.00716.71
7.2.60.0080.00716.75
7.2.50.0020.00916.72
7.2.40.0020.00816.67
7.2.30.0050.00916.55
7.2.20.0070.00316.82
7.2.10.0080.00516.80
7.2.00.0060.00617.48
7.1.250.0030.00715.77
7.1.200.0100.00315.62
7.1.100.0060.00617.72
7.1.70.0110.01117.05
7.1.60.0080.01519.36
7.1.50.0070.01416.90
7.1.00.0030.08022.37
7.0.200.0040.00416.61
7.0.60.0170.07019.93
7.0.50.0030.04317.96
7.0.40.0070.05320.08
7.0.30.0470.06020.24
7.0.20.0200.04320.16
7.0.10.0030.04320.07
7.0.00.0100.06020.22
5.6.280.0030.05720.89
5.6.210.0100.06720.46
5.6.200.0100.08318.17
5.6.190.0130.08320.45
5.6.180.0530.07320.46
5.6.170.0200.08020.57
5.6.160.0070.07720.45
5.6.150.0100.06718.29
5.6.140.0100.08018.15
5.6.130.0070.08318.27
5.6.120.0000.09320.99
5.6.110.0130.04721.05
5.6.100.0030.04021.13
5.6.90.0130.06320.96
5.6.80.0130.07020.39
5.5.350.2630.04020.50
5.5.340.0000.04017.95
5.5.330.0070.07720.38
5.5.320.0000.04320.27
5.5.310.0330.07320.34
5.5.300.0100.05018.07
5.5.290.0070.03717.98
5.5.280.0030.04020.76
5.5.270.0070.05320.87
5.5.260.0130.08720.83
5.5.250.0030.05320.71
5.5.240.0300.03720.37

preferences:
82.71 ms | 400 KiB | 5 Q