3v4l.org

run code in 300+ PHP versions simultaneously
<?php // String with excessive backslashes manually added. // Only need the escaped newline characters ("\n") $str = "\nMilly O\'Malley wishes \\to \\e\at cake and \\not bread; see http://example.com.\n"; echo $str; $stripped = stripslashes( $str); echo $stripped;

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.00.0140.00819.63
8.4.150.0020.00014.05
8.4.140.0120.00917.49
8.4.130.0050.00618.60
8.4.120.0120.00723.93
8.4.110.0130.00918.91
8.4.100.0120.00917.49
8.4.90.0110.00920.38
8.4.80.0070.00817.71
8.4.70.0100.01217.82
8.4.60.0130.00718.68
8.4.50.0070.00917.69
8.4.40.0090.00919.51
8.4.30.0100.01019.40
8.4.20.0040.01117.60
8.4.10.0060.00319.50
8.3.270.0080.01216.51
8.3.260.0110.00816.70
8.3.250.0110.00818.73
8.3.240.0100.00917.21
8.3.230.0110.00716.44
8.3.220.0130.00518.70
8.3.210.0070.00916.48
8.3.200.0040.00416.40
8.3.190.0110.00719.02
8.3.180.0120.00616.57
8.3.170.0040.01517.19
8.3.160.0110.01119.92
8.3.150.0040.01518.30
8.3.140.0050.00317.30
8.3.130.0030.00616.57
8.3.120.0060.00320.63
8.3.110.0060.00316.49
8.3.100.0000.00816.66
8.3.90.0080.00026.77
8.3.80.0060.00319.36
8.3.70.0130.00316.58
8.3.60.0110.01118.30
8.3.50.0110.00717.38
8.3.40.0150.00318.59
8.3.30.0000.01418.65
8.3.20.0040.00420.12
8.3.10.0000.00821.95
8.3.00.0000.00720.84
8.2.290.0140.00417.07
8.2.280.0100.00822.46
8.2.270.0040.00417.24
8.2.260.0080.00816.65
8.2.250.0110.00716.45
8.2.240.0160.00316.82
8.2.230.0110.00420.94
8.2.220.0040.01124.06
8.2.210.0100.00326.77
8.2.200.0000.00918.88
8.2.190.0030.01218.41
8.2.180.0070.01416.38
8.2.170.0040.01118.72
8.2.160.0160.00319.32
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0040.00420.91
8.2.120.0080.00026.35
8.2.110.0090.00021.01
8.2.100.0060.00619.46
8.2.90.0040.00417.91
8.2.80.0040.00419.01
8.2.70.0040.00417.90
8.2.60.0040.00417.63
8.2.50.0040.00417.55
8.2.40.0060.00319.25
8.2.30.0040.00419.11
8.2.20.0020.00517.92
8.2.10.0080.00018.11
8.2.00.0040.00418.00
8.1.330.0060.01415.98
8.1.320.0100.01116.20
8.1.310.0100.00718.56
8.1.300.0040.00418.32
8.1.290.0000.00930.84
8.1.280.0110.00425.92
8.1.270.0040.00422.05
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0080.00022.14
8.1.230.0080.00421.03
8.1.220.0000.00817.74
8.1.210.0050.00318.97
8.1.200.0070.00317.10
8.1.190.0080.00017.22
8.1.180.0050.00318.10
8.1.170.0070.00017.62
8.1.160.0070.00018.82
8.1.150.0000.00722.03
8.1.140.0080.00019.50
8.1.130.0000.00720.53
8.1.120.0050.00217.37
8.1.110.0000.00817.30
8.1.100.0050.00217.39
8.1.90.0040.00417.30
8.1.80.0040.00417.39
8.1.70.0000.00817.40
8.1.60.0040.00417.39
8.1.50.0040.00417.44
8.1.40.0060.00317.24
8.1.30.0080.00017.56
8.1.20.0030.00517.40
8.1.10.0050.00217.47
8.1.00.0040.00417.41
8.0.300.0080.00020.19
8.0.290.0040.00416.75
8.0.280.0040.00418.41
8.0.270.0000.00717.24
8.0.260.0000.00618.86
8.0.250.0000.00716.82
8.0.240.0000.00716.84
8.0.230.0070.00016.88
8.0.220.0030.00316.66
8.0.210.0030.00316.69
8.0.200.0000.00716.81
8.0.190.0000.00816.84
8.0.180.0030.00516.89
8.0.170.0040.00416.78
8.0.160.0070.00016.77
8.0.150.0080.00016.64
8.0.140.0050.00516.66
8.0.130.0070.00013.28
8.0.120.0040.00416.75
8.0.110.0030.00516.76
8.0.100.0040.00416.76
8.0.90.0000.00816.80
8.0.80.0060.01016.84
8.0.70.0030.00616.74
8.0.60.0030.00516.64
8.0.50.0040.00416.76
8.0.30.0070.01316.98
8.0.20.0100.01117.40
8.0.10.0040.00416.93
8.0.00.0180.00616.57
7.4.330.0000.00515.55
7.4.320.0030.00316.50
7.4.300.0000.00616.50
7.4.290.0030.00516.50
7.4.280.0040.00416.52
7.4.270.0070.00016.53
7.4.260.0040.00716.33
7.4.250.0000.00816.39
7.4.240.0050.00216.39
7.4.230.0030.00316.26
7.4.220.0130.00616.42
7.4.210.0000.01516.39
7.4.200.0070.00016.32
7.4.160.0120.00716.35
7.4.150.0070.01017.40
7.4.140.0150.00617.86
7.4.130.0090.00916.61
7.4.120.0100.01116.44
7.4.110.0030.01416.38
7.4.100.0120.00616.42
7.4.90.0030.01316.55
7.4.80.0060.01319.39
7.4.70.0040.01616.48
7.4.60.0100.01016.44
7.4.50.0120.00316.38
7.4.40.0030.01316.27
7.4.30.0090.00616.43
7.4.00.0060.00914.91
7.3.330.0050.00013.12
7.3.320.0060.00012.93
7.3.310.0060.00015.97
7.3.300.0070.00016.25
7.3.290.0070.00916.21
7.3.280.0080.00716.19
7.3.270.0140.00517.40
7.3.260.0120.00916.17
7.3.250.0120.00816.22
7.3.240.0070.00916.32
7.3.230.0100.00716.41
7.3.210.0140.00316.24
7.3.200.0030.01316.16
7.3.190.0040.01216.24
7.3.180.0100.00716.44
7.3.170.0110.00516.31
7.3.160.0090.00616.36
7.2.330.0060.01016.64
7.2.320.0070.01016.30
7.2.310.0100.00716.36
7.2.300.0130.01016.30
7.2.290.0130.00416.66
7.2.80.0000.01116.33
7.2.60.0040.01116.88
7.1.200.0000.01215.82
7.1.80.5760.01016.00
7.1.70.5620.00915.21
7.1.60.5320.01333.13
7.1.50.5450.00932.66
7.1.40.4970.01432.48
7.1.30.7290.01332.68
7.1.20.4810.00732.69
7.1.10.5410.01414.81
7.1.00.0130.01414.73
7.0.200.6280.00715.02
7.0.190.6710.01614.99
7.0.180.4580.01214.57
7.0.170.6810.01614.32
7.0.160.7620.01014.28
7.0.150.4840.00914.26
7.0.140.4890.02014.54
7.0.130.0420.01814.41
7.0.120.0200.01214.70
7.0.110.6530.01414.49
7.0.101.0560.00614.36
7.0.91.3950.0007.07
7.0.81.0090.00814.60
7.0.70.0090.01214.36
7.0.60.0130.01114.14
7.0.50.7470.00314.46
7.0.40.7470.01814.43
7.0.30.6180.01214.58
7.0.20.6130.00914.63
7.0.10.5610.01314.66
7.0.00.5420.01014.59

preferences:
187.29 ms | 403 KiB | 5 Q