3v4l.org

run code in 300+ PHP versions simultaneously
<?php $subject = 'http://distilleryimage3_s3_amazonaws_com/8af11cdcf11e286b022000ae90285_7_jpg'; $pattern = '/(_)([^\d])/'; var_dump(preg_replace($pattern, '.\2', $subject));

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.0100.01016.63
8.3.50.0020.01517.44
8.3.40.0120.00318.88
8.3.30.0090.00618.80
8.3.20.0040.00418.90
8.3.10.0050.00320.71
8.3.00.0030.00617.50
8.2.180.0180.00416.75
8.2.170.0060.01222.96
8.2.160.0080.00521.21
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0040.00419.36
8.2.110.0040.00421.24
8.2.100.0090.00317.76
8.2.90.0100.00021.07
8.2.80.0060.00317.93
8.2.70.0060.00317.63
8.2.60.0050.00317.80
8.2.50.0000.00818.07
8.2.40.0080.00018.22
8.2.30.0000.00818.00
8.2.20.0000.00717.84
8.2.10.0000.00817.81
8.2.00.0070.00017.68
8.1.280.0100.00625.92
8.1.270.0000.00824.66
8.1.260.0050.00326.35
8.1.250.0000.00828.09
8.1.240.0090.00020.69
8.1.230.0100.00020.85
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0090.00017.23
8.1.190.0080.00017.39
8.1.180.0040.00418.10
8.1.170.0040.00418.89
8.1.160.0000.00718.76
8.1.150.0000.00818.71
8.1.140.0070.00017.59
8.1.130.0000.00717.80
8.1.120.0040.00417.44
8.1.110.0080.00017.44
8.1.100.0040.00417.56
8.1.90.0040.00417.51
8.1.80.0050.00317.55
8.1.70.0030.00317.41
8.1.60.0040.00417.54
8.1.50.0040.00417.55
8.1.40.0000.00917.54
8.1.30.0040.00417.70
8.1.20.0080.00017.80
8.1.10.0080.00017.46
8.1.00.0050.00317.51
8.0.300.0070.00319.82
8.0.290.0070.00016.75
8.0.280.0030.00318.44
8.0.270.0030.00317.25
8.0.260.0060.00016.79
8.0.250.0040.00417.06
8.0.240.0000.00716.99
8.0.230.0000.00717.03
8.0.220.0040.00416.88
8.0.210.0080.00016.80
8.0.200.0040.00417.02
8.0.190.0000.00716.96
8.0.180.0040.00417.00
8.0.170.0000.00916.88
8.0.160.0070.00016.96
8.0.150.0080.00016.84
8.0.140.0030.00716.91
8.0.130.0030.00313.44
8.0.120.0040.00416.95
8.0.110.0080.00016.86
8.0.100.0050.00316.80
8.0.90.0040.00416.96
8.0.80.0090.00617.01
8.0.70.0000.00716.84
8.0.60.0050.00216.82
8.0.50.0000.00817.02
8.0.30.0110.00717.31
8.0.20.0100.01217.22
8.0.10.0040.00417.11
8.0.00.0110.01116.83
7.4.330.0050.00013.14
7.4.320.0000.00716.75
7.4.300.0030.00316.78
7.4.290.0000.00716.76
7.4.280.0030.00616.71
7.4.270.0030.00516.64
7.4.260.0030.00313.34
7.4.250.0040.00416.70
7.4.240.0040.00416.63
7.4.230.0030.00316.65
7.4.220.0070.01116.61
7.4.210.0090.00516.72
7.4.200.0070.00016.48
7.4.190.0040.00416.92
7.4.160.0120.00316.64
7.4.150.0100.00716.53
7.4.140.0100.00716.69
7.4.130.0120.00616.65
7.4.120.0120.00716.61
7.4.110.0070.01016.63
7.4.100.0070.01316.68
7.4.90.0060.01116.64
7.4.80.0140.00619.39
7.4.70.0150.00716.51
7.4.60.0090.00716.61
7.4.50.0060.00316.51
7.4.40.0030.01316.41
7.4.30.0100.00616.48
7.4.00.0030.01414.84
7.3.330.0030.00313.16
7.3.320.0000.00613.09
7.3.310.0040.00416.33
7.3.300.0070.00016.12
7.3.290.0030.01116.30
7.3.280.0110.00816.32
7.3.270.0060.01216.36
7.3.260.0080.00816.58
7.3.250.0100.01116.59
7.3.240.0080.00816.45
7.3.230.0100.00616.29
7.3.210.0070.01016.61
7.3.200.0030.01716.33
7.3.190.0030.01316.59
7.3.180.0060.01016.54
7.3.170.0030.01516.50
7.3.160.0060.01616.52
7.3.120.0110.00715.00
7.2.330.0080.00816.52
7.2.320.0110.01116.53
7.2.310.0070.01016.69
7.2.300.0130.01016.62
7.2.290.0060.01016.55
7.2.60.0090.00616.81
7.1.200.0030.00615.89
7.1.70.0030.00517.16
7.1.60.0140.00719.40
7.1.50.0100.01317.11
7.1.00.0070.06322.56
7.0.200.0040.00716.74
7.0.140.0000.07721.92
7.0.120.0100.07022.18
7.0.60.0230.08019.86
7.0.50.0030.08317.80
7.0.40.0330.08320.26
7.0.30.0330.07320.13
7.0.20.0330.04320.06
7.0.10.0330.08320.25
7.0.00.0400.06720.12
5.6.280.0070.06720.98
5.6.210.0100.08020.47
5.6.200.0070.08018.16
5.6.190.0400.07020.64
5.6.180.0330.07720.60
5.6.170.0300.08320.57
5.6.160.0270.07320.60
5.6.150.0270.04320.18
5.6.140.0270.06020.27
5.6.130.0270.04020.28
5.6.120.0300.05020.35
5.6.110.0230.04320.11
5.6.100.0270.07320.31
5.6.90.0170.05320.42
5.6.80.0300.08019.57
5.6.70.0200.04319.65
5.6.60.0200.05319.50
5.6.50.0230.04019.79
5.6.40.0270.03319.73
5.6.30.0200.04019.74
5.6.20.0230.04719.68
5.6.10.0300.07319.79
5.6.00.0370.06319.78
5.5.350.0100.07320.41
5.5.340.0100.05017.95
5.5.330.0270.06320.40
5.5.320.0330.08720.44
5.5.310.0370.05720.40
5.5.300.0330.07719.95
5.5.290.0200.05020.08
5.5.280.0270.09019.93
5.5.270.0200.04720.11
5.5.260.0270.07020.22
5.5.250.0300.07719.74
5.5.240.0300.07719.55
5.5.230.0270.06719.31
5.5.220.0300.07319.36
5.5.210.0270.06319.59
5.5.200.0200.04019.28
5.5.190.0270.03719.61
5.5.180.0200.07719.56
5.5.160.0470.05319.48
5.5.150.0370.04719.58
5.5.140.0270.04719.43
5.5.130.0330.07319.27
5.5.120.0300.05019.55
5.5.110.0370.06719.57
5.5.100.0230.08719.16
5.5.90.0270.04319.51
5.5.80.0230.04319.43
5.5.70.0330.05319.22
5.5.60.0370.05019.41
5.5.50.0370.06319.50
5.5.40.0330.07019.54
5.5.30.0230.05319.46
5.5.20.0270.05019.21
5.5.10.0230.04319.43
5.5.00.0200.04319.42
5.4.450.0230.04719.42
5.4.440.0370.07019.51
5.4.430.0270.03719.25
5.4.420.0370.05719.32
5.4.410.0300.03719.37
5.4.400.0330.06718.92
5.4.390.0270.07319.10
5.4.380.0230.05319.08
5.4.370.0300.06719.12
5.4.360.0100.05019.08
5.4.350.0170.04019.11
5.4.340.0170.05019.08
5.4.320.0300.05018.92
5.4.310.0200.06019.09
5.4.300.0170.04018.91
5.4.290.0330.06718.79
5.4.280.0230.06019.08
5.4.270.0400.03719.09
5.4.260.0430.05719.13
5.4.250.0330.06719.07
5.4.240.0270.04019.11
5.4.230.0330.06719.00
5.4.220.0230.05319.14
5.4.210.0230.05319.16
5.4.200.0230.05319.17
5.4.190.0300.06718.78
5.4.180.0300.03019.13
5.4.170.0130.05019.08
5.4.160.0200.04018.89
5.4.150.0300.04718.77
5.4.140.0230.08016.21
5.4.130.0270.05016.16
5.4.120.0330.05716.34
5.4.110.0270.03716.25
5.4.100.0300.07016.32
5.4.90.0270.07716.29
5.4.80.0230.06016.25
5.4.70.0270.06016.21
5.4.60.0230.04016.22
5.4.50.0300.04016.38
5.4.40.0330.06016.12
5.4.30.0230.07016.34
5.4.20.0300.07016.24
5.4.10.0270.06716.23
5.4.00.0430.05315.79
5.3.290.0300.03714.60
5.3.280.0330.06314.57
5.3.270.0300.03314.62
5.3.260.0270.03314.42
5.3.250.0300.07014.48
5.3.240.0330.06714.69
5.3.230.0300.06714.49
5.3.220.0330.04314.49
5.3.210.0370.06714.57
5.3.200.0300.06014.50
5.3.190.0400.06714.52
5.3.180.0330.06714.51
5.3.170.0370.04714.44
5.3.160.0370.07014.49
5.3.150.0500.04714.43
5.3.140.0270.04714.48
5.3.130.0230.06014.33
5.3.120.0230.03714.44
5.3.110.0300.07014.47
5.3.100.0330.07014.01
5.3.90.0300.04313.95
5.3.80.0300.04713.99
5.3.70.0430.06013.82
5.3.60.0330.04714.02
5.3.50.0270.07713.89
5.3.40.0300.06713.91
5.3.30.0300.05013.70
5.3.20.0200.05313.61
5.3.10.0430.05713.50
5.3.00.0330.07013.45
5.2.170.0300.05012.69
5.2.160.0270.06012.69
5.2.150.0230.06012.69
5.2.140.0400.04312.69
5.2.130.0330.04712.69
5.2.120.0270.03312.69
5.2.110.0230.06012.69
5.2.100.0200.06012.69
5.2.90.0270.03712.69
5.2.80.0170.04312.69
5.2.70.0270.02312.69
5.2.60.0300.02012.69
5.2.50.0270.05712.69
5.2.40.0270.04012.69
5.2.30.0200.02712.69
5.2.20.0200.02712.69
5.2.10.0230.05312.69
5.2.00.0200.05312.69
5.1.60.0230.04712.69
5.1.50.0300.04312.69
5.1.40.0230.05012.69
5.1.30.0330.03012.69
5.1.20.0230.05312.69
5.1.10.0230.05012.69
5.1.00.0200.02312.69
5.0.50.0130.01712.69
5.0.40.0070.03312.69
5.0.30.0070.05712.69
5.0.20.0170.03712.69
5.0.10.0130.02712.69
5.0.00.0130.04312.69
4.4.90.0070.01712.69
4.4.80.0100.03712.69
4.4.70.0070.01712.69
4.4.60.0100.03012.69
4.4.50.0130.02312.69
4.4.40.0100.03012.69
4.4.30.0070.03012.69
4.4.20.0100.01312.69
4.4.10.0170.02712.69
4.4.00.0100.02312.69
4.3.110.0100.03312.69
4.3.100.0070.02712.69
4.3.90.0100.03312.69
4.3.80.0170.03712.69
4.3.70.0130.02012.69
4.3.60.0070.03312.69
4.3.50.0070.02712.69
4.3.40.0100.04012.69
4.3.30.0030.02012.69
4.3.20.0100.01712.69
4.3.10.0030.01712.69
4.3.00.0030.03712.69

preferences:
51.54 ms | 401 KiB | 5 Q