3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '[ "example2" => "index.php", "submenu" => ["name" => "sub menu","hi" => "index.php","hello" => "index.php"], "example3" => "index.php" ]'; $arr = eval("return $string;"); if(is_array($arr)) { echo "true";} else echo "false"; for ($i = 0 ; i < count($arr) ; $i++ ) { echo $arr[$i]; } /*foreach($arr as $key=>$value){ print_r( $key . " => ". $value); }*/

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.0120.00318.43
8.3.50.0140.00321.99
8.3.40.0070.00718.79
8.3.30.0070.01118.86
8.3.20.0080.00018.73
8.3.10.0090.00018.98
8.3.00.0070.00021.77
8.2.180.0120.00917.00
8.2.170.0070.00722.96
8.2.160.0100.00320.38
8.2.150.0080.00024.18
8.2.140.0030.00624.66
8.2.130.0050.00326.16
8.2.120.0040.00421.06
8.2.110.0060.00320.52
8.2.100.0090.00317.91
8.2.90.0060.00319.21
8.2.80.0000.00917.97
8.2.70.0040.00417.63
8.2.60.0050.00317.93
8.2.50.0090.00018.07
8.2.40.0000.00718.16
8.2.30.0080.00319.45
8.2.20.0000.00717.79
8.2.10.0000.00817.70
8.2.00.0040.00417.69
8.1.280.0070.01025.92
8.1.270.0100.00023.99
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0050.00522.46
8.1.230.0080.00320.85
8.1.220.0040.00418.77
8.1.210.0000.00918.89
8.1.200.0080.00017.35
8.1.190.0000.00817.65
8.1.180.0040.00418.10
8.1.170.0090.00018.71
8.1.160.0060.00318.80
8.1.150.0080.00018.60
8.1.140.0040.00417.45
8.1.130.0030.00317.74
8.1.120.0000.00717.48
8.1.110.0050.00317.36
8.1.100.0050.00317.35
8.1.90.0000.00717.40
8.1.80.0040.00317.46
8.1.70.0000.00717.39
8.1.60.0000.01217.60
8.1.50.0000.00717.46
8.1.40.0030.00517.55
8.1.30.0040.00417.48
8.1.20.0000.00817.63
8.1.10.0000.00717.60
8.1.00.0030.00717.49
8.0.300.0040.00419.85
8.0.290.0070.00017.05
8.0.280.0000.00718.50
8.0.270.0040.00417.29
8.0.260.0000.00716.89
8.0.250.0000.00717.09
8.0.240.0080.00216.93
8.0.230.0040.00416.97
8.0.220.0020.00516.98
8.0.210.0070.00016.85
8.0.200.0000.00616.91
8.0.190.0000.00716.93
8.0.180.0040.00416.89
8.0.170.0050.00316.89
8.0.160.0040.00316.92
8.0.150.0080.00316.82
8.0.140.0040.00416.83
8.0.130.0050.00013.38
8.0.120.0000.00816.91
8.0.110.0020.00516.76
8.0.100.0040.00416.84
8.0.90.0040.00416.82
8.0.80.0070.00816.84
8.0.70.0000.00816.87
8.0.60.0040.00416.78
8.0.50.0040.00416.84
8.0.30.0130.00717.23
8.0.20.0100.00717.40
8.0.10.0000.00716.95
8.0.00.0080.00916.72
7.4.330.0000.00616.67
7.4.320.0000.00716.53
7.4.300.0000.00716.42
7.4.290.0070.00016.46
7.4.280.0000.00916.30
7.4.270.0040.00416.42
7.4.260.0050.00013.30
7.4.250.0070.01316.34
7.4.240.0050.00316.53
7.4.230.0030.00516.48
7.4.220.0100.01016.36
7.4.210.0120.01216.43
7.4.200.0050.00216.55
7.4.190.0000.00716.54
7.4.160.0090.00916.33
7.4.150.0400.00917.40
7.4.140.0100.01417.86
7.4.130.0100.01316.54
7.4.120.0250.01316.47
7.4.110.0320.01516.49
7.4.100.0120.01516.41
7.4.90.0160.01016.65
7.4.80.0860.03119.39
7.4.70.0220.02316.38
7.4.60.0120.00616.56
7.4.50.0060.00316.34
7.4.40.0070.00522.77
7.4.30.0080.00816.34
7.3.330.0000.00713.23
7.3.320.0080.00013.31
7.3.310.0000.00716.23
7.3.300.0080.00016.33
7.3.290.0100.01616.31
7.3.280.0060.01116.34
7.3.270.0430.00417.40
7.3.260.0450.01118.24
7.3.250.0260.01016.31
7.3.240.0060.01516.35
7.3.230.0130.01016.39
7.3.210.0490.02116.41
7.3.200.0090.01319.39
7.3.190.0440.01316.33
7.3.180.0130.00816.17
7.3.170.0150.00916.27
7.3.160.0040.01216.30
7.2.330.0050.02616.75
7.2.320.0110.00716.54
7.2.310.0230.02216.48
7.2.300.0800.01816.68
7.2.290.0050.01416.64
7.2.90.0770.01214.31
7.2.80.0750.00614.91
7.2.70.0780.01014.58
7.2.60.1030.00315.20
7.2.50.0920.01015.10
7.2.40.0800.00615.20
7.2.30.1000.00414.95
7.2.20.0500.01114.73
7.2.10.1020.00715.11
7.2.00.0810.00714.73
7.1.210.1340.01813.58
7.1.200.0850.00913.50
7.1.190.1480.00014.05
7.1.180.0960.01313.76
7.1.170.0830.01314.11
7.1.160.0270.00513.84
7.1.150.1120.00913.83
7.1.140.1080.01014.01
7.1.130.1070.00613.91
7.1.120.0940.01314.11
7.1.110.1040.01214.07
7.1.100.1070.00613.79
7.1.90.0740.00713.99
7.1.80.0640.01514.07
7.0.310.0840.00813.82
7.0.300.0480.00913.34
7.0.290.0850.01013.74
7.0.280.0280.00913.50
7.0.270.1430.00613.45
7.0.260.0950.00613.61
7.0.250.0990.00313.53
7.0.240.0770.00313.65
7.0.230.0940.01213.82
7.0.220.0760.01213.41

preferences:
37.32 ms | 401 KiB | 5 Q