3v4l.org

run code in 500+ PHP versions simultaneously
<?php $re = '`\bhttps?\K(?=//)`m'; $str = 'https//example.com'; $subst = ':'; echo preg_replace($re, $subst, $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.5.70.0060.00216.97
8.5.60.0100.00817.05
8.5.50.0040.00416.89
8.5.30.0140.00818.90
8.5.20.0040.00419.51
8.5.10.0110.00618.74
8.5.00.0130.00920.11
8.4.210.0140.00819.68
8.4.180.0120.00919.82
8.4.170.0140.01020.55
8.4.160.0150.00823.93
8.4.150.0070.00716.93
8.4.140.0130.00817.62
8.4.130.0120.00918.15
8.4.120.0090.01124.16
8.4.110.0120.00718.24
8.4.100.0140.00618.64
8.4.90.0090.00820.76
8.4.80.0110.00920.43
8.4.70.0120.00818.20
8.4.60.0130.00718.91
8.4.50.0120.00918.47
8.4.40.0060.00317.95
8.4.30.0150.00420.13
8.4.20.0060.00317.95
8.4.10.0120.00821.96
8.3.300.0150.00720.85
8.3.290.0150.00420.73
8.3.280.0130.00718.35
8.3.270.0120.00916.86
8.3.260.0100.00916.85
8.3.250.0070.00318.85
8.3.240.0130.00516.95
8.3.230.0080.00416.79
8.3.220.0080.00818.88
8.3.210.0090.00616.66
8.3.200.0050.00416.66
8.3.190.0100.00817.08
8.3.180.0110.00717.23
8.3.170.0070.01118.79
8.3.160.0110.00716.98
8.3.150.0070.01116.95
8.3.140.0120.00616.71
8.3.130.0030.00716.68
8.3.120.0030.00620.60
8.3.110.0100.01020.94
8.3.100.0060.00316.63
8.3.90.0070.00726.77
8.3.80.0080.00416.75
8.3.70.0140.00316.63
8.3.60.0060.00916.50
8.3.50.0040.01120.08
8.3.40.0110.00420.30
8.3.30.0070.00718.84
8.3.20.0050.00324.18
8.3.10.0040.00424.66
8.3.00.0000.00826.16
8.2.300.0110.00922.13
8.2.290.0120.00720.43
8.2.280.0090.01018.73
8.2.270.0080.01117.07
8.2.260.0080.00016.54
8.2.250.0080.00016.78
8.2.240.0040.00419.06
8.2.230.0130.00622.58
8.2.220.0080.00624.06
8.2.210.0060.01226.77
8.2.200.0000.01018.54
8.2.190.0140.00716.58
8.2.180.0070.00725.92
8.2.170.0040.01119.16
8.2.160.0070.01122.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0070.00726.16
8.2.120.0040.00421.13
8.2.110.0000.01021.18
8.2.100.0060.00618.09
8.2.90.0050.00318.03
8.2.80.0000.00817.97
8.2.70.0000.01017.50
8.2.60.0000.00817.80
8.2.50.0060.00618.07
8.2.40.0060.00319.84
8.2.30.0030.00618.14
8.2.20.0050.00220.36
8.2.10.0030.00618.02
8.2.00.0070.00019.25
8.1.340.0150.00917.76
8.1.330.0110.00721.72
8.1.320.0070.00316.21
8.1.310.0140.00318.30
8.1.300.0060.00316.25
8.1.290.0080.00330.84
8.1.280.0060.00925.92
8.1.270.0090.00324.02
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00322.54
8.1.230.0040.00720.97
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0070.00317.36
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0040.00418.67
8.1.160.0040.00418.75
8.1.150.0050.00218.73
8.1.140.0070.00017.45
8.1.130.0040.00418.72
8.1.120.0000.00717.57
8.1.110.0040.00417.42
8.1.100.0040.00417.49
8.1.90.0040.00417.59
8.1.80.0070.00717.53
8.1.70.0100.00517.47
8.1.60.0130.00417.52
8.1.50.0130.00317.59
8.1.40.0150.00317.61
8.1.30.0210.00017.61
8.1.20.0190.00017.70
8.1.10.0000.01817.65
8.1.00.0190.00017.53
8.0.300.0000.00720.03
8.0.290.0040.00416.88
8.0.280.0080.00018.45
8.0.270.0050.00318.26
8.0.260.0040.00418.42
8.0.250.0000.00817.06
8.0.240.0000.00617.03
8.0.230.0060.00317.15
8.0.220.0030.00317.07
8.0.210.0040.00417.03
8.0.200.0080.00816.98
8.0.190.0070.00717.12
8.0.180.0060.00917.04
8.0.170.0080.00817.09
8.0.160.0130.00217.00
8.0.150.0100.00716.95
8.0.140.0040.01316.98
8.0.130.0120.00417.07
8.0.120.0120.00416.95
8.0.110.0090.00716.95
8.0.100.0120.00516.85
8.0.90.0130.00216.99
8.0.80.0140.00216.90
8.0.70.0160.00016.88
8.0.60.0100.00616.87
8.0.50.0040.01216.86
8.0.30.0100.00716.77
8.0.20.0040.01117.05
8.0.10.0060.01017.10
7.4.330.0030.00315.55
7.4.320.0000.00616.68
7.4.300.0150.00416.63
7.4.290.0100.00716.72
7.4.280.0090.00816.75
7.4.270.0140.00216.64
7.4.260.0120.00416.76
7.4.250.0080.00716.63
7.4.240.0130.00316.62
7.4.230.0090.00516.70
7.4.220.0080.00316.71
7.4.210.0100.00416.66
7.4.200.0090.00316.63
7.4.190.0140.00016.70
7.4.180.0060.00616.77
7.4.160.0070.00716.59
7.4.150.0080.00516.59
7.4.140.0150.00016.62
7.4.130.0110.00316.66
7.4.120.0090.00616.50
7.4.110.0110.00416.73
7.4.100.0140.00216.58
7.4.90.0040.01116.63
7.4.80.0120.00316.71
7.4.70.0130.00316.74
7.4.60.0110.00416.63
7.4.50.0090.00616.62
7.4.40.0050.01116.51
7.4.30.0120.00316.63
7.4.20.0150.00016.49
7.4.10.0130.00216.46
7.4.00.0120.00516.55

preferences:
48.21 ms | 1247 KiB | 5 Q