3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "\xB1\x31"; $json = json_encode($text); $error = json_last_error(); var_dump($json, $error === JSON_ERROR_UTF8);

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.0160.00616.50
8.3.50.0070.00921.94
8.3.40.0110.00318.54
8.3.30.0070.00718.41
8.3.20.0030.00620.36
8.3.10.0000.00821.73
8.3.00.0040.00421.60
8.2.180.0110.00716.50
8.2.170.0070.00722.96
8.2.160.0110.00322.16
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0030.00619.82
8.2.120.0040.00426.35
8.2.110.0070.00422.24
8.2.100.0060.00617.59
8.2.90.0040.00419.17
8.2.80.0040.00417.97
8.2.70.0040.00417.36
8.2.60.0000.00817.93
8.2.50.0040.00418.10
8.2.40.0000.00720.47
8.2.30.0040.00419.16
8.2.20.0000.00817.95
8.2.10.0000.00818.04
8.2.00.0030.00517.69
8.1.280.0110.00725.92
8.1.270.0050.00222.14
8.1.260.0040.00428.09
8.1.250.0030.00528.09
8.1.240.0090.00020.75
8.1.230.0030.00719.10
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0030.00617.13
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0040.00418.54
8.1.160.0040.00423.84
8.1.150.0040.00420.12
8.1.140.0040.00419.53
8.1.130.0030.00317.68
8.1.120.0040.00417.22
8.1.110.0030.00517.27
8.1.100.0050.00217.27
8.1.90.0000.00817.26
8.1.80.0000.00717.32
8.1.70.0000.00717.30
8.1.60.0070.00017.48
8.1.50.0030.00617.43
8.1.40.0000.00817.43
8.1.30.0040.00417.59
8.1.20.0000.00717.45
8.1.10.0070.00317.51
8.1.00.0030.00717.37
8.0.300.0070.00020.16
8.0.290.0090.00016.75
8.0.280.0030.00318.37
8.0.270.0000.00917.09
8.0.260.0040.00417.08
8.0.250.0060.00016.86
8.0.240.0000.00816.91
8.0.230.0060.00316.86
8.0.220.0020.00516.73
8.0.210.0000.00716.84
8.0.200.0000.00616.89
8.0.190.0040.00416.88
8.0.180.0040.00416.89
8.0.170.0070.00016.75
8.0.160.0000.00816.79
8.0.150.0030.00316.75
8.0.140.0000.00716.67
8.0.130.0000.00513.20
8.0.120.0050.00316.79
8.0.110.0040.00416.82
8.0.100.0070.00016.84
8.0.90.0000.00816.73
8.0.80.0130.00916.77
8.0.70.0070.00016.70
8.0.60.0030.00516.88
8.0.50.0000.00716.59
8.0.30.0090.01116.78
8.0.20.0130.00617.40
8.0.10.0000.00716.75
8.0.00.0110.00616.59
7.4.330.0000.00615.55
7.4.320.0030.00316.51
7.4.300.0000.00616.49
7.4.290.0050.00316.62
7.4.280.0050.00316.39
7.4.270.0000.00616.52
7.4.260.0000.00916.48
7.4.250.0030.00316.45
7.4.240.0030.00316.54
7.4.230.0070.00016.52
7.4.220.0090.01816.43
7.4.210.0060.00916.61
7.4.200.0040.00416.61
7.4.160.0070.01216.45
7.4.150.0110.00717.40
7.4.140.0140.00417.86
7.4.130.0080.01216.47
7.4.120.0110.00716.43
7.4.110.0060.01216.42
7.4.100.0170.00316.46
7.4.90.0030.01316.53
7.4.80.0060.01319.39
7.4.70.0070.01016.35
7.4.60.0090.00616.59
7.4.50.0070.01016.40
7.4.40.0170.00316.38
7.4.30.0070.01416.51
7.4.00.0140.00315.07
7.3.330.0050.00012.88
7.3.320.0030.00313.12
7.3.310.0000.00716.28
7.3.300.0060.00016.23
7.3.290.0070.00816.21
7.3.280.0080.00816.19
7.3.270.0150.00317.40
7.3.260.0070.01416.46
7.3.250.0080.00816.24
7.3.240.0090.00816.30
7.3.230.0100.01016.39
7.3.210.0100.00616.41
7.3.200.0040.01316.34
7.3.190.0040.01116.37
7.3.180.0150.00316.45
7.3.170.0090.00616.39
7.3.160.0170.00416.17
7.3.90.0110.00614.66
7.3.80.0110.00614.80
7.3.70.0040.01414.52
7.3.60.0050.01014.57
7.3.50.0070.00714.71
7.3.40.0080.00714.55
7.3.30.0070.00714.55
7.3.20.0100.00814.67
7.3.10.0100.00614.64
7.3.00.0070.00914.61
7.2.330.0160.00016.52
7.2.320.0000.01716.39
7.2.310.0070.01116.52
7.2.300.0090.00916.71
7.2.290.0150.00316.38
7.2.220.0100.00715.09
7.2.210.0090.00915.08
7.2.200.0070.02214.73
7.2.190.0090.00614.89
7.2.180.0050.01114.75
7.2.170.0080.00714.97
7.2.160.0090.00614.90
7.2.150.0090.00815.07
7.2.140.0110.00614.88
7.2.130.0110.00714.97
7.2.120.0100.00914.98
7.2.110.0180.00914.81
7.2.100.0110.00714.87
7.2.90.0140.00314.96
7.2.80.0070.01114.81
7.2.70.0270.00515.05
7.2.60.0170.00314.77
7.2.50.0120.00914.95
7.2.40.0040.01314.80
7.2.30.0090.00914.91
7.2.20.0110.01114.93
7.2.10.0090.01114.95
7.2.00.0110.00616.37
7.1.320.0090.00914.14
7.1.310.0090.00913.99
7.1.300.0520.00513.79
7.1.290.0150.00713.72
7.1.280.0090.00813.90
7.1.270.0130.00513.71
7.1.260.0070.00913.95
7.1.250.0110.00513.80
7.1.240.0090.00913.81
7.1.230.0110.00613.85
7.1.220.0070.01013.75
7.1.210.0100.00613.65
7.1.200.0080.00914.22
7.1.190.0130.00713.67
7.1.180.0110.00713.79
7.1.170.0420.01213.85
7.1.160.0090.00713.86
7.1.150.0090.00713.91
7.1.140.0070.00713.82
7.1.130.0110.00513.88
7.1.120.0070.01013.69
7.1.110.0080.00813.81
7.1.100.0110.00813.86
7.1.90.0100.01013.95
7.1.80.0170.00313.96
7.1.70.0100.01014.83
7.1.60.0130.00414.80
7.1.50.0680.00813.88
7.1.40.0120.00513.84
7.1.30.0140.00813.72
7.1.20.0120.01013.64
7.1.10.0110.00713.90
7.1.00.0020.03616.58
7.0.330.0140.00513.49
7.0.320.0120.00613.52
7.0.310.0110.00913.50
7.0.300.0100.00913.18
7.0.290.0130.00813.52
7.0.280.0100.00913.51
7.0.270.0070.01113.56
7.0.260.0120.00613.53
7.0.250.0120.01013.54
7.0.240.0080.01113.58
7.0.230.0150.00713.42
7.0.220.0140.00313.38
7.0.210.0120.01013.39
7.0.200.0100.00614.49
7.0.190.0120.00713.57
7.0.180.0070.01013.48
7.0.170.0140.00713.48
7.0.160.0110.00813.30
7.0.150.0140.00813.55
7.0.140.0100.00813.59
7.0.130.0120.00613.39
7.0.120.0170.02716.37
7.0.110.0110.02516.33
7.0.100.0060.02716.22
7.0.90.0590.02216.40
7.0.80.0100.03016.36
7.0.70.0110.02116.31
7.0.60.0120.02416.38
7.0.50.0130.02116.42
7.0.40.0080.02416.29
7.0.30.0080.02716.46
7.0.20.0090.02416.15
7.0.10.0110.02416.38
7.0.00.0090.02516.42
5.6.400.0080.00614.04
5.6.390.0050.01214.10
5.6.380.0060.00913.94
5.6.370.0150.00614.05
5.6.360.0140.00514.03
5.6.350.0140.00714.00
5.6.340.0170.00714.08
5.6.330.0160.00713.88
5.6.320.0150.00714.10
5.6.310.0120.00714.18
5.6.300.0110.01014.14
5.6.290.0200.00314.45
5.6.280.0090.01014.17
5.6.270.0190.01916.32
5.6.260.0120.02216.42
5.6.250.0120.02116.52
5.6.240.0130.02416.44
5.6.230.0110.02716.42
5.6.220.0110.02316.45
5.6.210.0150.02216.41
5.6.200.0120.02416.47
5.6.190.0140.02316.35
5.6.180.0110.02616.53
5.6.170.0140.02116.40
5.6.160.0090.02616.40
5.6.150.0150.02316.57
5.6.140.0130.02616.53
5.6.130.0100.02416.49
5.6.120.0210.02016.24
5.6.110.0140.02716.46
5.6.100.0100.02516.40
5.6.90.0110.02416.37
5.6.80.0140.02116.30
5.6.70.0110.02516.13
5.6.60.0130.02216.04
5.6.50.0150.01916.15
5.6.40.0130.02416.12
5.6.30.0120.02816.16
5.6.20.0110.03216.20
5.6.10.0150.01916.11
5.6.00.0140.02116.12

preferences:
40.62 ms | 401 KiB | 5 Q