3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = '</p><p><a rel="nofollow" class="external text" href="http://10.20.0.30:1234/index.php/this_is_an_example.html">How_to_sample.</a>'; $pattern = '~(?:\G|\Qhttp://10.20.0.30:1234/index.php\E[^_]+)\K_([^_.]*)~'; echo preg_replace($pattern, " $1", $input);

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.4.140.0080.01317.51
8.4.130.0120.00919.84
8.4.120.0070.00420.83
8.4.110.0120.00822.54
8.4.100.0110.01017.71
8.4.90.0130.00618.76
8.4.80.0070.00317.96
8.4.70.0110.00917.78
8.4.60.0090.01018.75
8.4.50.0130.00717.88
8.4.40.0110.00017.62
8.4.30.0130.00917.64
8.4.20.0190.00020.48
8.4.10.0090.00019.63
8.3.270.0100.01016.57
8.3.260.0060.00316.30
8.3.250.0090.00919.04
8.3.240.0140.00816.59
8.3.230.0120.00716.82
8.3.220.0040.00417.14
8.3.210.0110.00816.54
8.3.200.0050.00416.72
8.3.190.0120.00618.84
8.3.180.0120.00618.45
8.3.170.0030.01318.79
8.3.160.0110.00718.35
8.3.150.0060.01220.63
8.3.140.0120.00616.68
8.3.130.0090.00618.53
8.3.120.0090.00318.68
8.3.110.0000.00920.94
8.3.100.0050.00320.34
8.3.90.0050.00216.54
8.3.80.0060.00318.56
8.3.70.0060.01016.50
8.3.60.0070.01116.50
8.3.50.0110.00718.51
8.3.40.0120.00318.96
8.3.30.0110.00418.79
8.3.20.0040.00420.77
8.3.10.0050.00321.78
8.3.00.0090.00019.51
8.2.290.0090.01120.59
8.2.280.0080.00820.20
8.2.270.0150.00417.46
8.2.260.0090.00918.52
8.2.250.0070.01118.38
8.2.240.0090.00316.92
8.2.230.0050.00322.58
8.2.220.0000.00924.06
8.2.210.0080.00026.77
8.2.200.0040.00818.54
8.2.190.0040.01118.42
8.2.180.0110.00316.75
8.2.170.0070.00722.96
8.2.160.0110.00321.06
8.2.150.0030.00524.18
8.2.140.0180.00024.66
8.2.130.0080.00018.09
8.2.120.0000.00926.35
8.2.110.0060.00322.08
8.2.100.0060.00617.97
8.2.90.0040.00417.91
8.2.80.0080.00017.97
8.2.70.0070.00317.79
8.2.60.0050.00218.03
8.2.50.0040.00418.10
8.2.40.0000.00821.27
8.2.30.0030.00519.15
8.2.20.0000.00718.04
8.2.10.0030.00519.16
8.2.00.0030.00317.90
8.1.330.0080.01121.60
8.1.320.0120.00716.53
8.1.310.0050.00316.81
8.1.300.0080.00818.10
8.1.290.0050.00518.88
8.1.280.0060.01025.92
8.1.270.0060.00319.00
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0090.00317.48
8.1.230.0060.00720.89
8.1.220.0060.00317.74
8.1.210.0040.00418.78
8.1.200.0060.00317.35
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0000.00918.67
8.1.160.0000.00718.87
8.1.150.0060.00618.85
8.1.140.0040.00418.77
8.1.130.0030.00320.02
8.1.120.0000.00817.56
8.1.110.0040.00417.49
8.1.100.0000.00917.59
8.1.90.0060.00317.53
8.1.80.0030.00517.58
8.1.70.0050.00217.61
8.1.60.0060.00617.71
8.1.50.0060.00317.66
8.1.40.0060.00317.64
8.1.30.0000.00817.70
8.1.20.0030.00617.76
8.1.10.0040.00417.57
8.1.00.0040.00417.46
8.0.300.0070.00019.84
8.0.290.0100.00216.58
8.0.280.0000.00818.47
8.0.270.0030.00316.91
8.0.260.0060.00018.42
8.0.250.0040.00716.98
8.0.240.0040.00417.13
8.0.230.0000.00717.00
8.0.220.0000.00716.97
8.0.210.0000.00916.96
8.0.200.0070.00017.02
8.0.190.0000.00816.91
8.0.180.0040.00417.03
8.0.170.0000.00816.89
8.0.160.0070.00017.07
8.0.150.0040.00416.97
8.0.140.0040.00416.83
8.0.130.0000.00513.45
8.0.120.0040.00416.89
8.0.110.0050.00317.03
8.0.100.0030.00516.82
8.0.90.0040.00416.85
8.0.80.0080.00916.94
8.0.70.0110.01117.01
8.0.60.0110.01116.90
8.0.50.0090.01416.83
8.0.30.0080.01117.16
8.0.20.0130.00417.29
8.0.10.0030.01317.06
8.0.00.0100.00816.93
7.4.330.0000.00615.55
7.4.320.0030.00316.71
7.4.300.0070.00016.76
7.4.290.0000.00716.65
7.4.280.0000.00816.57
7.4.270.0030.00316.80
7.4.260.0030.00516.69
7.4.250.0040.00416.62
7.4.240.0030.00316.57
7.4.230.0050.00316.65
7.4.220.0000.00816.83
7.4.210.0080.01216.69
7.4.200.0120.00316.77
7.4.190.0160.00416.75
7.4.180.0090.01116.60
7.4.160.0100.00716.62
7.4.150.0120.00916.77
7.4.140.0100.00617.31
7.4.130.0090.01116.70
7.4.120.0060.01116.68
7.4.110.0030.01616.66
7.4.100.0140.00716.72
7.4.90.0110.00816.73
7.4.80.0090.00818.07
7.4.70.0050.01316.66
7.4.60.0050.01016.71
7.4.50.0080.00916.60
7.4.40.0110.00716.60
7.4.30.0150.00316.60
7.4.20.0130.00316.54
7.4.10.0060.00916.79
7.4.00.0050.01215.65
7.3.330.0050.00013.09
7.3.320.0000.00613.12
7.3.310.0030.00316.14
7.3.300.0070.00016.19
7.3.290.0100.00516.28
7.3.280.0030.01216.37
7.3.270.0120.00416.36
7.3.260.0130.01016.39
7.3.250.0150.00916.41
7.3.240.0070.01216.42
7.3.230.0160.00516.43
7.3.220.0160.00916.25
7.3.210.0080.01016.36
7.3.200.0080.00916.43
7.3.190.0120.01016.27
7.3.180.0060.01016.25
7.3.170.0120.00816.31
7.3.160.0120.00716.29
7.3.150.0080.01116.20
7.3.140.0070.01116.23
7.3.130.0040.01116.23
7.3.120.0090.00815.55
7.3.110.0100.00515.63
7.3.100.0080.01015.51
7.3.90.0050.01015.87
7.3.80.0060.00815.68
7.3.70.0070.01015.69
7.3.60.0060.01115.75
7.3.50.0040.01015.67
7.3.40.0070.01015.65
7.3.30.0060.00815.63
7.3.20.0090.01116.49
7.3.10.0520.00416.04
7.3.00.0440.00715.98
7.2.340.0200.00616.49
7.2.330.0080.01416.60
7.2.320.0170.01016.59
7.2.310.0140.00916.60
7.2.300.0140.00816.47
7.2.290.0090.01716.58
7.2.280.0210.00616.53
7.2.270.0140.01416.46
7.2.260.0190.01016.59
7.2.250.0180.00415.76
7.2.240.0080.01515.64
7.2.230.0140.00915.78
7.2.220.0070.01215.67
7.2.210.0070.01215.84
7.2.200.0120.01115.82
7.2.190.0140.00715.81
7.2.180.0110.00715.77
7.2.170.0120.00815.81
7.2.160.0180.01216.62
7.2.150.0120.01316.58
7.2.140.0130.01316.65
7.2.130.0490.00815.90
7.2.120.0600.00515.79
7.2.110.0530.01115.77
7.2.100.0520.00915.93
7.2.90.0540.00715.81
7.2.80.0490.00815.95
7.2.70.0880.01015.88
7.2.60.0610.00915.88
7.2.50.0490.00515.89
7.2.40.0600.00715.81
7.2.30.0580.00215.90
7.2.20.1030.00015.76
7.2.10.0660.00815.73
7.2.00.0780.01015.91
7.1.330.0150.00815.82
7.1.320.0150.00515.77
7.1.310.0090.00715.90
7.1.300.0130.00715.68
7.1.290.0160.01015.71
7.1.280.0090.00715.85
7.1.270.0070.01315.61
7.1.260.0100.00815.70
7.1.250.0750.00514.79
7.1.240.0140.00815.50
7.1.230.0150.00915.63
7.1.220.0210.00315.59
7.1.210.0220.00415.52
7.1.200.0160.00815.48
7.1.190.0110.01115.54
7.1.180.0160.00615.52
7.1.170.0120.00915.48
7.1.160.0250.01015.43
7.1.150.0670.01415.68
7.1.140.0160.00915.48
7.1.130.0190.00515.57
7.1.120.0130.01015.56
7.1.110.0150.00715.60
7.1.100.0130.00915.76
7.1.90.0150.00815.59
7.1.80.0070.02015.66
7.1.70.0150.00815.45
7.1.60.0150.00715.66
7.1.50.0120.01215.66
7.1.40.0210.00315.69
7.1.30.0150.00915.72
7.1.20.0090.01415.79
7.1.10.0100.01315.54
7.1.00.0130.01015.44

preferences:
30.86 ms | 403 KiB | 5 Q