3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = array(); $test["abc"] = true; $test["abc"] = $test["abc"] ? $test["abc"] : false; $data = json_encode($test); $test1 = json_decode($data); $val = $test["abc"]; echo "testabc ".$test['abc']." test1abc".$test1["abc"];

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.0040.01116.75
8.3.50.0040.01516.50
8.3.40.0170.00019.06
8.3.30.0160.00318.71
8.3.20.0070.00020.05
8.3.10.0080.00023.66
8.3.00.0050.00323.57
8.2.180.0150.00716.63
8.2.170.0060.00922.96
8.2.160.0030.01020.57
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0000.00819.89
8.2.120.0040.00426.35
8.2.110.0090.00322.21
8.2.100.0000.01117.93
8.2.90.0030.00619.41
8.2.80.0030.00517.97
8.2.70.0060.00617.75
8.2.60.0040.00418.16
8.2.50.0000.00818.07
8.2.40.0060.00322.32
8.2.30.0000.00720.60
8.2.20.0050.00717.70
8.2.10.0040.00418.17
8.2.00.0040.00418.07
8.1.270.0060.00923.83
8.1.260.0050.00528.09
8.1.250.0000.00828.09
8.1.240.0080.00420.81
8.1.230.0040.00719.14
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0040.00417.22
8.1.180.0030.00618.10
8.1.170.0060.00318.41
8.1.160.0050.00220.74
8.1.150.0030.00518.89
8.1.140.0000.00819.62
8.1.130.0070.00017.62
8.1.120.0050.00317.44
8.1.110.0030.00517.45
8.1.100.0020.00517.42
8.1.90.0000.00817.45
8.1.80.0080.00017.45
8.1.70.0040.00417.53
8.1.60.0030.00517.63
8.1.50.0000.00817.46
8.1.40.0000.00717.49
8.1.30.0090.00017.48
8.1.20.0000.00817.54
8.1.10.0000.00817.56
8.1.00.0070.00017.53
8.0.300.0070.00018.77
8.0.290.0050.00316.75
8.0.280.0030.00318.45
8.0.270.0000.00717.24
8.0.260.0000.00717.23
8.0.250.0030.00516.91
8.0.240.0030.00317.00
8.0.230.0030.00416.90
8.0.220.0030.00316.84
8.0.210.0030.00616.85
8.0.200.0000.00617.07
8.0.190.0030.00516.88
8.0.180.0030.00517.05
8.0.170.0030.00516.95
8.0.160.0070.00016.95
8.0.150.0040.00416.82
8.0.140.0000.00816.87
8.0.130.0060.00013.36
8.0.120.0040.00416.94
8.0.110.0000.00716.88
8.0.100.0000.00816.83
8.0.90.0040.00416.88
8.0.80.0070.01416.85
8.0.70.0060.00316.98
8.0.60.0040.00416.74
8.0.50.0020.00516.87
8.0.30.0130.00517.02
8.0.20.0090.00917.40
8.0.10.0080.00016.80
8.0.00.0090.00916.65
7.4.330.0050.00016.77
7.4.320.0030.00316.48
7.4.300.0040.00416.63
7.4.290.0000.00716.58
7.4.280.0000.01016.56
7.4.270.0000.00716.48
7.4.260.0030.00316.58
7.4.250.0040.00416.41
7.4.240.0020.00516.52
7.4.230.0040.00416.40
7.4.220.0070.01616.60
7.4.210.0100.01016.45
7.4.200.0040.00416.55
7.4.160.0100.00716.40
7.4.150.0110.00517.40
7.4.140.0130.01317.86
7.4.130.0060.01316.73
7.4.120.0130.00516.65
7.4.110.0100.01316.68
7.4.100.0060.01216.56
7.4.90.0170.00716.29
7.4.80.0070.01419.39
7.4.70.0130.00316.60
7.4.60.0140.00316.56
7.4.50.0070.01016.45
7.4.40.0060.01316.57
7.4.30.0110.00616.73
7.4.00.0090.00914.94
7.3.330.0000.00513.22
7.3.320.0000.00613.17
7.3.310.0070.00016.16
7.3.300.0000.00616.23
7.3.290.0090.00716.25
7.3.280.0100.00616.37
7.3.270.0130.00317.40
7.3.260.0110.00716.24
7.3.240.0070.00916.36
7.3.230.0030.01516.39
7.3.210.0110.00716.43
7.3.200.0140.00719.39
7.3.190.0050.01316.65
7.3.180.0040.01216.48
7.3.170.0070.01516.35
7.3.160.0060.00916.31
7.2.330.0140.00316.68
7.2.320.0060.01016.77
7.2.310.0030.01416.58
7.2.300.0060.01216.21
7.2.290.0090.00916.73
7.2.60.0100.00316.92
7.2.00.0100.01019.41
7.1.200.0030.01015.98
7.1.100.0000.00918.18
7.1.70.0030.00616.79
7.1.60.0130.01019.27
7.1.50.0110.01116.99
7.1.00.0030.07722.40
7.0.200.0070.00316.80
7.0.90.0270.04019.98
7.0.80.0130.04320.00
7.0.70.0230.03319.93
7.0.60.0200.06719.96
7.0.50.0100.04720.29
7.0.40.0000.04720.15
7.0.30.0070.04020.10
7.0.20.0130.07020.05
7.0.10.0030.04020.07
7.0.00.0100.03720.09
5.6.280.0030.03321.03
5.6.240.0030.04020.50
5.6.230.0100.03720.56
5.6.220.0030.03720.67
5.6.210.0070.05720.65
5.6.200.0200.03321.02
5.6.190.0030.04320.98
5.6.180.0070.04021.05
5.6.170.0100.03720.93
5.6.160.0100.07021.18
5.6.150.0030.03721.04
5.6.140.0070.04320.95
5.6.130.0070.04021.05
5.6.120.0030.04321.01
5.6.110.0030.05320.94
5.6.100.0070.05020.96
5.6.90.0030.04320.91
5.6.80.0000.04320.39
5.6.70.0130.06720.46
5.6.60.0100.07720.45
5.6.50.0100.04720.43
5.6.40.0030.09020.35
5.6.30.0100.04720.45
5.6.20.0100.04020.44
5.6.10.0070.08020.30
5.6.00.0000.05020.50
5.5.380.0070.03720.45
5.5.370.0100.03720.36
5.5.360.0030.05320.33
5.5.350.0070.03320.36
5.5.340.0070.03720.86
5.5.330.0000.04320.92
5.5.320.0070.03720.87
5.5.310.0000.04720.72
5.5.300.0070.04720.91
5.5.290.0030.04320.92
5.5.280.0100.04320.91
5.5.270.0030.04320.62
5.5.260.0070.04020.89
5.5.250.0070.03320.63
5.5.240.0070.04320.17
5.5.230.0100.08020.13
5.5.220.0000.08720.22
5.5.210.0100.05020.20
5.5.200.0030.08020.25
5.5.190.0100.07720.13
5.5.180.0030.09020.10
5.5.160.0100.07320.21
5.5.150.0070.05020.22
5.5.140.0130.07020.16
5.5.130.0030.05720.13
5.5.120.0030.04720.20
5.5.110.0030.07719.98
5.5.100.0030.07320.16
5.5.90.0100.05719.93
5.5.80.0100.08320.00
5.5.70.0070.08320.14
5.5.60.0130.06720.14
5.5.50.0130.07020.11
5.5.40.0100.06319.98
5.5.30.0070.04320.04
5.5.20.0100.05019.99
5.5.10.0030.08320.08
5.5.00.0100.08019.97

preferences:
43.96 ms | 400 KiB | 5 Q