3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * @link https://stackoverflow.com/a/8314506/367456 */ $content = '\tThis variable is not set by me.\nCannot do anything about it.\n'; echo "input:\n======\n", $content, "\n\n", "output:\n=======\n", preg_replace_callback( '/\\\\([nrtvf\\\\$"]|[0-7]{1,3}|\x[0-9A-Fa-f]{1,2})/', fn($matches) => stripcslashes($matches[0]), $content ) ;

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.140.0120.01017.96
8.4.130.0140.00922.15
8.4.120.0110.01020.64
8.4.110.0050.00422.17
8.4.100.0130.00817.90
8.4.90.0140.00720.71
8.4.80.0040.00517.97
8.4.70.0140.00518.00
8.4.60.0070.00918.88
8.4.50.0120.00822.04
8.4.40.0130.00617.95
8.4.30.0060.01320.63
8.4.20.0100.01017.87
8.4.10.0000.00919.49
8.3.270.0130.01016.57
8.3.260.0060.00216.65
8.3.250.0090.00918.89
8.3.240.0100.00617.02
8.3.230.0080.00616.61
8.3.220.0100.00718.93
8.3.210.0090.01018.33
8.3.200.0060.00316.78
8.3.190.0040.00417.10
8.3.180.0080.01118.47
8.3.170.0030.00716.77
8.3.160.0150.00316.95
8.3.150.0100.01017.17
8.3.140.0060.01316.70
8.3.130.0040.00417.00
8.3.120.0080.00020.83
8.3.110.0000.00918.61
8.3.100.0030.00620.38
8.3.90.0080.00026.77
8.3.80.0040.00419.36
8.3.70.0130.01016.63
8.3.60.0150.00016.88
8.3.50.0140.00516.57
8.3.40.0070.01319.03
8.3.30.0040.01118.86
8.3.20.0000.00824.18
8.3.10.0040.00424.66
8.3.00.0000.00826.16
8.2.290.0140.00616.98
8.2.280.0050.00418.59
8.2.270.0110.00717.11
8.2.260.0110.00417.21
8.2.250.0040.00417.05
8.2.240.0090.01218.98
8.2.230.0060.00920.94
8.2.220.0050.00324.06
8.2.210.0080.00026.77
8.2.200.0070.00718.88
8.2.190.0060.01018.79
8.2.180.0040.01525.92
8.2.170.0120.01219.26
8.2.160.0110.00422.96
8.2.150.0050.00325.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0030.00520.99
8.2.110.0030.00719.34
8.2.100.0080.00417.97
8.2.90.0080.00017.88
8.2.80.0030.00618.98
8.2.70.0060.00617.88
8.2.60.0090.00017.88
8.2.50.0000.01118.07
8.2.40.0000.00817.95
8.2.30.0000.00818.09
8.2.20.0070.00018.04
8.2.10.0060.00319.26
8.2.00.0050.00219.26
8.1.330.0120.00722.17
8.1.320.0100.00916.34
8.1.310.0140.00416.68
8.1.300.0030.00616.23
8.1.290.0090.00030.84
8.1.280.0100.00725.92
8.1.270.0000.00823.99
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0090.00019.39
8.1.230.0090.00317.89
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0050.00317.60
8.1.190.0000.00817.63
8.1.180.0040.00418.10
8.1.170.0040.00418.74
8.1.160.0000.00719.03
8.1.150.0040.00418.88
8.1.140.0000.00719.02
8.1.130.0030.00520.15
8.1.120.0040.00417.64
8.1.110.0000.00817.50
8.1.100.0000.00817.51
8.1.90.0070.00017.62
8.1.80.0020.00517.66
8.1.70.0000.00717.65
8.1.60.0040.00417.73
8.1.50.0090.00017.66
8.1.40.0060.00317.56
8.1.30.0000.00917.76
8.1.20.0000.00817.72
8.1.10.0000.00717.74
8.1.00.0060.00317.70
8.0.300.0060.00318.77
8.0.290.0000.00716.88
8.0.280.0000.00718.39
8.0.270.0030.00518.07
8.0.260.0030.00318.34
8.0.250.0030.00517.12
8.0.240.0070.00017.15
8.0.230.0070.00016.99
8.0.220.0070.00016.86
8.0.210.0070.00017.02
8.0.200.0040.00417.15
8.0.190.0020.00517.10
8.0.180.0040.00416.99
8.0.170.0030.00617.04
8.0.160.0050.00216.92
8.0.150.0040.00416.86
8.0.140.0030.00716.99
8.0.130.0030.00313.54
8.0.120.0030.00616.98
8.0.110.0070.00017.03
8.0.100.0040.00416.88
8.0.90.0040.00416.95
8.0.80.0100.00716.97
8.0.70.0050.00317.01
8.0.60.0000.00817.10
8.0.50.0030.00516.89
8.0.30.0160.01017.03
8.0.20.0140.00716.89
8.0.10.0150.00417.36
8.0.00.0040.01617.20
7.4.330.0050.00015.55
7.4.320.0030.00316.82
7.4.300.0000.00616.82
7.4.290.0000.00816.73
7.4.280.0030.00516.74
7.4.270.0050.00316.82
7.4.260.0050.00013.59
7.4.250.0030.00316.69
7.4.240.0040.00416.72
7.4.230.0000.00716.62
7.4.220.0010.00616.87
7.4.210.0110.00816.68
7.4.200.0040.00416.73
7.4.160.0150.00316.75
7.4.150.0070.01716.38
7.4.140.0110.00916.68
7.4.130.0130.00616.74
7.4.120.0130.00616.63
7.4.110.0200.00716.59
7.4.100.0150.00316.59
7.4.90.0110.00816.70
7.4.80.0180.00316.63
7.4.70.0130.00716.39
7.4.60.0170.00316.58
7.4.50.0090.01216.70
7.4.40.0110.00816.46
7.4.30.0060.01216.48
7.4.20.0130.00616.73
7.4.10.0110.00716.86
7.4.00.0140.00516.60
7.3.330.0030.00316.12
7.3.320.0000.00513.14
7.3.310.0040.00415.94
7.3.300.0000.00616.16
7.3.290.0110.00716.17
7.3.270.0120.00916.13
7.3.260.0200.00016.13
7.3.250.0110.00816.20
7.3.240.0100.01016.30
7.3.230.0140.00516.10
7.3.220.0080.00816.29
7.3.210.0120.00616.32
7.3.200.0160.00016.24
7.3.190.0060.01216.13
7.3.180.0040.01316.20
7.3.170.0140.00716.12
7.3.160.0120.00616.07
7.3.150.0110.01116.35
7.3.140.0090.00916.16
7.3.130.0140.00316.19
7.3.120.0140.00316.21
7.3.110.0090.00916.28
7.3.100.0110.00716.19
7.3.90.0080.00816.14
7.3.80.0120.00416.06
7.3.70.0100.00716.18
7.3.60.0080.00815.97
7.3.50.0080.00616.24
7.3.40.0060.01216.09
7.3.30.0110.00716.23
7.3.20.0060.01216.07
7.3.10.0070.01016.16
7.3.00.0140.00516.25

preferences:
30.5 ms | 403 KiB | 5 Q