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 = $test1["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.0070.00716.63
8.3.50.0120.00316.10
8.3.40.0150.00018.85
8.3.30.0040.01118.79
8.3.20.0040.00420.16
8.3.10.0070.00023.51
8.3.00.0080.00023.56
8.2.180.0120.00916.50
8.2.170.0150.00022.96
8.2.160.0040.00920.38
8.2.150.0020.00525.66
8.2.140.0050.00324.66
8.2.130.0070.00019.64
8.2.120.0080.00026.35
8.2.110.0060.00322.11
8.2.100.0120.00017.93
8.2.90.0000.00819.22
8.2.80.0040.00417.97
8.2.70.0000.00817.63
8.2.60.0000.00817.80
8.2.50.0090.00018.07
8.2.40.0040.00421.97
8.2.30.0000.00820.57
8.2.20.0000.00917.84
8.2.10.0040.00418.07
8.2.00.0040.00418.04
8.1.280.0110.00425.92
8.1.270.0060.00923.84
8.1.260.0030.00628.09
8.1.250.0040.00428.09
8.1.240.0040.00722.39
8.1.230.0080.00319.15
8.1.220.0040.00417.78
8.1.210.0000.00818.77
8.1.200.0000.00917.22
8.1.190.0030.00617.23
8.1.180.0040.00418.10
8.1.170.0000.00818.51
8.1.160.0070.00020.75
8.1.150.0000.00718.74
8.1.140.0040.00419.38
8.1.130.0050.00317.55
8.1.120.0070.00017.35
8.1.110.0040.00417.41
8.1.100.0000.00717.39
8.1.90.0030.00617.29
8.1.80.0030.00517.39
8.1.70.0030.00317.29
8.1.60.0060.00317.45
8.1.50.0000.00817.43
8.1.40.0080.00017.50
8.1.30.0000.00817.50
8.1.20.0000.00817.66
8.1.10.0060.00317.50
8.1.00.0030.00617.46
8.0.300.0080.00018.77
8.0.290.0000.00716.75
8.0.280.0030.00318.42
8.0.270.0040.00417.14
8.0.260.0070.00017.25
8.0.250.0070.00016.95
8.0.240.0030.00316.98
8.0.230.0040.00416.88
8.0.220.0040.00416.79
8.0.210.0040.00416.92
8.0.200.0030.00316.93
8.0.190.0030.00616.84
8.0.180.0040.00416.82
8.0.170.0000.00816.95
8.0.160.0070.00016.80
8.0.150.0050.00316.68
8.0.140.0050.00316.88
8.0.130.0000.00513.35
8.0.120.0040.00416.71
8.0.110.0040.00416.89
8.0.100.0000.00816.76
8.0.90.0070.00016.82
8.0.80.0100.00716.92
8.0.70.0050.00316.73
8.0.60.0000.00816.93
8.0.50.0050.00316.88
8.0.30.0090.00916.97
8.0.20.0070.01117.40
8.0.10.0000.00716.96
8.0.00.0110.00816.71
7.4.330.0000.00516.88
7.4.320.0040.00416.43
7.4.300.0040.00416.59
7.4.290.0040.00416.58
7.4.280.0030.00616.56
7.4.270.0000.00716.52
7.4.260.0060.00316.50
7.4.250.0000.00816.57
7.4.240.0040.00316.46
7.4.230.0000.00816.57
7.4.220.0090.00916.62
7.4.210.0090.00916.59
7.4.200.0070.00016.57
7.4.160.0070.01016.46
7.4.150.0070.01017.40
7.4.140.0080.01217.86
7.4.130.0120.00916.51
7.4.120.0110.00616.43
7.4.110.0150.01016.53
7.4.100.0120.01216.63
7.4.90.0130.00316.52
7.4.80.0100.00719.39
7.4.70.0100.00716.39
7.4.60.0120.00316.64
7.4.50.0070.00716.18
7.4.40.0100.01316.61
7.4.30.0080.00816.63
7.4.00.0100.00715.06
7.3.330.0000.00513.30
7.3.320.0030.00313.24
7.3.310.0040.00316.15
7.3.300.0040.00416.30
7.3.290.0070.01016.31
7.3.280.0120.00516.31
7.3.270.0100.00717.40
7.3.260.0130.00516.24
7.3.240.0150.00516.51
7.3.230.0070.01116.39
7.3.210.0100.00716.45
7.3.200.0130.01319.39
7.3.190.0040.01916.40
7.3.180.0080.00816.58
7.3.170.0090.01216.40
7.3.160.0080.00816.50
7.3.10.0110.01416.30
7.3.00.0150.00916.00
7.2.330.0130.00316.45
7.2.320.0030.01316.54
7.2.310.0140.00316.54
7.2.300.0050.01116.78
7.2.290.0100.00716.66
7.2.130.0160.01116.63
7.2.120.0120.00916.39
7.2.110.0190.00816.11
7.2.100.0140.01016.29
7.2.90.0110.01116.58
7.2.80.0130.00616.59
7.2.70.0140.00916.38
7.2.60.0090.00616.66
7.2.50.0090.00616.58
7.2.40.0080.01116.53
7.2.30.0180.00416.55
7.2.20.0140.00316.50
7.2.10.0110.00816.66
7.2.00.0140.00918.11
7.1.250.0130.01015.46
7.1.200.0070.00715.64
7.1.100.0000.01017.94
7.1.70.0000.00716.73
7.1.60.0140.01019.27
7.1.50.0070.01317.15
7.1.00.0100.07022.44
7.0.200.0000.01016.52
7.0.90.0130.05019.90
7.0.80.0600.07719.96
7.0.70.0600.08319.93
7.0.60.0530.08719.95
7.0.50.0600.07720.34
7.0.40.0030.05720.05
7.0.30.0100.07720.11
7.0.20.0070.08020.05
7.0.10.0070.08020.04
7.0.00.0000.07720.04
5.6.280.0000.03320.90
5.6.240.0130.07720.68
5.6.230.0230.07320.65
5.6.220.0100.08020.73
5.6.210.0130.07320.48
5.6.200.0100.08021.03
5.6.190.0100.06721.02
5.6.180.0130.07021.03
5.6.170.0130.05720.99
5.6.160.0030.04320.95
5.6.150.0130.03320.90
5.6.140.0070.04321.10
5.6.130.0130.05020.94
5.6.120.0100.08021.01
5.6.110.0070.05321.02
5.6.100.0100.05020.98
5.6.90.0100.07320.99
5.6.80.0200.06720.38
5.6.70.0130.07320.37
5.6.60.0100.07020.30
5.6.50.0130.04320.34
5.6.40.0070.07320.39
5.6.30.0170.07020.37
5.6.20.0100.07020.44
5.6.10.0100.07020.39
5.6.00.0100.07720.28
5.5.380.0030.08720.40
5.5.370.0130.07720.34
5.5.360.0100.08020.34
5.5.350.0130.06020.41
5.5.340.0030.07020.79
5.5.330.0130.07720.80
5.5.320.0030.08720.86
5.5.310.0130.06020.79
5.5.300.0030.05720.91
5.5.290.0070.07320.90
5.5.280.0000.04720.91
5.5.270.0030.08720.86
5.5.260.0070.09020.63
5.5.250.0170.04320.60
5.5.240.0070.07720.26
5.5.230.0130.07320.15
5.5.220.0070.04720.14
5.5.210.0170.07320.23
5.5.200.0100.07320.24
5.5.190.0000.04720.20
5.5.180.0070.08020.20
5.5.160.0000.05320.25
5.5.150.0070.06720.25
5.5.140.0070.05020.21
5.5.130.0100.07720.26
5.5.120.0100.06720.11
5.5.110.0130.03720.06
5.5.100.0070.07719.97
5.5.90.0070.07720.11
5.5.80.0030.08020.05
5.5.70.0170.04720.09
5.5.60.0070.07719.95
5.5.50.0130.07020.08
5.5.40.0030.06720.06
5.5.30.0130.07320.04
5.5.20.0130.07019.95
5.5.10.0100.07020.03
5.5.00.0100.07020.09

preferences:
51.1 ms | 400 KiB | 5 Q