3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "blur/blur/myPhotoName_20170818_111453.jpg"; $pos = strrpos($str, "/")+1; $str = substr($str, $pos, strpos($str, "_")-$pos) . substr($str, strpos($str, ".")); Echo $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.3.60.0030.01318.25
8.3.50.0070.00716.48
8.3.40.0080.00618.67
8.3.30.0070.01518.45
8.3.20.0050.00220.27
8.3.10.0040.00421.92
8.3.00.0040.00420.77
8.2.180.0070.01418.16
8.2.170.0110.00418.79
8.2.160.0100.01022.96
8.2.150.0000.00825.66
8.2.140.0040.00424.66
8.2.130.0000.00819.30
8.2.120.0000.00726.35
8.2.110.0060.00322.30
8.2.100.0080.00317.84
8.2.90.0040.00419.05
8.2.80.0040.00419.28
8.2.70.0040.00417.48
8.2.60.0040.00417.68
8.2.50.0000.00918.10
8.2.40.0050.00320.42
8.2.30.0040.00419.14
8.2.20.0030.00518.05
8.2.10.0090.00018.15
8.2.00.0050.00218.10
8.1.280.0140.00425.92
8.1.270.0040.00423.97
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0120.00922.62
8.1.230.0080.00317.70
8.1.220.0000.00817.78
8.1.210.0040.00418.77
8.1.200.0040.00417.35
8.1.190.0030.00617.35
8.1.180.0030.00518.10
8.1.170.0080.00018.59
8.1.160.0040.00418.93
8.1.150.0040.00422.08
8.1.140.0050.00219.60
8.1.130.0000.00717.41
8.1.120.0000.00717.45
8.1.110.0050.00317.34
8.1.100.0000.00817.43
8.1.90.0040.00417.34
8.1.80.0050.00217.35
8.1.70.0000.00717.45
8.1.60.0030.00917.58
8.1.50.0050.00317.50
8.1.40.0040.00417.50
8.1.30.0040.00417.62
8.1.20.0040.00417.64
8.1.10.0030.00517.50
8.1.00.0040.00417.39
8.0.300.0000.00718.77
8.0.290.0070.00016.63
8.0.280.0070.00018.47
8.0.270.0070.00017.12
8.0.260.0030.00316.85
8.0.250.0080.00016.88
8.0.240.0030.00316.99
8.0.230.0070.00016.89
8.0.220.0000.00716.89
8.0.210.0070.00016.90
8.0.200.0060.00016.86
8.0.190.0000.00816.96
8.0.180.0040.00416.93
8.0.170.0000.00816.96
8.0.160.0070.00016.98
8.0.150.0030.00316.82
8.0.140.0030.00316.84
8.0.130.0030.00313.24
8.0.120.0040.00416.86
8.0.110.0000.00716.93
8.0.100.0040.00416.91
8.0.90.0000.00816.93
8.0.80.0070.00716.83
8.0.70.0080.00016.86
8.0.60.0000.00716.76
8.0.50.0000.00816.68
8.0.30.0110.00517.02
8.0.20.0120.00817.40
8.0.10.0030.00516.94
8.0.00.0120.00916.84
7.4.330.0050.00015.55
7.4.320.0000.00616.38
7.4.300.0030.00316.34
7.4.290.0030.00316.38
7.4.280.0040.00416.48
7.4.270.0060.00516.48
7.4.260.0000.00716.61
7.4.250.0070.00016.43
7.4.240.0070.00016.54
7.4.230.0070.00016.40
7.4.220.0030.01416.47
7.4.210.0030.01316.36
7.4.200.0030.00316.23
7.4.160.0090.00616.41
7.4.150.0030.01517.40
7.4.140.0120.00717.86
7.4.130.0040.01316.39
7.4.120.0100.01016.44
7.4.110.0060.01216.38
7.4.100.0150.00916.48
7.4.90.0090.00916.59
7.4.80.0100.01019.39
7.4.70.0090.01216.48
7.4.60.0110.00516.34
7.4.50.0060.00916.52
7.4.40.0030.01516.41
7.4.30.0140.00916.18
7.4.00.0070.01015.11
7.3.330.0040.00413.02
7.3.320.0030.00313.16
7.3.310.0030.00316.18
7.3.300.0000.00716.25
7.3.290.0100.00516.24
7.3.280.0090.00616.25
7.3.270.0100.00717.40
7.3.260.0090.01216.47
7.3.250.0110.00716.39
7.3.240.0110.00616.39
7.3.230.0080.00816.57
7.3.210.0120.00316.25
7.3.200.0060.01216.25
7.3.190.0130.00616.57
7.3.180.0100.00716.45
7.3.170.0100.01016.28
7.3.160.0200.00416.50
7.2.330.0140.00316.52
7.2.320.0060.01116.48
7.2.310.0090.01516.48
7.2.300.0130.00316.76
7.2.290.0110.00716.43
7.2.80.0030.01016.22
7.2.60.0060.00616.46
7.1.200.0030.00915.84
7.1.80.2030.01318.02
7.1.70.0000.01517.07
7.1.60.2020.01833.21
7.1.50.1690.00834.89
7.1.40.0230.01434.52
7.1.30.2050.01632.58
7.1.20.2150.01834.61
7.1.10.1870.01316.73
7.1.00.1760.00714.90
7.0.200.1770.01614.85
7.0.190.0030.00916.39
7.0.180.1760.01314.18
7.0.170.1780.01016.18
7.0.160.1970.00916.40
7.0.150.1750.00614.31
7.0.140.0050.00916.57
7.0.130.1680.01314.53
7.0.120.1810.01414.75
7.0.110.0040.01416.09
7.0.100.1770.02014.63
7.0.90.1790.00914.69
7.0.80.0080.00816.35
7.0.70.1870.00916.21
7.0.60.0060.01215.93
7.0.50.1860.01214.68
7.0.40.1960.01314.62
7.0.30.0070.01016.69
7.0.20.0030.01316.63
7.0.10.2010.01514.54
7.0.00.0030.01316.48

preferences:
57.82 ms | 400 KiB | 5 Q