3v4l.org

run code in 300+ PHP versions simultaneously
<?php json_encode("string");

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.0050.01417.95
8.3.50.0140.00318.27
8.3.40.0040.01118.68
8.3.30.0070.00718.41
8.3.20.0000.00720.18
8.3.10.0000.00818.53
8.3.00.0050.00221.65
8.2.180.0140.00716.63
8.2.170.0040.01122.96
8.2.160.0100.00320.38
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0060.00320.38
8.2.120.0000.00826.35
8.2.110.0030.00622.08
8.2.100.0080.00317.79
8.2.90.0000.00817.87
8.2.80.0040.00417.97
8.2.70.0080.00017.63
8.2.60.0060.00317.55
8.2.50.0000.00818.10
8.2.40.0030.00622.36
8.2.30.0040.00418.99
8.2.20.0040.00417.79
8.2.10.0000.00717.92
8.2.00.0000.00817.91
8.1.280.0110.00725.92
8.1.270.0070.00022.23
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0040.00423.97
8.1.230.0100.00320.97
8.1.220.0050.00217.74
8.1.210.0000.00818.77
8.1.200.0030.00617.22
8.1.190.0060.00317.10
8.1.180.0000.00818.10
8.1.170.0070.00018.48
8.1.160.0030.00518.75
8.1.150.0050.00220.26
8.1.140.0000.00718.93
8.1.130.0000.00718.73
8.1.120.0000.00717.26
8.1.110.0040.00417.24
8.1.100.0060.00317.24
8.1.90.0070.00317.29
8.1.80.0080.00017.33
8.1.70.0030.00317.23
8.1.60.0000.00817.43
8.1.50.0080.00017.27
8.1.40.0030.00617.27
8.1.30.0090.00017.43
8.1.20.0040.00417.50
8.1.10.0040.00417.36
8.1.00.0020.00517.32
8.0.300.0000.00721.94
8.0.290.0070.00416.58
8.0.280.0030.00318.18
8.0.270.0030.00317.12
8.0.260.0070.00018.74
8.0.250.0060.00316.73
8.0.240.0040.00416.86
8.0.230.0030.00416.70
8.0.220.0030.00616.73
8.0.210.0000.00716.79
8.0.200.0080.00016.71
8.0.190.0000.00816.81
8.0.180.0070.00016.84
8.0.170.0000.00916.75
8.0.160.0030.00316.65
8.0.150.0070.00016.80
8.0.140.0000.00716.59
8.0.130.0060.00013.22
8.0.120.0040.00416.71
8.0.110.0030.00316.70
8.0.100.0000.00716.53
8.0.90.0040.00416.80
8.0.80.0100.01016.73
8.0.70.0000.00816.71
8.0.60.0040.00416.80
8.0.50.0030.00616.76
8.0.30.0070.01216.83
8.0.20.0080.01117.40
8.0.10.0000.00716.73
8.0.00.0150.00816.46
7.4.330.0000.00415.55
7.4.320.0030.00316.45
7.4.300.0000.00616.34
7.4.290.0000.00716.46
7.4.280.0000.00716.45
7.4.270.0070.00016.35
7.4.260.0000.00716.32
7.4.250.0000.00716.32
7.4.240.0080.00016.38
7.4.230.0040.00416.57
7.4.220.0090.00916.28
7.4.210.0070.01016.42
7.4.200.0000.00716.46
7.4.160.0050.01116.39
7.4.150.0130.00417.40
7.4.140.0150.00917.86
7.4.130.0120.01216.58
7.4.120.0140.00916.33
7.4.110.0120.00616.20
7.4.100.0060.01016.30
7.4.90.0090.00616.39
7.4.80.0090.00619.39
7.4.70.0110.01416.30
7.4.60.0100.00916.38
7.4.50.0030.01216.25
7.4.40.0100.00716.33
7.4.30.0060.00916.30
7.4.00.0030.01214.70
7.3.330.0000.00612.92
7.3.320.0050.00012.88
7.3.310.0030.00316.12
7.3.300.0000.00816.12
7.3.290.0030.00316.12
7.3.280.0060.01116.15
7.3.270.0120.00917.40
7.3.260.0090.00816.19
7.3.250.0110.00816.11
7.3.240.0070.01116.26
7.3.230.0060.01016.24
7.3.210.0000.01716.25
7.3.200.0110.00516.29
7.3.190.0120.00616.33
7.3.180.0030.01516.05
7.3.170.0070.01016.38
7.3.160.0090.00816.17
7.2.330.0090.01216.48
7.2.320.0130.00916.35
7.2.310.0150.00816.47
7.2.300.0130.01016.25
7.2.290.0210.00616.41
7.2.60.0000.01416.82
7.2.00.0120.00619.29
7.1.200.0090.00315.57
7.1.120.0030.01318.54
7.1.110.0070.00717.76
7.1.100.0110.00318.21
7.1.90.0070.00718.14
7.1.80.0080.00517.82
7.1.70.0030.00917.14
7.1.60.0160.01034.89
7.1.50.0190.00634.49
7.1.40.0100.01634.30
7.1.30.0100.01634.05
7.1.20.0200.01034.30
7.1.10.0030.01116.43
7.1.00.0030.00916.45

preferences:
42.79 ms | 401 KiB | 5 Q