3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bom = "\xef\xbb\xbf"; $json_string = $bom.'{"greeting":"Hello world"}'; var_dump( $json_string, json_decode($json_string, true), preg_replace('/[\x00-\x1F\x80-\xFF]/', '', $json_string), json_decode( preg_replace('/[\x00-\x1F\x80-\xFF]/', '', $json_string), true ) );

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.5.10.0130.00816.80
8.5.00.0110.01020.19
8.4.160.0110.01023.75
8.4.150.0020.00114.05
8.4.140.0110.01218.00
8.4.130.0080.01119.52
8.4.120.0130.00820.70
8.4.110.0090.01019.04
8.4.100.0060.00317.89
8.4.90.0100.01118.03
8.4.80.0450.00818.17
8.4.70.0340.00917.91
8.4.60.0160.00617.93
8.4.50.0420.00817.76
8.4.40.0450.00617.52
8.4.30.0370.00617.87
8.4.20.0240.00317.86
8.4.10.0210.00417.56
8.3.280.0020.00114.05
8.3.270.0110.00816.42
8.3.260.0160.00716.97
8.3.250.0110.00817.22
8.3.240.0140.00516.65
8.3.230.0090.01016.65
8.3.220.0370.00616.97
8.3.210.0420.00316.97
8.3.200.0190.00316.97
8.3.190.0300.00916.97
8.3.180.0250.00616.97
8.3.170.0140.00816.97
8.3.160.0210.00216.97
8.3.150.0170.00616.97
8.3.140.0230.00316.97
8.3.130.0170.00316.97
8.3.120.0180.00216.97
8.3.110.0210.00716.97
8.3.100.0220.00316.97
8.3.90.0280.00516.97
8.3.80.0210.00716.97
8.3.70.0430.00616.97
8.3.60.0430.00816.97
8.3.50.0420.00816.97
8.3.40.0470.00417.71
8.3.30.0260.00917.73
8.3.20.0280.01017.35
8.3.10.0290.00717.61
8.3.00.0150.00817.68
8.2.290.0100.00918.82
8.2.280.0270.01017.04
8.2.270.0140.00616.97
8.2.260.0340.01016.97
8.2.250.0310.00916.97
8.2.240.0340.01016.97
8.2.230.0370.00616.97
8.2.220.0410.00616.97
8.2.210.0360.00716.97
8.2.200.0320.01016.97
8.2.190.0370.00516.97
8.2.180.0330.00916.97
8.2.170.0380.00817.91
8.2.160.0250.00317.76
8.2.150.0220.00417.86
8.2.140.0150.00517.50
8.2.130.0340.00817.34
8.2.120.0370.00517.66
8.2.110.0370.00717.51
8.2.100.0240.00317.54
8.2.90.0380.00617.65
8.2.80.0320.00817.45
8.2.70.0340.01017.41
8.2.60.0290.00817.70
8.2.50.0180.00317.60
8.2.40.0290.01217.67
8.2.30.0380.01017.40
8.2.20.0240.00417.59
8.2.10.0140.00417.63
8.2.00.0130.00617.74

preferences:
53.7 ms | 403 KiB | 5 Q