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); $test = json_decode($data); echo $test;

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.0110.00416.75
8.3.50.0040.01418.31
8.3.40.0110.00418.84
8.3.30.0120.00318.81
8.3.20.0040.00420.21
8.3.10.0040.00423.56
8.3.00.0080.00023.61
8.2.180.0090.00616.50
8.2.170.0110.00322.96
8.2.160.0130.00320.10
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0040.00419.76
8.2.120.0040.00426.35
8.2.110.0100.00022.05
8.2.100.0080.00418.16
8.2.90.0040.00419.24
8.2.80.0040.00418.05
8.2.70.0060.00317.63
8.2.60.0050.00318.04
8.2.50.0000.00818.07
8.2.40.0040.00422.28
8.2.30.0070.00020.73
8.2.20.0030.00517.73
8.2.10.0070.00018.12
8.2.00.0000.00818.11
8.1.270.0110.00323.97
8.1.260.0090.00028.09
8.1.250.0040.00428.09
8.1.240.0070.00420.61
8.1.230.0080.00319.00
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0000.00917.35
8.1.190.0040.00417.13
8.1.180.0060.00318.10
8.1.170.0050.00318.59
8.1.160.0040.00420.74
8.1.150.0040.00418.92
8.1.140.0050.00319.47
8.1.130.0070.00017.55
8.1.120.0050.00317.41
8.1.110.0000.00717.29
8.1.100.0040.00417.29
8.1.90.0000.00817.46
8.1.80.0000.00717.44
8.1.70.0000.00817.43
8.1.60.0040.00417.52
8.1.50.0040.00417.39
8.1.40.0040.00417.47
8.1.30.0030.00517.63
8.1.20.0040.00417.52
8.1.10.0000.00817.58
8.1.00.0060.00317.41
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0000.00718.45
8.0.270.0050.00217.21
8.0.260.0000.00717.26
8.0.250.0000.00716.93
8.0.240.0000.00616.93
8.0.230.0000.00716.95
8.0.220.0030.00316.90
8.0.210.0000.00716.89
8.0.200.0000.00616.87
8.0.190.0040.00417.01
8.0.180.0080.00016.94
8.0.170.0050.00316.92
8.0.160.0070.00016.92
8.0.150.0000.00716.84
8.0.140.0000.00716.86
8.0.130.0030.00313.38
8.0.120.0060.00316.91
8.0.110.0070.00016.77
8.0.100.0030.00716.93
8.0.90.0050.00216.93
8.0.80.0060.00916.95
8.0.70.0050.00216.80
8.0.60.0040.00416.94
8.0.50.0000.00816.71
8.0.30.0080.01117.16
8.0.20.0120.00717.40
8.0.10.0070.00016.96
8.0.00.0060.01116.61
7.4.330.0050.00016.85
7.4.320.0030.00316.56
7.4.300.0000.00716.52
7.4.290.0000.00716.55
7.4.280.0060.00316.59
7.4.270.0000.00616.52
7.4.260.0030.00616.46
7.4.250.0030.00516.46
7.4.240.0000.00716.48
7.4.230.0050.00216.32
7.4.220.0130.00716.46
7.4.210.0100.01016.67
7.4.200.0030.00516.44
7.4.160.0030.01316.52
7.4.150.0070.01017.40
7.4.140.0110.01217.86
7.4.130.0090.00916.40
7.4.120.0130.00616.44
7.4.110.0080.01616.50
7.4.100.0060.01616.48
7.4.90.0170.00616.48
7.4.80.0090.00919.39
7.4.70.0130.00316.32
7.4.60.0090.00616.49
7.4.50.0100.00616.66
7.4.40.0110.01116.57
7.4.30.0110.00616.49
7.4.00.0080.01014.90
7.3.330.0020.00213.30
7.3.320.0030.00313.17
7.3.310.0000.00716.38
7.3.300.0000.00716.34
7.3.290.0090.00916.36
7.3.280.0060.01116.39
7.3.270.0110.00617.40
7.3.260.0080.00816.66
7.3.240.0150.00316.44
7.3.230.0090.00916.42
7.3.210.0100.00716.34
7.3.200.0110.00619.39
7.3.190.0130.00616.35
7.3.180.0040.01216.32
7.3.170.0060.01616.39
7.3.160.0070.01016.50
7.3.120.0110.00714.77
7.3.110.0040.01514.57
7.3.100.0070.00715.05
7.3.90.0030.01314.61
7.3.80.0070.00714.60
7.3.70.0070.01014.86
7.3.60.0070.00714.95
7.3.50.0060.01014.76
7.3.40.0140.00314.75
7.3.30.0070.00714.47
7.3.20.0000.01616.71
7.3.10.0030.01416.87
7.3.00.0060.00916.41
7.2.330.0100.00716.46
7.2.320.0060.01016.29
7.2.310.0130.00316.74
7.2.300.0000.01616.80
7.2.290.0090.00616.76
7.2.250.0170.00315.27
7.2.240.0000.02015.27
7.2.230.0040.01114.79
7.2.220.0000.01615.32
7.2.210.0000.01515.17
7.2.200.0100.00614.77
7.2.190.0060.00915.05
7.2.180.0060.00915.22
7.2.170.0030.01015.06
7.2.60.0070.00716.86
7.2.00.0060.00919.36
7.1.330.0090.00915.83
7.1.320.0040.01115.85
7.1.310.0030.01415.91
7.1.300.0070.00715.76
7.1.290.0000.01315.73
7.1.280.0060.00315.59
7.1.270.0080.00615.74
7.1.260.0060.00915.46
7.1.200.0080.00315.92
7.1.100.0030.01017.98
7.1.70.0000.00816.68
7.1.60.0060.01919.27
7.1.50.0100.01016.90
7.1.00.0030.07722.31
7.0.200.0040.00416.81
7.0.90.0670.07719.97
7.0.80.0570.06719.86
7.0.70.0570.06719.96
7.0.60.0700.07319.95
7.0.50.0530.06020.25
7.0.40.0070.08320.17
7.0.30.0070.07019.96
7.0.20.0030.07720.09
7.0.10.0070.08320.01
7.0.00.0070.08019.99
5.6.280.0000.03321.07
5.6.240.0100.08320.69
5.6.230.0100.06720.59
5.6.220.0070.07720.48
5.6.210.0000.05320.59
5.6.200.0100.08320.96
5.6.190.0030.04721.00
5.6.180.0030.04320.95
5.6.170.0130.07721.07
5.6.160.0100.08321.05
5.6.150.0100.07321.05
5.6.140.0000.08321.01
5.6.130.0030.05320.89
5.6.120.0100.07321.09
5.6.110.0030.08721.03
5.6.100.0000.08721.06
5.6.90.0070.06721.08
5.6.80.0000.08020.43
5.6.70.0030.05320.42
5.6.60.0030.08720.38
5.6.50.0070.06720.37
5.6.40.0000.06320.38
5.6.30.0030.04720.39
5.6.20.0200.06720.39
5.6.10.0070.08720.36
5.6.00.0070.08020.43
5.5.380.0100.04020.55
5.5.370.0070.07320.34
5.5.360.0100.04020.33
5.5.350.0130.04320.32
5.5.340.0300.05020.91
5.5.330.0030.07720.92
5.5.320.0000.05020.83
5.5.310.0070.08020.82
5.5.300.0070.04720.81
5.5.290.0100.05720.88
5.5.280.0030.08720.72
5.5.270.0130.07020.71
5.5.260.0070.05720.81
5.5.250.0030.08320.73
5.5.240.0030.08320.21
5.5.230.0170.07720.24
5.5.220.0070.08320.24
5.5.210.0100.07320.20
5.5.200.0070.08020.11
5.5.190.0070.08020.23
5.5.180.0000.08720.24
5.5.160.0130.07020.19
5.5.150.0130.07320.14
5.5.140.0070.04020.24
5.5.130.0070.08020.22
5.5.120.0030.04320.23
5.5.110.0130.07320.22
5.5.100.0130.06319.94
5.5.90.0000.06720.15
5.5.80.0070.06720.05
5.5.70.0030.06720.00
5.5.60.0100.05320.09
5.5.50.0070.07020.08
5.5.40.0070.06720.04
5.5.30.0100.07319.91
5.5.20.0070.08019.92
5.5.10.0100.06019.98
5.5.00.0200.05720.03

preferences:
40.72 ms | 400 KiB | 5 Q