3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strings = array('\s', '\n\t', "abc", 'abc\\\\foo'); foreach ($strings as $str) { $stripped = stripcslashes($str); $rebuilt = addcslashes($stripped, "\\\0\n\t\v\f\a\r\b"); var_dump($str, $str === $rebuilt, $rebuilt); }

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.3.60.0070.01018.30
8.3.50.0060.00917.95
8.3.40.0180.00318.63
8.3.30.0090.00618.46
8.3.20.0040.00419.15
8.3.10.0050.00320.90
8.3.00.0030.00523.48
8.2.180.0090.01216.50
8.2.170.0150.00022.96
8.2.160.0070.01120.01
8.2.150.0050.00524.18
8.2.140.0040.00424.66
8.2.130.0080.00019.70
8.2.120.0000.00726.35
8.2.110.0060.00319.27
8.2.100.0000.01117.91
8.2.90.0030.00619.09
8.2.80.0040.00417.97
8.2.70.0000.00818.03
8.2.60.0050.00318.04
8.2.50.0000.00818.10
8.2.40.0040.00719.38
8.2.30.0040.00419.44
8.2.20.0090.00018.11
8.2.10.0000.00818.11
8.2.00.0060.00319.48
8.1.280.0090.00625.92
8.1.270.0040.00422.15
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00619.20
8.1.230.0120.00017.77
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0030.00617.35
8.1.190.0040.00417.13
8.1.180.0080.00018.10
8.1.170.0030.00618.58
8.1.160.0070.00018.95
8.1.150.0040.00418.80
8.1.140.0000.00717.75
8.1.130.0000.00718.92
8.1.120.0070.00017.51
8.1.110.0000.00817.48
8.1.100.0000.00717.34
8.1.90.0000.00817.49
8.1.80.0030.00517.36
8.1.70.0000.00717.34
8.1.60.0040.00717.44
8.1.50.0030.00517.40
8.1.40.0000.00817.44
8.1.30.0030.00517.54
8.1.20.0040.00417.65
8.1.10.0070.00017.46
8.1.00.0070.00017.45
8.0.300.0060.00318.77
8.0.290.0040.00416.63
8.0.280.0030.00318.45
8.0.270.0070.00017.25
8.0.260.0040.00417.19
8.0.250.0030.00316.96
8.0.240.0030.00316.94
8.0.230.0040.00416.96
8.0.220.0070.00016.78
8.0.210.0030.00316.83
8.0.200.0050.00216.94
8.0.190.0030.00716.84
8.0.180.0080.00016.97
8.0.170.0040.00416.79
8.0.160.0000.00716.91
8.0.150.0030.01016.89
8.0.140.0040.00416.72
8.0.130.0060.00013.25
8.0.120.0030.00616.90
8.0.110.0050.00216.74
8.0.100.0030.00416.87
8.0.90.0020.00516.76
8.0.80.0090.00716.91
8.0.70.0000.00816.93
8.0.60.0000.00716.95
8.0.50.0040.00416.93
8.0.30.0040.01417.10
8.0.20.0110.00817.40
8.0.10.0000.00817.05
8.0.00.0140.00916.95
7.4.330.0050.00015.55
7.4.320.0000.00616.52
7.4.300.0070.00016.62
7.4.290.0000.00816.62
7.4.280.0080.00016.59
7.4.270.0040.00416.56
7.4.260.0030.00316.41
7.4.250.0030.00316.47
7.4.240.0000.00716.53
7.4.230.0000.00716.53
7.4.220.0070.00016.45
7.4.210.0110.00816.52
7.4.200.0070.00016.53
7.4.160.0120.00716.54
7.4.140.0100.01017.86
7.4.130.0140.00416.62
7.4.120.0090.01016.47
7.4.110.0060.01316.55
7.4.100.0090.00816.41
7.4.90.0030.01416.61
7.4.80.0030.01719.39
7.4.70.0070.01016.50
7.4.60.0190.00016.54
7.4.50.0030.01416.64
7.4.40.0210.00016.42
7.4.00.0030.00915.20
7.3.330.0050.00013.20
7.3.320.0030.00313.24
7.3.310.0050.00216.42
7.3.300.0040.00416.34
7.3.290.0070.00016.34
7.3.280.0060.00916.35
7.3.260.0110.00916.47
7.3.240.0090.00816.39
7.3.230.0030.01416.35
7.3.210.0120.00616.44
7.3.200.0140.00316.22
7.3.190.0150.00316.70
7.3.180.0060.01016.45
7.3.170.0100.00716.43
7.3.160.0140.00316.46
7.3.00.0170.00016.54
7.2.330.0120.00816.32
7.2.320.0030.01716.75
7.2.310.0140.01016.61
7.2.300.0090.00916.86
7.2.290.0030.01516.43
7.2.130.0090.00916.64
7.2.120.0100.00716.80
7.2.110.0100.00316.94
7.2.100.0090.00616.72
7.2.90.0070.01017.08
7.2.80.0040.01516.77
7.2.70.0100.00717.02
7.2.60.0120.00715.72
7.2.50.0140.00715.93
7.2.40.0120.00815.94
7.2.30.0160.00715.69
7.2.20.0110.01015.69
7.2.10.0150.00615.70
7.2.00.0130.00815.68
7.1.250.0030.01015.85
7.1.240.0030.01315.79
7.1.230.0070.00715.68
7.1.220.0080.01215.96
7.1.210.0130.00615.58
7.1.200.0080.00615.64
7.1.190.0120.00615.84
7.1.180.0060.00615.50
7.1.170.0130.00714.94
7.1.160.0140.00514.71
7.1.150.0120.00814.65
7.1.140.0130.00814.75
7.1.130.0140.00714.87
7.1.120.0110.01014.80
7.1.110.0150.00614.99
7.1.100.0110.00814.81
7.1.90.0150.01114.94
7.1.80.0160.00614.63
7.1.70.0130.00814.61
7.1.60.0190.01223.86
7.1.50.0210.01123.50
7.1.40.0130.01623.88
7.1.30.0210.00723.64
7.1.20.0270.00823.47
7.1.10.0590.00814.66
7.1.00.0130.00614.73
7.0.330.0080.00415.15
5.6.380.0040.00414.38

preferences:
72.1 ms | 401 KiB | 5 Q