3v4l.org

run code in 300+ PHP versions simultaneously
<?php $filename = '/path/to/my/filename.jpg'; echo preg_replace('/(?=\.)/', '_thumb', $filename, 1);

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.10.0110.00620.25
8.5.00.0140.00822.80
8.4.150.0020.00014.05
8.4.140.0160.00517.75
8.4.130.0060.00318.02
8.4.120.0100.00920.62
8.4.110.0030.00620.73
8.4.100.0140.00718.03
8.4.90.0070.00420.46
8.4.80.0030.00520.48
8.4.70.0100.00518.84
8.4.60.0080.00920.51
8.4.50.0100.01020.48
8.4.40.0160.00319.84
8.4.30.0120.00820.49
8.4.20.0090.00917.98
8.4.10.0100.01022.13
8.3.280.0090.01218.64
8.3.270.0100.00916.63
8.3.260.0080.01216.84
8.3.250.0070.00718.60
8.3.240.0130.00616.68
8.3.230.0100.00916.74
8.3.220.0090.00520.49
8.3.210.0140.00916.94
8.3.200.0050.00516.71
8.3.190.0050.00517.17
8.3.180.0090.01018.93
8.3.170.0000.01717.16
8.3.160.0100.01016.87
8.3.150.0110.00416.69
8.3.140.0000.00816.92
8.3.130.0000.01718.52
8.3.120.0060.00320.67
8.3.110.0060.00318.46
8.3.100.0030.00618.40
8.3.90.0040.00426.77
8.3.80.0030.00618.43
8.3.70.0150.00416.75
8.3.60.0070.01116.50
8.3.50.0070.01018.26
8.3.40.0140.00721.95
8.3.30.0090.00618.83
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.290.0120.00817.27
8.2.280.0110.00818.34
8.2.270.0040.01416.59
8.2.260.0040.00416.91
8.2.250.0040.01118.48
8.2.240.0050.00316.74
8.2.230.0030.00620.94
8.2.220.0060.00324.06
8.2.210.0150.00426.77
8.2.200.0040.00416.38
8.2.190.0070.00716.88
8.2.180.0040.01125.92
8.2.170.0120.00919.16
8.2.160.0090.00622.96
8.2.150.0060.00925.66
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0040.00426.16
8.2.110.0040.00422.41
8.2.100.0090.00318.03
8.2.90.0000.00819.05
8.2.80.0060.00317.97
8.2.70.0060.00317.61
8.2.60.0040.00417.93
8.2.50.0050.00318.07
8.2.40.0000.00819.76
8.2.30.0030.00618.14
8.2.20.0050.00320.34
8.2.10.0040.00418.07
8.2.00.0040.00419.31
8.1.330.0030.00516.32
8.1.320.0080.01218.13
8.1.310.0110.00618.20
8.1.300.0070.01118.45
8.1.290.0040.00430.84
8.1.280.0090.00625.92
8.1.270.0060.00323.99
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0030.00623.88
8.1.230.0040.00722.16
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0030.00617.36
8.1.190.0050.00317.36
8.1.180.0000.00818.10
8.1.170.0040.00418.71
8.1.160.0000.00718.73
8.1.150.0000.00818.64
8.1.140.0040.00417.45
8.1.130.0070.00018.85
8.1.120.0040.00417.53
8.1.110.0040.00417.45
8.1.100.0000.00717.49
8.1.90.0030.00317.48
8.1.80.0070.00717.40
8.1.70.0090.00517.51
8.1.60.0070.01117.63
8.1.50.0080.01217.60
8.1.40.0120.00617.65
8.1.30.0050.01417.57
8.1.20.0140.00417.67
8.1.10.0090.00917.63
8.1.00.0130.00617.61
8.0.300.0040.00418.77
8.0.290.0000.00916.88
8.0.280.0050.00320.33
8.0.270.0000.00718.23
8.0.260.0000.00618.53
8.0.250.0070.00017.04
8.0.240.0030.00317.19
8.0.230.0000.00817.05
8.0.220.0030.00316.92
8.0.210.0060.00917.00
8.0.200.0100.00516.93
8.0.190.0070.00717.06
8.0.180.0090.00517.07
8.0.170.0110.00417.03
8.0.160.0090.00616.90
8.0.150.0070.00716.93
8.0.140.0120.00216.85
8.0.130.0150.00016.95
8.0.120.0100.00517.02
8.0.110.0110.00417.07
8.0.100.0130.00316.88
8.0.90.0110.00417.09
8.0.80.0070.00516.87
8.0.70.0080.00816.95
8.0.60.0030.01016.97
8.0.50.0140.00016.97
8.0.30.0140.00017.03
8.0.20.0000.01216.92
8.0.10.0030.00916.97
7.4.330.0000.00515.55
7.4.320.0030.00516.64
7.4.300.0030.00916.64
7.4.290.0090.00416.51
7.4.280.0100.00316.77
7.4.270.0070.01016.68
7.4.260.0150.00316.72
7.4.250.0120.00516.70
7.4.240.0140.00216.54
7.4.230.0140.00316.73
7.4.220.0100.00516.47
7.4.210.0110.00216.74
7.4.200.0030.01016.71
7.4.190.0120.00316.69
7.4.180.0140.00016.79
7.4.160.0110.00416.72
7.4.150.0160.00016.67
7.4.140.0150.00016.67
7.4.130.0110.00416.57
7.4.120.0000.01516.54
7.4.110.0120.00316.63
7.4.100.0060.00616.64
7.4.90.0080.00516.64
7.4.80.0030.00716.56
7.4.70.0050.00516.65
7.4.60.0030.00716.70
7.4.50.0040.00716.64
7.4.40.0110.00016.52
7.4.30.0100.00016.60
7.4.20.0030.00716.30
7.4.10.0090.00016.53
7.4.00.0040.00416.41

preferences:
42.26 ms | 403 KiB | 5 Q