3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '${\\"GL\\x47\\x4c\\x4c\\x53\\"}'; echo preg_replace_callback( '/\\\\x([\da-fA-F]+)/', fn($m) => pack("H*", $m[1]), $str );

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.0140.00816.89
8.5.00.0110.01020.25
8.4.150.0020.00114.05
8.4.140.0150.00517.60
8.4.130.0130.00717.99
8.4.120.0100.00920.58
8.4.110.0140.00622.41
8.4.100.0120.00917.83
8.4.90.0130.01018.77
8.4.80.0110.01020.03
8.4.70.0100.01018.27
8.4.60.0060.00318.98
8.4.50.0050.00418.77
8.4.40.0060.01017.84
8.4.30.0120.00218.71
8.4.20.0160.00318.88
8.4.10.0160.00319.41
8.3.280.0120.00718.65
8.3.270.0170.01216.55
8.3.260.0050.00416.61
8.3.250.0110.00818.96
8.3.240.0080.00316.73
8.3.230.0120.00716.58
8.3.220.0070.01317.30
8.3.210.0110.00816.80
8.3.200.0080.00116.97
8.3.190.0060.00217.18
8.3.180.0060.00316.80
8.3.170.0060.01220.57
8.3.160.0040.00418.42
8.3.150.0090.00616.97
8.3.140.0080.00016.98
8.3.130.0130.00618.38
8.3.120.0090.00019.00
8.3.110.0030.00620.94
8.3.100.0060.00324.06
8.3.90.0090.00626.77
8.3.80.0090.00317.97
8.3.70.0090.00618.35
8.3.60.0090.00618.55
8.3.50.0140.00316.80
8.3.40.0150.00020.29
8.3.30.0060.01220.35
8.3.20.0040.00424.18
8.3.10.0110.00424.66
8.3.00.0090.01220.84
8.2.290.0090.00920.17
8.2.280.0030.00518.89
8.2.270.0120.00618.76
8.2.260.0090.00916.73
8.2.250.0070.00716.70
8.2.240.0090.00019.25
8.2.230.0000.00822.58
8.2.220.0040.00437.54
8.2.210.0000.00826.77
8.2.200.0030.00716.75
8.2.190.0120.00616.58
8.2.180.0120.00316.63
8.2.170.0150.00019.22
8.2.160.0250.00022.96
8.2.150.0150.00325.66
8.2.140.0040.00424.66
8.2.130.0130.00721.19
8.2.120.0130.00720.98
8.2.110.0070.01320.70
8.2.100.0100.01020.98
8.2.90.0150.00320.89
8.2.80.0000.01520.75
8.2.70.0080.00020.91
8.2.60.0070.00320.92
8.2.50.0030.00620.69
8.2.40.0090.00020.88
8.2.30.0030.00620.76
8.2.20.0100.00020.71
8.2.10.0070.01420.55
8.2.00.0130.00620.73
8.1.330.0090.01022.21
8.1.320.0130.00716.13
8.1.310.0080.00018.31
8.1.300.0090.00918.34
8.1.290.0080.00430.84
8.1.280.0060.00925.92
8.1.270.0050.00322.06
8.1.260.0120.00623.85
8.1.250.0080.01123.60
8.1.240.0100.01020.55
8.1.230.0070.01020.43
8.1.220.0070.01020.35
8.1.210.0060.00320.30
8.1.200.0090.00620.34
8.1.190.0110.00420.64
8.1.180.0090.00020.47
8.1.170.0070.01020.35
8.1.160.0090.00020.52
8.1.150.0040.00420.53
8.1.140.0040.01120.53
8.1.130.0060.00320.55
8.1.120.0060.00320.59
8.1.110.0040.00420.45
8.1.100.0100.00620.53
8.1.90.0060.01020.43
8.1.80.0090.00020.53
8.1.70.0060.00920.59
8.1.60.0030.00620.58
8.1.50.0050.00520.59
8.1.40.0060.00320.50
8.1.30.0030.00620.69
8.1.20.0030.00620.73
8.1.10.0030.00620.64
8.1.00.0090.00020.50

preferences:
35 ms | 403 KiB | 5 Q