3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strings = [ "ch-1268312613-photo.jpg", "foo.inc.php", ".htaccess", "no_ext", ]; var_export( preg_replace( '~^[^.]*\K\.~', '_thumb.', $strings ) );

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.30.0090.00818.92
8.5.20.0110.00719.57
8.5.10.0090.00916.55
8.5.00.0050.00420.31
8.4.180.0130.00919.63
8.4.170.0130.00823.73
8.4.160.0110.01223.25
8.4.150.0080.00416.84
8.4.140.0120.00917.64
8.4.130.0100.00717.89
8.4.120.0120.00720.47
8.4.110.0060.01020.84
8.4.100.0130.00818.69
8.4.90.0090.01118.85
8.4.80.0150.00518.74
8.4.70.0040.00418.02
8.4.60.0070.00218.73
8.4.50.0110.00919.75
8.4.40.0120.00417.89
8.4.30.0040.00420.52
8.4.20.0160.00318.00
8.4.10.0090.00019.51
8.3.300.0100.00920.98
8.3.290.0090.01220.99
8.3.280.0130.00720.29
8.3.270.0110.00816.67
8.3.260.0120.00716.59
8.3.250.0120.00718.59
8.3.240.0070.00317.07
8.3.230.0090.00316.76
8.3.220.0120.00619.01
8.3.210.0130.00616.62
8.3.200.0050.00416.58
8.3.190.0110.00717.36
8.3.180.0130.00516.79
8.3.170.0150.00319.02
8.3.160.0000.01518.34
8.3.150.0070.01120.53
8.3.140.0060.00916.56
8.3.130.0080.00018.34
8.3.120.0040.00418.87
8.3.110.0040.00420.94
8.3.100.0050.00524.06
8.3.90.0110.00426.77
8.3.80.0040.00416.63
8.3.70.0160.00616.63
8.3.60.0060.00818.43
8.3.50.0150.00418.12
8.3.40.0110.00418.79
8.3.30.0090.01218.71
8.3.20.0040.00424.18
8.3.10.0000.00824.66
8.3.00.0040.00426.16
8.2.300.0090.01118.10
8.2.290.0120.00620.33
8.2.280.0070.00318.37
8.2.270.0110.00717.42
8.2.260.0000.00718.53
8.2.250.0080.00016.45
8.2.240.0060.01318.90
8.2.230.0080.00022.58
8.2.220.0080.00037.54
8.2.210.0090.00026.77
8.2.200.0060.00316.75
8.2.190.0070.00716.88
8.2.180.0070.01125.92
8.2.170.0100.01018.75
8.2.160.0110.00322.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0000.00721.00
8.2.110.0070.00420.57
8.2.100.0060.00917.91
8.2.90.0040.00417.88
8.2.80.0080.00018.74
8.2.70.0000.00817.75
8.2.60.0060.00317.90
8.2.50.0060.00318.07
8.2.40.0060.00320.01
8.2.30.0020.00518.02
8.2.20.0070.00020.64
8.2.10.0000.00717.64
8.2.00.0050.00319.20
8.1.340.0130.00617.68
8.1.330.0070.01221.92
8.1.320.0080.01216.53
8.1.310.0070.00718.38
8.1.300.0160.00016.16
8.1.290.0060.00330.84
8.1.280.0120.00325.92
8.1.270.0040.00423.99
8.1.260.0130.00726.35
8.1.250.0080.00028.09
8.1.240.0090.00020.96
8.1.230.0080.00417.77
8.1.220.0040.00417.74
8.1.210.0050.00518.77
8.1.200.0060.00317.35
8.1.190.0000.01017.23
8.1.180.0000.00818.10
8.1.170.0040.00418.61
8.1.160.0040.00418.86
8.1.150.0040.00418.63
8.1.140.0050.00317.59
8.1.130.0070.00018.75
8.1.120.0070.00017.50
8.1.110.0060.00317.52
8.1.100.0020.00517.52
8.1.90.0000.00717.59
8.1.80.0000.01017.44
8.1.70.0000.00717.44
8.1.60.0040.00417.71
8.1.50.0030.00617.59
8.1.40.0040.00417.65
8.1.30.0030.00617.56
8.1.20.0000.00717.57
8.1.10.0030.00517.59
8.1.00.0000.00917.46
8.0.300.0040.00418.77
8.0.290.0080.00016.75
8.0.280.0080.00018.39
8.0.270.0060.00318.13
8.0.260.0060.00018.39
8.0.250.0000.00716.95
8.0.240.0000.00717.06
8.0.230.0000.00816.93
8.0.220.0030.00316.93
8.0.210.0000.00716.96
8.0.200.0030.00317.07
8.0.190.0030.00617.02
8.0.180.0070.00317.05
8.0.170.0080.00016.95
8.0.160.0030.00617.09
8.0.150.0000.00816.88
8.0.140.0000.00816.91
8.0.130.0150.00516.91
8.0.120.0070.00717.03
8.0.110.0100.01017.02
8.0.100.0040.00816.73
8.0.90.0080.00316.88
8.0.80.0080.00416.97
8.0.70.0110.00616.96
8.0.60.0050.00716.98
8.0.50.0110.00016.83
8.0.30.0130.00616.89
8.0.20.0170.00317.10
8.0.10.0160.00317.12
8.0.00.0120.00017.03
7.4.330.0000.00515.55
7.4.320.0000.00716.56
7.4.300.0040.00416.62
7.4.290.0070.00016.59
7.4.280.0000.00716.77
7.4.270.0000.00716.70
7.4.260.0030.00516.75
7.4.250.0190.00316.79
7.4.240.0050.01616.64
7.4.230.0180.00416.83
7.4.220.0050.00516.68
7.4.210.0050.01016.68
7.4.200.0140.00016.68
7.4.190.0090.01016.63
7.4.180.0140.00416.67
7.4.160.0120.00616.58
7.4.150.0120.00616.81
7.4.140.0120.00616.64
7.4.130.0150.00416.50
7.4.120.0110.00416.63
7.4.110.0130.00016.38
7.4.100.0090.00516.70
7.4.90.0120.00016.42
7.4.80.0110.00316.54
7.4.70.0130.00316.30
7.4.60.0090.00916.48
7.4.50.0080.00516.51
7.4.40.0090.00616.53
7.4.30.0090.00516.32
7.4.20.0100.00016.35
7.4.10.0120.00016.22
7.4.00.0120.00416.57
7.3.330.0130.00316.21
7.3.320.0150.00416.14
7.3.310.0070.00416.09
7.3.300.0110.00516.10
7.3.290.0130.00416.09
7.3.280.0160.00316.24
7.3.270.0180.00316.09
7.3.260.0200.00016.38
7.3.250.0080.01216.29
7.3.240.0170.00416.26
7.3.230.0180.00016.40
7.3.220.0120.00916.17
7.3.210.0180.00316.06
7.3.200.0090.00516.23
7.3.190.0120.00816.19
7.3.180.0160.00316.31
7.3.170.0140.00616.03
7.3.160.0190.00016.21
7.3.150.0130.00616.17
7.3.140.0170.00316.27
7.3.130.0170.00316.15

preferences:
58.66 ms | 1350 KiB | 5 Q