3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "one, two, tre"; $b = json_encode($a); var_dump($b);

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.40.0040.01518.45
8.3.30.0070.01118.58
8.3.20.0060.00318.55
8.3.10.0040.00419.65
8.3.00.0080.00020.89
8.2.170.0130.00318.66
8.2.160.0030.01022.96
8.2.150.0070.00025.66
8.2.140.0050.00224.66
8.2.130.0050.00321.05
8.2.120.0040.00426.35
8.2.110.0060.00320.37
8.2.100.0000.01117.78
8.2.90.0060.00319.05
8.2.80.0030.00617.97
8.2.70.0030.00717.38
8.2.60.0050.00317.80
8.2.50.0000.01018.10
8.2.40.0050.00322.32
8.2.30.0050.00320.56
8.2.20.0030.00517.61
8.2.10.0000.00818.12
8.2.00.0040.00417.91
8.1.270.0040.00424.66
8.1.260.0080.00028.09
8.1.250.0000.00728.09
8.1.240.0060.00323.73
8.1.230.0040.00823.80
8.1.220.0040.00417.77
8.1.210.0000.00918.77
8.1.200.0060.00317.00
8.1.190.0080.00017.22
8.1.180.0000.00718.10
8.1.170.0050.00318.53
8.1.160.0020.00518.97
8.1.150.0000.00818.82
8.1.140.0000.00719.50
8.1.130.0080.00017.60
8.1.120.0070.00017.32
8.1.110.0080.00017.39
8.1.100.0040.00417.29
8.1.90.0000.00817.39
8.1.80.0040.00417.34
8.1.70.0000.00717.34
8.1.60.0040.00417.52
8.1.50.0060.00317.41
8.1.40.0000.00817.37
8.1.30.0080.00017.63
8.1.20.0000.00717.47
8.1.10.0040.00417.34
8.1.00.0040.00417.27
8.0.300.0040.00418.77
8.0.290.0020.00516.75
8.0.280.0030.00518.40
8.0.270.0070.00417.23
8.0.260.0030.00317.22
8.0.250.0040.00416.86
8.0.240.0030.00316.89
8.0.230.0040.00416.89
8.0.220.0040.00416.82
8.0.210.0000.00716.70
8.0.200.0030.00316.90
8.0.190.0110.00016.87
8.0.180.0050.00316.88
8.0.170.0040.00416.83
8.0.160.0080.00016.74
8.0.150.0040.00416.82
8.0.140.0000.00716.82
8.0.130.0050.00013.29
8.0.120.0000.00816.64
8.0.110.0060.00316.80
8.0.100.0000.00716.60
8.0.90.0040.00416.86
8.0.80.0060.01116.72
8.0.70.0000.00816.80
8.0.60.0000.00716.78
8.0.50.0070.00016.72
8.0.30.0070.01017.01
8.0.20.0070.01317.40
8.0.10.0040.00416.88
8.0.00.0140.00616.68
7.4.330.0000.00515.08
7.4.320.0030.00316.54
7.4.300.0060.00016.45
7.4.290.0030.00616.57
7.4.280.0000.01016.51
7.4.270.0000.00816.45
7.4.260.0030.00316.41
7.4.250.0000.00716.49
7.4.240.0030.00316.53
7.4.230.0000.00716.63
7.4.220.0100.00616.60
7.4.210.0090.00416.48
7.4.200.0070.00016.27
7.4.160.0070.00716.35
7.4.150.0030.01417.40
7.4.140.0080.01217.86
7.4.130.0100.00916.41
7.4.120.0090.00716.45
7.4.110.0070.01016.42
7.4.100.0070.01016.39
7.4.90.0140.00316.59
7.4.80.0000.01719.39
7.4.70.0080.00816.39
7.4.60.0090.00616.48
7.4.50.0040.01116.33
7.4.40.0090.00916.41
7.4.30.0070.01416.40
7.4.00.0090.00914.93
7.3.330.0040.00413.05
7.3.320.0000.00613.07
7.3.310.0030.00316.01
7.3.300.0070.00016.15
7.3.290.0040.01016.13
7.3.280.0080.01016.10
7.3.270.0030.01617.40
7.3.260.0140.00616.43
7.3.250.0100.00916.22
7.3.240.0050.01416.33
7.3.230.0060.01316.45
7.3.210.0160.00016.33
7.3.200.0120.00416.45
7.3.190.0210.00716.18
7.3.180.0000.01616.33
7.3.170.0100.01016.53
7.3.160.0130.00516.04
7.2.330.0080.01016.59
7.2.320.0120.00616.34
7.2.310.0070.01116.43
7.2.300.0110.01116.43
7.2.290.0110.01116.52
7.2.80.0150.00616.22
7.2.60.0030.01016.50
7.2.00.0000.01519.11
7.1.200.0130.00015.79
7.1.100.0040.00717.91
7.1.70.0060.01017.03
7.1.60.0090.01620.41
7.1.00.0030.07722.57
7.0.200.0090.00614.76
7.0.90.0670.07719.89
7.0.80.0370.09320.01
7.0.70.0230.04319.91
7.0.60.0200.04019.87
7.0.50.0270.03720.27
7.0.40.0070.03320.17
7.0.30.0030.04319.95
7.0.20.0070.03320.11
7.0.10.0000.07020.04
7.0.00.0070.04020.04
5.6.280.0030.07320.86
5.6.240.0070.05020.66
5.6.230.0000.04720.67
5.6.220.0070.03320.58
5.6.210.0030.03320.58
5.6.200.0030.07320.95
5.6.190.0030.07021.02
5.6.180.0000.08721.02
5.6.170.0000.05321.00
5.6.160.0000.04321.02
5.6.150.0170.02721.06
5.6.140.0000.04321.03
5.6.130.0070.04021.08
5.6.120.0070.04021.13
5.6.110.0070.04021.04
5.6.100.0070.03321.04
5.6.90.0030.04721.04
5.6.80.0030.04020.31
5.6.70.0070.04020.32
5.6.60.0130.05020.37
5.6.50.0030.03320.38
5.6.40.0030.03720.52
5.6.30.0000.07320.49
5.6.20.0030.04020.52
5.6.10.0100.03720.30
5.6.00.0100.05320.38
5.5.380.0030.08320.48
5.5.370.0030.05720.53
5.5.360.0000.05320.31
5.5.350.0030.04020.38
5.5.340.0100.07320.85
5.5.330.0130.06020.86
5.5.320.0200.06720.88
5.5.310.0030.04720.75
5.5.300.0100.07020.79
5.5.290.0070.03320.80
5.5.280.0130.02720.72
5.5.270.0130.03320.81
5.5.260.0030.04020.86
5.5.250.0000.04020.63
5.5.240.0030.05720.29
5.5.230.0030.04020.01
5.5.220.0000.04720.25
5.5.210.0030.05020.24
5.5.200.0000.04320.27
5.5.190.0070.04020.23
5.5.180.0070.07720.25
5.5.160.0130.07320.17
5.5.150.0070.08020.16
5.5.140.0130.06020.23
5.5.130.0070.04020.14
5.5.120.0130.06720.12
5.5.110.0070.07720.07
5.5.100.0030.08020.01
5.5.90.0230.06020.05
5.5.80.0070.08320.06
5.5.70.0030.06019.89
5.5.60.0000.06319.95
5.5.50.0070.06719.93
5.5.40.0130.03720.05
5.5.30.0130.05719.94
5.5.20.0200.06020.07
5.5.10.0100.07720.08
5.5.00.0130.06720.00

preferences:
36.26 ms | 400 KiB | 5 Q