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.0150.00618.30
8.3.50.0110.01122.05
8.3.40.0120.00618.87
8.3.30.0110.00418.84
8.3.20.0080.00018.90
8.3.10.0060.00321.01
8.3.00.0070.00023.65
8.2.180.0090.00916.75
8.2.170.0070.00722.96
8.2.160.0070.01020.35
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0080.00019.77
8.2.110.0000.00920.57
8.2.100.0040.00817.72
8.2.90.0040.00419.21
8.2.80.0000.00818.05
8.2.70.0000.00817.49
8.2.60.0000.00818.03
8.2.50.0000.00818.07
8.2.40.0000.00818.15
8.2.30.0000.00719.32
8.2.20.0040.00417.77
8.2.10.0000.00817.88
8.2.00.0000.00917.69
8.1.280.0110.01125.92
8.1.270.0000.00723.99
8.1.260.0040.00426.35
8.1.250.0000.00928.09
8.1.240.0000.00922.46
8.1.230.0030.00921.03
8.1.220.0050.00318.77
8.1.210.0000.00818.97
8.1.200.0030.00617.35
8.1.190.0050.00217.54
8.1.180.0030.00718.10
8.1.170.0080.00018.57
8.1.160.0040.00418.94
8.1.150.0040.00418.56
8.1.140.0070.00017.37
8.1.130.0000.00717.89
8.1.120.0000.00817.50
8.1.110.0000.01117.52
8.1.100.0000.00717.35
8.1.90.0030.00517.46
8.1.80.0060.00317.36
8.1.70.0000.00717.41
8.1.60.0030.00617.63
8.1.50.0000.00817.39
8.1.40.0090.00017.50
8.1.30.0030.00617.58
8.1.20.0030.00617.63
8.1.10.0080.00017.54
8.1.00.0090.00017.55
8.0.300.0080.00020.03
8.0.290.0040.00417.16
8.0.280.0030.00318.44
8.0.270.0040.00417.30
8.0.260.0000.00616.80
8.0.250.0030.00517.05
8.0.240.0040.00417.05
8.0.230.0000.00616.91
8.0.220.0030.00716.97
8.0.210.0040.00416.84
8.0.200.0000.01017.03
8.0.190.0050.00217.04
8.0.180.0000.00717.00
8.0.170.0000.00716.98
8.0.160.0030.00316.94
8.0.150.0040.00416.98
8.0.140.0000.00716.93
8.0.130.0030.00313.32
8.0.120.0040.00416.96
8.0.110.0040.00416.84
8.0.100.0040.00416.90
8.0.90.0000.00716.87
8.0.80.0040.01116.95
8.0.70.0100.00017.07
8.0.60.0000.00717.03
8.0.50.0070.00016.85
8.0.30.0150.00417.18
8.0.20.0130.00817.40
8.0.10.0040.00417.08
8.0.00.0090.01116.66
7.4.330.0050.00014.83
7.4.320.0040.00416.29
7.4.300.0030.00316.53
7.4.290.0000.00816.55
7.4.280.0040.00416.45
7.4.270.0030.00316.45
7.4.260.0030.00313.27
7.4.250.0070.00016.37
7.4.240.0000.00716.40
7.4.230.0000.00716.49
7.4.220.0060.01516.53
7.4.210.0070.00916.42
7.4.200.0000.00716.29
7.4.190.0030.00316.57
7.4.160.0110.01116.46
7.4.150.0380.01117.40
7.4.140.0350.02017.86
7.4.130.0310.01216.63
7.4.120.0230.00616.50
7.4.110.0390.00916.49
7.4.100.0620.02916.51
7.4.90.0710.01916.49
7.4.80.0100.01319.37
7.4.70.0130.01016.58
7.4.60.0850.02816.48
7.4.50.0000.00916.20
7.4.40.0070.01122.52
7.4.30.0230.01516.52
7.4.00.0100.00714.98
7.3.330.0070.00013.30
7.3.320.0030.00313.30
7.3.310.0000.00816.27
7.3.300.0000.00716.12
7.3.290.0060.00916.27
7.3.280.0090.01216.30
7.3.270.0060.01617.40
7.3.260.0270.00718.24
7.3.250.0300.00816.21
7.3.240.0030.01516.50
7.3.230.0150.00416.55
7.3.210.0150.01216.49
7.3.200.0970.02419.39
7.3.190.1000.01816.50
7.3.180.0170.00016.47
7.3.170.0070.01316.37
7.3.160.0550.00816.45
7.3.120.0150.00414.83
7.2.330.0120.01516.61
7.2.320.0160.02416.41
7.2.310.0260.01016.40
7.2.300.0810.03616.44
7.2.290.0820.02416.57
7.2.80.0040.00816.75
7.2.60.0040.01216.73
7.2.00.0100.00619.23
7.1.200.0090.00615.72
7.1.100.0070.00418.24
7.1.70.0040.00417.14
7.1.60.0140.01019.40
7.1.50.0100.01617.29
7.0.200.0040.00416.86

preferences:
46.78 ms | 401 KiB | 5 Q