3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = <<<EOT { "translations": { "b" : "a" }, "pluralForm" :"nplurals=2; plural=(n != 1);" } EOT; echo get_class($string); echo json_decode($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.0120.00316.75
8.3.50.0030.01216.27
8.3.40.0140.00318.87
8.3.30.0100.01018.77
8.3.20.0030.00620.26
8.3.10.0050.00323.48
8.3.00.0060.00317.68
8.2.180.0070.01518.68
8.2.170.0110.00422.96
8.2.160.0110.00320.38
8.2.150.0000.00924.18
8.2.140.0070.00024.66
8.2.130.0000.00726.16
8.2.120.0060.00317.50
8.2.110.0090.00020.55
8.2.100.0040.00717.72
8.2.90.0040.00417.84
8.2.80.0060.00320.28
8.2.70.0080.00017.93
8.2.60.0040.00417.93
8.2.50.0080.00018.10
8.2.40.0050.00320.42
8.2.30.0000.01020.61
8.2.20.0000.00817.68
8.2.10.0030.00518.10
8.2.00.0050.00218.09
8.1.280.0070.00725.92
8.1.270.0000.00723.79
8.1.260.0090.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00323.97
8.1.230.0000.01120.97
8.1.220.0030.00517.74
8.1.210.0060.00318.77
8.1.200.0040.00417.35
8.1.190.0040.00418.91
8.1.180.0030.00618.10
8.1.170.0040.00418.61
8.1.160.0000.00722.19
8.1.150.0000.00718.85
8.1.140.0000.00917.42
8.1.130.0040.00417.66
8.1.120.0000.00717.43
8.1.110.0000.01117.39
8.1.100.0030.00317.35
8.1.90.0070.00017.38
8.1.80.0040.00417.42
8.1.70.0040.00417.40
8.1.60.0080.00017.52
8.1.50.0040.00417.50
8.1.40.0040.00417.44
8.1.30.0040.00417.63
8.1.20.0000.00717.49
8.1.10.0040.00417.52
8.1.00.0000.00817.38
8.0.300.0030.00620.00
8.0.290.0000.00716.61
8.0.280.0030.00318.42
8.0.270.0040.00417.14
8.0.260.0030.00317.26
8.0.250.0070.00016.84
8.0.240.0060.00016.81
8.0.230.0040.00416.95
8.0.220.0070.00016.86
8.0.210.0000.00716.94
8.0.200.0000.00716.86
8.0.190.0030.00616.90
8.0.180.0080.00016.89
8.0.170.0080.00016.87
8.0.160.0040.00416.85
8.0.150.0030.00316.88
8.0.140.0000.00716.80
8.0.130.0050.00013.27
8.0.120.0070.00016.88
8.0.110.0030.00516.72
8.0.100.0040.00416.92
8.0.90.0050.00316.86
8.0.80.0070.01016.87
8.0.70.0040.00416.93
8.0.60.0000.00716.93
8.0.50.0040.00416.85
8.0.30.0120.00817.12
8.0.20.0080.01117.40
8.0.10.0070.00017.00
8.0.00.0100.01116.61
7.4.330.0060.00015.08
7.4.320.0030.00316.40
7.4.300.0030.00316.56
7.4.290.0030.00316.49
7.4.280.0000.00916.58
7.4.270.0000.00716.52
7.4.260.0030.00316.57
7.4.250.0070.00016.51
7.4.240.0070.00116.57
7.4.230.0070.00016.70
7.4.220.0120.00616.68
7.4.210.0000.02216.63
7.4.200.0030.00516.61
7.4.160.0090.00616.41
7.4.150.0180.00617.40
7.4.140.0150.00517.86
7.4.130.0150.00316.45
7.4.120.0100.00616.70
7.4.110.0140.00416.33
7.4.100.0120.00616.39
7.4.90.0180.00016.64
7.4.80.0060.01219.39
7.4.70.0090.00916.49
7.4.60.0170.00016.50
7.4.50.0000.00816.65
7.4.40.0170.00016.40
7.4.30.0120.01016.47
7.4.00.0100.00614.89
7.3.330.0000.00513.13
7.3.320.0020.00313.00
7.3.310.0000.00716.31
7.3.300.0030.00316.20
7.3.290.0080.00716.25
7.3.280.0090.01016.26
7.3.270.0110.00817.40
7.3.260.0000.02016.54
7.3.240.0090.00916.20
7.3.230.0100.00716.39
7.3.210.0090.00616.33
7.3.200.0090.00916.51
7.3.190.0130.00716.30
7.3.180.0000.01616.34
7.3.170.0130.00316.35
7.3.160.0030.01316.25
7.2.330.0120.00616.34
7.2.320.0080.01116.52
7.2.310.0070.01016.57
7.2.300.0000.01716.52
7.2.290.0150.00316.31
7.2.60.0030.01016.83
7.2.00.0070.01019.39
7.1.200.0070.00415.79
7.1.100.0100.00318.10
7.1.70.0000.01017.14
7.1.60.0000.02419.50
7.1.50.0060.00616.86
7.1.00.0000.07722.36
7.0.200.0000.00716.86
7.0.60.0030.04319.93
7.0.50.0100.07717.83
7.0.40.0100.08720.23
7.0.30.0230.08020.18
7.0.20.0300.08020.13
7.0.10.0130.06320.09
7.0.00.0100.08320.09
5.6.280.0030.03721.07
5.6.210.0030.08020.70
5.6.200.0030.08318.11
5.6.190.0030.09020.45
5.6.180.0300.04020.57
5.6.170.0270.06020.66
5.6.160.0100.08320.40
5.6.150.0030.08318.11
5.6.140.0070.08318.17
5.6.130.0200.05718.18
5.6.120.0070.08021.11
5.6.110.0100.07721.12
5.6.100.0030.08720.98
5.6.90.0070.08321.12
5.6.80.0130.07320.35
5.5.350.0200.08020.39
5.5.340.0000.04718.02
5.5.330.0100.08020.21
5.5.320.0130.04320.27
5.5.310.0230.04720.16
5.5.300.0100.07017.93
5.5.290.0070.05018.02
5.5.280.0130.08020.77
5.5.270.0100.08720.67
5.5.260.0170.07720.86
5.5.250.0100.04720.70
5.5.240.0000.03320.25
5.4.450.0770.05719.55
5.4.440.0730.06019.52
5.4.430.0830.04019.07
5.4.420.0870.04719.30
5.4.410.0670.06319.06
5.4.400.0770.06718.89
5.4.390.0800.05018.98
5.4.380.0870.04018.75
5.4.370.0730.05019.23
5.4.360.0770.05019.14
5.4.350.0730.05319.23
5.4.340.0900.06318.93
5.4.320.0800.07718.87
5.4.310.1000.06019.20
5.4.300.0070.05719.05
5.4.290.0030.06019.05
5.4.280.0130.04718.78
5.4.270.0500.05319.13
5.4.260.0800.05319.13
5.4.250.0770.04719.13
5.4.240.0700.05319.12
5.4.230.0770.04319.24
5.4.220.0600.06319.12
5.4.210.0670.05719.06
5.4.200.0730.04719.13
5.4.190.0870.07319.05
5.4.180.0900.06319.05
5.4.170.0730.05319.13
5.4.160.0700.05719.12
5.4.150.0770.05719.12
5.4.140.0930.04016.51
5.4.130.0970.06316.33
5.4.120.0870.04316.18
5.4.110.0930.05316.53
5.4.100.0870.06016.45
5.4.90.0730.05016.55
5.4.80.0930.06316.53
5.4.70.0000.07316.39
5.4.60.0130.03716.19
5.4.50.0270.06716.39
5.4.40.0230.05316.36
5.4.30.0000.05016.43
5.4.20.0170.07316.42
5.4.10.0170.03716.31

preferences:
69.86 ms | 400 KiB | 5 Q