3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "regex!"; $term = "16656400-k"; $term = preg_replace('/-\d/', '', $term); $term = preg_replace('/-/', '', $term); echo $term;

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.0070.00718.43
8.3.50.0130.00621.99
8.3.40.0090.00618.79
8.3.30.0140.00019.08
8.3.20.0050.00320.29
8.3.10.0040.00421.96
8.3.00.0060.00322.31
8.2.180.0000.01516.88
8.2.170.0110.00322.96
8.2.160.0100.00320.98
8.2.150.0060.00324.18
8.2.140.0000.00824.66
8.2.130.0000.00826.16
8.2.120.0080.00017.63
8.2.110.0030.00622.25
8.2.100.0080.00419.25
8.2.90.0040.00419.13
8.2.80.0080.00017.97
8.2.70.0090.00017.63
8.2.60.0000.00818.05
8.2.50.0050.00318.07
8.2.40.0070.00018.22
8.2.30.0070.00018.13
8.2.20.0040.00417.86
8.2.10.0050.00317.77
8.2.00.0030.00817.76
8.1.280.0110.00725.92
8.1.270.0000.00822.24
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.81
8.1.230.0080.00419.13
8.1.220.0040.00417.80
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0050.00317.39
8.1.180.0040.00418.64
8.1.170.0000.00818.62
8.1.160.0020.00521.84
8.1.150.0000.00718.71
8.1.140.0040.00417.51
8.1.130.0030.00617.80
8.1.120.0070.00017.59
8.1.110.0040.00417.60
8.1.100.0000.00717.54
8.1.90.0040.00417.44
8.1.80.0040.00417.41
8.1.70.0030.00617.56
8.1.60.0080.00017.57
8.1.50.0000.00817.61
8.1.40.0040.00417.51
8.1.30.0000.00817.69
8.1.20.0000.00917.63
8.1.10.0050.00217.56
8.1.00.0040.00417.57
8.0.300.0020.00518.77
8.0.290.0070.00017.18
8.0.280.0070.00018.46
8.0.270.0050.00317.18
8.0.260.0000.00716.95
8.0.250.0030.00316.97
8.0.240.0090.00017.06
8.0.230.0000.00816.89
8.0.220.0070.00017.03
8.0.210.0060.00016.95
8.0.200.0000.00616.93
8.0.190.0040.00416.92
8.0.180.0000.00717.02
8.0.170.0060.00316.89
8.0.160.0000.00716.95
8.0.150.0040.00416.98
8.0.140.0000.00716.96
8.0.130.0030.00313.44
8.0.120.0060.00316.88
8.0.110.0000.00716.93
8.0.100.0030.00616.96
8.0.90.0000.00716.84
8.0.80.0120.00916.96
8.0.70.0040.00416.95
8.0.60.0040.00416.99
8.0.50.0070.00016.96
8.0.30.0140.00617.27
8.0.20.0110.00717.40
8.0.10.0070.00017.14
8.0.00.0110.00516.84
7.4.330.0030.00315.11
7.4.320.0000.00616.73
7.4.300.0030.00316.76
7.4.290.0030.00316.66
7.4.280.0030.00316.63
7.4.270.0000.00616.63
7.4.260.0090.00016.56
7.4.250.0040.00416.64
7.4.240.0040.00316.64
7.4.230.0000.00716.48
7.4.220.0090.01316.68
7.4.210.0100.00916.74
7.4.200.0040.00416.65
7.4.190.0050.00216.79
7.4.160.0110.00416.57
7.4.150.0100.00717.40
7.4.140.0110.00917.86
7.4.130.0110.00716.51
7.4.120.0140.00716.60
7.4.110.0030.01316.46
7.4.100.0120.00916.52
7.4.90.0120.00616.35
7.4.80.0140.01019.39
7.4.70.0030.01216.67
7.4.60.0030.01216.78
7.4.50.0020.00216.65
7.4.40.0070.00722.77
7.4.30.0140.00616.40
7.4.00.0040.01115.19
7.3.330.0000.00613.03
7.3.320.0020.00213.18
7.3.310.0000.00716.19
7.3.300.0060.00016.34
7.3.290.0100.00316.32
7.3.280.0070.01016.34
7.3.270.0120.01217.40
7.3.260.0130.01016.65
7.3.250.0110.00916.62
7.3.240.0000.01816.47
7.3.230.0070.01016.49
7.3.210.0060.01116.48
7.3.200.0100.01019.39
7.3.190.0170.00716.39
7.3.180.0100.00516.46
7.3.170.0220.00016.74
7.3.160.0090.00616.39
7.3.120.0070.01015.07
7.2.330.0140.00316.85
7.2.320.0120.00816.70
7.2.310.0050.01316.83
7.2.300.0060.01216.68
7.2.290.0090.00916.77
7.2.00.0040.00819.71
7.1.100.0060.00618.37
7.1.70.0050.00317.33
7.1.60.0070.01719.82
7.1.50.0120.01217.29
7.1.00.0000.08022.45
7.0.200.0030.00716.89
7.0.140.0070.07021.98
7.0.60.0030.09020.00
7.0.50.0000.07317.68
7.0.40.0070.07320.25
7.0.30.0530.07320.00
7.0.20.0270.08320.20
7.0.10.0000.05720.10
7.0.00.0030.04020.31
5.6.280.0100.06721.14
5.6.210.0030.08320.64
5.6.200.0030.05718.16
5.6.190.0130.08020.32
5.6.180.0230.04720.43
5.6.170.0100.04720.50
5.6.160.0100.04020.40
5.6.150.0070.03718.13
5.6.140.0130.07318.15
5.6.130.0070.04318.07
5.6.120.0070.08320.98
5.6.110.0200.06020.98
5.6.100.0100.08321.09
5.6.90.0070.05721.03
5.6.80.0000.08720.37
5.6.70.4530.03020.35
5.5.350.0130.07720.37
5.5.340.0000.06317.91
5.5.330.0100.05320.14
5.5.320.0300.07020.23
5.5.310.0330.07720.24
5.5.300.0070.08018.00
5.5.290.0000.04317.87
5.5.280.0100.06020.64
5.5.270.0100.07320.75
5.5.260.0030.08720.68
5.5.250.0030.04020.68
5.5.240.0070.08020.25
5.4.450.0100.04319.46
5.4.440.0100.04319.41
5.4.430.0270.02719.13
5.4.420.0070.04719.56
5.4.410.0030.04719.00
5.4.400.0070.04019.14
5.4.390.0170.03318.82
5.4.380.0170.03318.93
5.4.370.0070.04719.22
5.4.360.0130.03718.79
5.4.350.0100.04019.09
5.4.340.0230.04319.13
5.4.320.0130.06019.13
5.4.310.0230.06318.81
5.4.300.0230.07718.92
5.4.290.0200.05018.80
5.4.280.0130.08019.21
5.4.270.0230.07719.13
5.4.260.0200.07019.13
5.4.250.0230.04019.09
5.4.240.0070.05019.13
5.4.230.0330.03718.91
5.4.220.0200.04019.21
5.4.210.0200.03719.12
5.4.200.0170.05319.24
5.4.190.0230.03718.91
5.4.180.0200.08018.84
5.4.170.0300.05319.20
5.4.160.0270.05718.78
5.4.150.0230.05719.04
5.4.140.0230.07016.27
5.4.130.0300.06716.35
5.4.120.0170.07016.26
5.4.110.0270.05316.23
5.4.100.0230.07316.41
5.4.90.0230.03716.51
5.4.80.0270.04016.48
5.4.70.0230.06316.23
5.4.60.0270.03016.03
5.4.50.0200.03716.34
5.4.40.0130.07016.03
5.4.30.0300.06016.38
5.4.20.0230.07316.20
5.4.10.0200.04316.17
5.4.00.0170.05315.71
5.3.290.0130.04714.70
5.3.280.0230.07014.46
5.3.270.0230.05314.46
5.3.260.0100.05714.53
5.3.250.0230.07014.64
5.3.240.0230.07014.69
5.3.230.0200.07314.45
5.3.220.0200.07314.46
5.3.210.0270.03014.49
5.3.200.0330.03714.40
5.3.190.0200.04314.47
5.3.180.0300.04314.51
5.3.170.0200.07314.50
5.3.160.0230.03714.51
5.3.150.0200.03714.43
5.3.140.0200.07314.46
5.3.130.0230.06314.63
5.3.120.0230.05014.38
5.3.110.0170.04714.48
5.3.100.0200.07313.87
5.3.90.0200.05013.85
5.3.80.0270.04313.95
5.3.70.0270.05014.06
5.3.60.0330.06013.91
5.3.50.0230.07013.99
5.3.40.0300.04013.80
5.3.30.0270.06313.84
5.3.20.0300.06013.80
5.3.10.0230.05713.68
5.3.00.0270.06313.68
5.2.170.0200.03012.22
5.2.160.0170.03712.22
5.2.150.0170.04012.22
5.2.140.0230.05712.22
5.2.130.0130.06312.22
5.2.120.0170.05712.22
5.2.110.0200.02712.22
5.2.100.0170.04312.22
5.2.90.0200.03712.22
5.2.80.0130.03312.22
5.2.70.0170.06012.22
5.2.60.0170.05712.22
5.2.50.0170.03712.22
5.2.40.0170.04312.22
5.2.30.0070.04312.22
5.2.20.0170.05712.22
5.2.10.0130.03712.22
5.2.00.0170.02712.22
5.1.60.0170.04312.22
5.1.50.0130.03312.22
5.1.40.0130.03312.22
5.1.30.0100.02712.22
5.1.20.0100.02712.22
5.1.10.0270.03712.22
5.1.00.0100.04312.22
5.0.50.0030.05012.22
5.0.40.0070.02312.22
5.0.30.0170.05312.22
5.0.20.0070.03012.22
5.0.10.0100.03012.22
5.0.00.0130.03312.22
4.4.90.0070.01312.22
4.4.80.0100.02012.22
4.4.70.0100.02312.22
4.4.60.0100.01712.22
4.4.50.0100.02012.22
4.4.40.0030.04012.22
4.4.30.0130.01712.22
4.4.20.0070.03712.22
4.4.10.0070.02312.22
4.4.00.0100.02712.22
4.3.110.0100.03312.22
4.3.100.0100.02312.22
4.3.90.0070.03312.22
4.3.80.0130.04712.22
4.3.70.0100.02712.22
4.3.60.0130.02712.22
4.3.50.0030.02312.22
4.3.40.0200.04012.22
4.3.30.0000.03712.22
4.3.20.0030.03712.22
4.3.10.0030.03312.22
4.3.00.0070.03012.22

preferences:
39.79 ms | 401 KiB | 5 Q