3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = "Sc\reen S/hot 20'14-05-19 at 14.21.22"; $filename = str_replace([, '/', '\'', ' '], '_', stripslashes($input)); var_dump($filename);

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)
5.4.280.0140.06512.36
5.4.270.0070.03712.36
5.4.260.0060.04612.36
5.4.250.0050.04212.36
5.4.240.0080.03812.36
5.4.230.0030.04112.36
5.4.220.0050.03812.35
5.4.210.0090.03912.35
5.4.200.0080.05112.36
5.4.190.0060.04012.35
5.4.180.0090.06212.35
5.4.170.0080.07112.36
5.4.160.0090.05212.35
5.4.150.0080.05812.35
5.4.140.0100.05912.04
5.4.130.0080.05612.02
5.4.120.0120.05111.98
5.4.110.0060.05311.98
5.4.100.0080.07011.98
5.4.90.0080.05711.98
5.4.80.0120.05211.99
5.4.70.0140.08711.98
5.4.60.0150.10011.98
5.4.50.0070.05011.98
5.4.40.0100.06011.97
5.4.30.0200.08411.96
5.4.20.0150.08011.96
5.4.10.0180.06311.96
5.4.00.0060.05811.46
5.3.280.0110.05712.71
5.3.270.0060.06512.72
5.3.260.0120.05212.72
5.3.250.0100.05312.72
5.3.240.0090.05812.72
5.3.230.0100.05012.70
5.3.220.0100.05012.68
5.3.210.0100.05212.68
5.3.200.0060.05112.68
5.3.190.0110.04612.68
5.3.180.0110.04712.68
5.3.170.0130.04612.67
5.3.160.0070.05112.68
5.3.150.0080.05212.67
5.3.140.0040.04112.66
5.3.130.0070.04212.66
5.3.120.0060.04112.66
5.3.110.0090.05212.65
5.3.100.0110.04712.12
5.3.90.0080.05012.08
5.3.80.0070.05012.08
5.3.70.0110.04812.08
5.3.60.0090.04712.06
5.3.50.0090.04912.00
5.3.40.0100.04812.00
5.3.30.0120.04711.94
5.3.20.0070.04811.70
5.3.10.0070.04911.67
5.3.00.0120.04511.66
5.2.170.0140.0349.15
5.2.160.0100.0339.15
5.2.150.0090.0289.15
5.2.140.0070.0409.14
5.2.130.0210.0799.11
5.2.120.0110.0439.11
5.2.110.0060.0449.11
5.2.100.0110.0419.12
5.2.90.0050.0449.11
5.2.80.0060.0439.11
5.2.70.0060.0439.11
5.2.60.0060.0459.06
5.2.50.0080.0439.04
5.2.40.0070.0409.00
5.2.30.0050.0448.99
5.2.20.0090.0428.97
5.2.10.0070.0438.90
5.2.00.0060.0428.76
5.1.60.0080.0318.04
5.1.50.0050.0328.05
5.1.40.0080.0308.03
5.1.30.0060.0358.38
5.1.20.0050.0388.40
5.1.10.0040.0368.12
5.1.00.0040.0368.13
5.0.50.0080.0236.59
5.0.40.0060.0256.46
5.0.30.0060.0386.27
5.0.20.0080.0346.25
5.0.10.0040.0286.22
5.0.00.0040.0386.21
4.4.90.0040.0204.78
4.4.80.0050.0204.75
4.4.70.0040.0214.76
4.4.60.0030.0214.75
4.4.50.0030.0214.77
4.4.40.0040.0314.71
4.4.30.0050.0204.75
4.4.20.0040.0204.84
4.4.10.0040.0214.85
4.4.00.0020.0324.75
4.3.110.0030.0234.67
4.3.100.0050.0184.66
4.3.90.0030.0204.63
4.3.80.0060.0274.59
4.3.70.0010.0234.63
4.3.60.0050.0254.62
4.3.50.0020.0304.63
4.3.40.0050.0394.54
4.3.30.0030.0263.28
4.3.20.0030.0273.26
4.3.10.0030.0243.21
4.3.00.0100.0237.27

preferences:
136.55 ms | 1398 KiB | 7 Q