3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ar['key'] = "name"; $array[] = json_encode($ar); $json = json_encode($array); echo $json;

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.0100.00718.31
8.3.40.0060.00918.75
8.3.30.0110.00418.59
8.3.20.0040.00419.29
8.3.10.0000.00823.66
8.3.00.0090.00020.87
8.2.180.0110.00416.38
8.2.170.0030.01422.96
8.2.160.0100.00519.33
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0080.00020.32
8.2.120.0060.00326.35
8.2.110.0030.00721.13
8.2.100.0050.00518.02
8.2.90.0040.00419.07
8.2.80.0040.00417.97
8.2.70.0100.00017.63
8.2.60.0000.00718.16
8.2.50.0040.00418.10
8.2.40.0030.00620.46
8.2.30.0090.00319.35
8.2.20.0000.00717.61
8.2.10.0000.00718.11
8.2.00.0000.00718.16
8.1.280.0110.00425.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00422.02
8.1.230.0110.00417.70
8.1.220.0000.00817.77
8.1.210.0030.00518.77
8.1.200.0080.00017.22
8.1.190.0030.00917.22
8.1.180.0040.00418.10
8.1.170.0050.00318.53
8.1.160.0040.00419.04
8.1.150.0030.00518.86
8.1.140.0080.00019.43
8.1.130.0000.00717.58
8.1.120.0000.00717.26
8.1.110.0000.00917.43
8.1.100.0000.00717.40
8.1.90.0050.00317.23
8.1.80.0000.00817.39
8.1.70.0030.00317.27
8.1.60.0000.01117.47
8.1.50.0060.00317.41
8.1.40.0000.00817.43
8.1.30.0040.00417.48
8.1.20.0020.00517.49
8.1.10.0040.00417.58
8.1.00.0030.00617.48
8.0.300.0000.00819.84
8.0.290.0000.00716.63
8.0.280.0040.00418.35
8.0.270.0040.00417.24
8.0.260.0030.00317.18
8.0.250.0000.00716.97
8.0.240.0040.00416.90
8.0.230.0050.00316.86
8.0.220.0000.00716.77
8.0.210.0030.00316.79
8.0.200.0030.00316.93
8.0.190.0000.00716.77
8.0.180.0070.00016.85
8.0.170.0040.00416.86
8.0.160.0070.00016.86
8.0.150.0070.00016.72
8.0.140.0050.00516.80
8.0.130.0030.00513.29
8.0.120.0020.00516.70
8.0.110.0040.00416.85
8.0.100.0000.00916.69
8.0.90.0040.00416.80
8.0.80.0130.00316.82
8.0.70.0040.00416.79
8.0.60.0030.00316.86
8.0.50.0040.00416.81
8.0.30.0050.01317.04
8.0.20.0120.00717.40
8.0.10.0000.00716.81
8.0.00.0060.01216.86
7.4.330.0000.00616.81
7.4.320.0030.00316.52
7.4.300.0030.00316.39
7.4.290.0000.00716.53
7.4.280.0040.00416.34
7.4.270.0060.00016.42
7.4.260.0070.00016.52
7.4.250.0030.00316.50
7.4.240.0000.00716.55
7.4.230.0000.00716.43
7.4.220.0150.00616.45
7.4.210.0070.00716.55
7.4.200.0080.00016.60
7.4.160.0060.00916.59
7.4.150.0090.00917.40
7.4.140.0110.00717.86
7.4.130.0120.00516.52
7.4.120.0070.01116.61
7.4.110.0030.01416.28
7.4.100.0130.00316.39
7.4.90.0310.01216.48
7.4.80.0100.00719.39
7.4.70.0070.01416.50
7.4.60.0030.01316.34
7.4.50.0040.00816.36
7.4.40.0160.00016.61
7.4.30.0060.00916.53
7.4.00.0120.00315.09
7.3.330.0000.00513.19
7.3.320.0000.00613.15
7.3.310.0000.00716.21
7.3.300.0060.00016.22
7.3.290.0060.00916.32
7.3.280.0050.01016.29
7.3.270.0060.01217.40
7.3.260.0100.00716.22
7.3.250.0110.00916.40
7.3.240.0050.01116.46
7.3.230.0100.00716.39
7.3.210.0100.00716.20
7.3.200.0150.00316.22
7.3.190.0160.00716.44
7.3.180.0140.00416.45
7.3.170.0130.01016.36
7.3.160.0090.00716.19
7.2.330.0140.00316.48
7.2.320.0170.01016.73
7.2.310.0160.00316.35
7.2.300.0110.00716.38
7.2.290.0100.00716.63
7.2.60.0070.00416.95
7.2.00.0030.01319.19
7.1.200.0030.00915.86
7.1.100.0030.00718.12
7.1.70.0000.00717.06
7.1.60.0130.01019.47
7.1.00.0100.07022.34
7.0.200.0040.00416.72
7.0.90.0670.08019.94
7.0.80.0700.07319.88
7.0.70.0630.07719.96
7.0.60.0500.06319.86
7.0.50.0600.07320.39
7.0.40.0100.07720.04
7.0.30.0130.05020.13
7.0.20.0170.07720.09
7.0.10.0100.06720.14
7.0.00.0100.05020.07
5.6.280.0100.06720.86
5.6.240.0130.07320.54
5.6.230.0070.08020.58
5.6.220.0070.08320.52
5.6.210.0030.05020.52
5.6.200.0030.06721.00
5.6.190.0130.08020.95
5.6.180.0130.07721.05
5.6.170.0030.05721.11
5.6.160.0170.07721.03
5.6.150.0030.08021.13
5.6.140.0070.08320.96
5.6.130.0000.06021.13
5.6.120.0130.07721.03
5.6.110.0030.08021.04
5.6.100.0200.07321.06
5.6.90.0070.05020.97
5.6.80.0070.06320.41
5.6.70.0070.08020.32
5.6.60.0070.07320.41
5.6.50.0200.06320.54
5.6.40.0030.04020.33
5.6.30.0100.03320.46
5.6.20.0130.04720.39
5.6.10.0030.04320.43
5.6.00.0000.04320.39
5.5.380.0100.07320.36
5.5.370.0030.05020.36
5.5.360.0030.05320.39
5.5.350.0130.06720.45
5.5.340.0100.07720.88
5.5.330.0030.08320.75
5.5.320.0030.08320.64
5.5.310.0070.07720.90
5.5.300.0170.06020.91
5.5.290.0030.05720.92
5.5.280.0070.08020.79
5.5.270.0100.07320.82
5.5.260.0070.07720.78
5.5.250.0200.07020.68
5.5.240.0070.07720.27
5.5.230.0130.07320.27
5.5.220.0130.06720.11
5.5.210.0030.07720.16
5.5.200.0100.04719.99
5.5.190.0030.04020.17
5.5.180.0070.04020.14
5.5.160.0070.04020.18
5.5.150.0070.04720.05
5.5.140.0070.04020.16
5.5.130.0000.04320.17
5.5.120.0070.03720.21
5.5.110.0000.04320.22
5.5.100.0030.04720.07
5.5.90.0000.04020.16
5.5.80.0000.04019.94
5.5.70.0030.03720.03
5.5.60.0030.04020.09
5.5.50.0000.04020.07
5.5.40.0000.04020.07
5.5.30.0100.03720.09
5.5.20.0070.06019.95
5.5.10.0030.03320.09
5.5.00.0030.04020.09

preferences:
70.4 ms | 401 KiB | 5 Q