3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{"test" : "test one \xe0, \x270B"}'; echo var_export(json_validate($json), true); $json = preg_replace_callback( pattern: '/\\\\x([[:xdigit:]]+)/', callback: fn($m) => sprintf('\u%04s', $m[1]), subject: $json, count: $count ); echo "\n$count"; echo "\n" . var_export(json_validate($json), true); echo "\n$json\n"; var_export(json_decode($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.4.130.0110.00817.93
8.4.120.0080.01120.57
8.4.110.0090.00022.55
8.4.100.0100.00818.98
8.4.90.0070.00419.08
8.4.80.0080.00620.43
8.4.70.0100.01118.27
8.4.60.0110.00918.99
8.4.50.0060.00318.81
8.4.40.0130.00717.93
8.4.30.0090.00018.89
8.4.20.0100.01018.82
8.4.10.0080.00019.72
8.3.260.0100.01016.81
8.3.250.0130.00619.04
8.3.240.0110.00917.44
8.3.230.0130.00716.68
8.3.220.0090.01018.89
8.3.210.0040.00316.91
8.3.200.0030.00616.86
8.3.190.0110.00717.30
8.3.180.0060.00316.86
8.3.170.0070.00720.62
8.3.160.0060.00320.38
8.3.150.0120.00616.74
8.3.140.0070.00417.45
8.3.130.0000.01018.66
8.3.120.0050.00319.06
8.3.110.0110.00020.94
8.3.100.0060.00324.06
8.3.90.0070.00018.46
8.3.80.0040.00418.36
8.3.70.0120.00318.55
8.3.60.0080.00818.64
8.3.50.0060.00918.59
8.3.40.0080.00520.29
8.3.30.0070.01120.23
8.3.20.0040.00424.18
8.3.10.0000.01824.66
8.3.00.0130.01018.93
8.2.290.0110.00420.74
8.2.280.0150.00620.29
8.2.270.0090.00018.90
8.2.260.0080.01120.19
8.2.250.0100.01016.88
8.2.240.0150.00019.02
8.2.230.0070.00322.58
8.2.220.0040.00437.54
8.2.210.0100.00626.77
8.2.200.0050.00518.54
8.2.190.0100.01016.63
8.2.180.0090.01217.00
8.2.170.0070.00718.82
8.2.160.0080.00522.96
8.2.150.0110.00425.66
8.2.140.0050.00324.66
8.2.130.0110.00922.79
8.2.120.0130.00718.94
8.2.110.0100.00718.91
8.2.100.0100.00718.79
8.2.90.0070.00718.99
8.2.80.0040.00718.91
8.2.70.0070.00318.59
8.2.60.0000.00918.72
8.2.50.0060.00318.39
8.2.40.0040.00418.83
8.2.30.0000.01018.66
8.2.20.0030.00618.79
8.2.10.0000.00918.84
8.2.00.0030.00618.82
8.1.330.0090.00822.13
8.1.320.0140.00516.09
8.1.310.0070.01118.29
8.1.300.0080.01117.82
8.1.290.0060.00318.88
8.1.280.0060.00925.92
8.1.270.0040.00422.19
8.1.260.0040.00422.00
8.1.250.0090.00021.88
8.1.240.0060.00318.54
8.1.230.0060.00318.50
8.1.220.0060.00318.45
8.1.210.0060.00318.48
8.1.200.0030.00718.28
8.1.190.0060.00318.59
8.1.180.0090.00018.32
8.1.170.0030.00618.32
8.1.160.0100.00018.40
8.1.150.0030.00620.28
8.1.140.0030.00619.85
8.1.130.0040.00420.48
8.1.120.0110.00020.29
8.1.110.0080.00418.55
8.1.100.0000.01118.50
8.1.90.0060.00318.51
8.1.80.0000.00918.55
8.1.70.0030.00618.58
8.1.60.0090.00018.67
8.1.50.0060.00318.65
8.1.40.0060.00318.71
8.1.30.0090.00018.92
8.1.20.0070.00318.92
8.1.10.0070.00718.57
8.1.00.0080.00318.38
7.4.280.0140.00824.66
7.4.20.0070.00417.89
7.2.160.0180.00924.66

preferences:
54.07 ms | 403 KiB | 5 Q