3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/(text)(?!<\/a>)/m'; $str = 'this is sample text about something what is text. this is sample <a href=\'somelink.php\'>text</a> about something what is <a href=\'somelink.php\'>text</a>.'; $subst = '<a href=\'somelink.php\'>$1</a>'; $result = preg_replace($re, $subst, $str); echo $result;

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.0120.01017.84
8.4.130.0120.00919.47
8.4.120.0080.00220.63
8.4.110.0130.00722.50
8.4.100.0100.01018.05
8.4.90.0140.00618.48
8.4.80.0050.00519.04
8.4.70.0080.01118.09
8.4.60.0070.00818.89
8.4.50.0030.00618.66
8.4.40.0140.00719.73
8.4.30.0100.00018.00
8.4.20.0060.00920.39
8.4.10.0040.00417.66
8.3.270.0090.01016.64
8.3.260.0060.00216.75
8.3.250.0110.00918.76
8.3.240.0050.00416.45
8.3.230.0090.01016.65
8.3.220.0030.00518.80
8.3.210.0110.00418.52
8.3.200.0020.00716.48
8.3.190.0100.00817.18
8.3.180.0120.00617.23
8.3.170.0110.00422.49
8.3.160.0070.01117.21
8.3.150.0080.00018.67
8.3.140.0090.00618.49
8.3.130.0000.00818.47
8.3.120.0050.00318.79
8.3.110.0070.00720.94
8.3.100.0040.00424.06
8.3.90.0100.00026.77
8.3.80.0030.00618.56
8.3.70.0070.01116.50
8.3.60.0070.00718.30
8.3.50.0050.00818.48
8.3.40.0030.01319.05
8.3.30.0120.00318.54
8.3.20.0040.00419.20
8.3.10.0050.00321.85
8.3.00.0040.00420.77
8.2.290.0060.00320.29
8.2.280.0120.00718.24
8.2.270.0090.00919.01
8.2.260.0080.00016.56
8.2.250.0100.00616.60
8.2.240.0060.00316.89
8.2.230.0000.00822.58
8.2.220.0060.00337.54
8.2.210.0100.00621.21
8.2.200.0000.01017.00
8.2.190.0040.01418.57
8.2.180.0150.00316.75
8.2.170.0110.00322.96
8.2.160.0060.00920.43
8.2.150.0050.00325.66
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0080.00020.81
8.2.110.0160.00618.96
8.2.100.0090.00317.84
8.2.90.0080.00019.09
8.2.80.0030.00517.97
8.2.70.0080.00017.93
8.2.60.0000.00818.22
8.2.50.0030.00518.10
8.2.40.0030.00619.32
8.2.30.0090.00619.38
8.2.20.0060.00418.48
8.2.10.0000.00718.25
8.2.00.0050.00219.48
8.1.330.0130.00621.68
8.1.320.0030.00516.09
8.1.310.0090.00616.67
8.1.300.0090.00918.10
8.1.290.0030.00630.84
8.1.280.0120.00925.92
8.1.270.0070.00022.18
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00922.42
8.1.230.0040.00817.64
8.1.220.0030.00517.79
8.1.210.0000.00818.77
8.1.200.0090.00017.35
8.1.190.0080.00017.35
8.1.180.0040.00418.10
8.1.170.0080.00018.63
8.1.160.0000.00818.79
8.1.150.0000.00918.81
8.1.140.0000.00722.16
8.1.130.0070.00017.63
8.1.120.0030.00417.61
8.1.110.0030.00717.43
8.1.100.0040.00417.54
8.1.90.0030.00517.54
8.1.80.0020.00917.50
8.1.70.0050.00617.44
8.1.60.0090.00417.41
8.1.50.0060.00717.52
8.1.40.0110.00117.61
8.1.30.0130.00117.71
8.1.20.0080.00517.65
8.1.10.0090.00417.61
8.1.00.0090.00417.53
8.0.300.0040.00419.90
8.0.290.0050.00316.75
8.0.280.0030.00518.47
8.0.270.0070.00016.87
8.0.260.0030.00316.99
8.0.250.0000.00717.12
8.0.240.0070.00016.96
8.0.230.0030.00317.03
8.0.220.0000.01116.95
8.0.210.0090.00216.95
8.0.200.0040.00717.00
8.0.190.0070.00517.07
8.0.180.0050.00616.95
8.0.170.0050.00616.94
8.0.160.0060.00816.92
8.0.150.0070.00416.94
8.0.140.0100.00216.80
8.0.130.0050.00515.14
8.0.120.0060.00516.94
8.0.110.0090.00216.95
8.0.100.0080.00416.96
8.0.90.0070.00316.98
8.0.80.0080.00916.94
8.0.70.0050.00416.89
8.0.60.0040.00616.83
8.0.50.0060.00516.95
8.0.30.0070.01217.08
8.0.20.0110.00817.12
8.0.10.0090.00817.16
8.0.00.0060.01217.10
7.4.330.0000.00515.55
7.4.320.0060.00016.66
7.4.300.0070.00516.75
7.4.290.0040.00716.65
7.4.280.0080.00416.62
7.4.270.0070.00516.68
7.4.260.0080.00316.64
7.4.250.0030.00716.69
7.4.240.0080.00216.73
7.4.230.0090.00016.50
7.4.220.0070.00316.63
7.4.210.0100.00616.75
7.4.200.0050.00516.61
7.4.190.0120.00016.65
7.4.180.0140.00016.78
7.4.160.0080.00916.66
7.4.150.0040.01116.59
7.4.140.0090.00817.34
7.4.130.0100.00716.61
7.4.120.0100.00916.61
7.4.110.0180.00616.64
7.4.100.0130.00816.65
7.4.90.0140.00916.63
7.4.80.0140.00916.96
7.4.70.0150.00916.66
7.4.60.0140.00816.56
7.4.50.0140.00816.53
7.4.40.0120.01116.57
7.4.30.0160.00816.62
7.4.20.0140.00916.62
7.4.10.0130.00916.33
7.4.00.0110.00816.19
7.3.330.0060.00414.71
7.3.320.0030.00814.70
7.3.310.0100.00216.34
7.3.300.0070.00416.23
7.3.290.0040.00616.32
7.3.280.0130.00316.29
7.3.270.0070.00616.31
7.3.260.0110.00716.43
7.3.250.0120.00516.43
7.3.240.0110.00716.56
7.3.230.0110.01116.38
7.3.220.0170.00716.49
7.3.210.0150.00816.43
7.3.200.0160.01016.47
7.3.190.0170.00716.42
7.3.180.0150.00816.50
7.3.170.0170.00716.37
7.3.160.0150.00916.41
7.3.150.0160.00816.43
7.3.140.0100.01216.50
7.3.130.0140.00616.33
7.3.120.0150.00816.09
7.3.110.0120.00816.08
7.3.100.0110.01116.08
7.3.90.0130.00916.22
7.3.80.0130.00816.19
7.3.70.0130.00816.15
7.3.60.0100.01016.22
7.3.50.0110.01016.13
7.3.40.0120.00916.15
7.3.30.0110.00816.17
7.3.20.0140.00616.84
7.3.10.0120.00716.74
7.3.00.0140.00916.87
7.2.340.0190.00816.62
7.2.330.0170.01016.71
7.2.320.0170.01016.64
7.2.310.0160.01116.64
7.2.300.0170.00916.61
7.2.290.0150.01116.66
7.2.280.0180.00916.63
7.2.270.0180.00916.65
7.2.260.0170.00816.49
7.2.250.0140.01016.43
7.2.240.0130.01016.29
7.2.230.0150.00916.35
7.2.220.0140.00916.35
7.2.210.0140.01016.35
7.2.200.0150.00816.37
7.2.190.0160.00716.32
7.2.180.0140.00916.30
7.2.170.0110.01216.38
7.2.160.0160.00816.47
7.2.150.0150.01017.06
7.2.140.0170.00917.05
7.2.130.0160.00817.11
7.2.120.0230.00816.69
7.2.110.0220.00916.73
7.2.100.0180.01016.77
7.2.90.0230.01016.76
7.2.80.0290.00916.77
7.2.70.0280.00916.75
7.2.60.0260.00816.83
7.2.50.0260.00916.75
7.2.40.0220.00916.82
7.2.30.0230.00816.78
7.2.20.0220.00916.75
7.2.10.0280.01016.78
7.2.00.0240.00716.72
7.1.330.0200.00816.15
7.1.320.0170.00716.06
7.1.310.0190.00716.07
7.1.300.0150.01016.05
7.1.290.0170.00715.98
7.1.280.0170.00816.01
7.1.270.0160.01016.00
7.1.260.0190.00716.02
7.1.250.0180.00815.86
7.1.240.0280.00915.68
7.1.230.0280.00815.71
7.1.220.0250.01015.71
7.1.210.0280.00915.74
7.1.200.0290.00715.74
7.1.190.0340.00715.68
7.1.180.0280.00815.68
7.1.170.0250.00915.70
7.1.160.0310.00915.72
7.1.150.0260.01015.69
7.1.140.0260.00915.74
7.1.130.0230.00915.73
7.1.120.0290.00815.70
7.1.110.0320.00815.76
7.1.100.0260.00815.69
7.1.90.0360.00815.73
7.1.80.0330.00815.74
7.1.70.0260.00715.71
7.1.60.0250.00915.72
7.1.50.0330.00815.78
7.1.40.0320.00915.81
7.1.30.0260.00815.75
7.1.20.0330.00615.77
7.1.10.0250.01015.75
7.1.00.0250.00915.73
7.0.330.0190.00915.57
7.0.320.0190.00815.57
7.0.310.0170.00815.47
7.0.300.0200.00815.60
7.0.290.0160.00915.51
7.0.280.0220.00615.54
7.0.270.0190.00615.53
7.0.260.0190.00815.59
7.0.250.0190.00715.62
7.0.240.0190.00715.64
7.0.230.0180.00915.64
7.0.220.0160.00915.54
7.0.210.0180.01015.56
7.0.200.0220.00615.61
7.0.190.0170.00815.56
7.0.180.0170.00915.57
7.0.170.0250.00715.68
7.0.160.0190.00815.51
7.0.150.0200.00815.54
7.0.140.0190.00815.58
7.0.130.0190.00715.57
7.0.120.0190.00615.62
7.0.110.0190.00515.59
7.0.100.0200.00815.53
7.0.90.0230.00615.55
7.0.80.0170.00715.45
7.0.70.0180.00615.51
7.0.60.0160.00915.61
7.0.50.0230.00715.55
7.0.40.0230.00815.33
7.0.30.0160.00915.28
7.0.20.0190.00815.33
7.0.10.0180.00715.28
7.0.00.0180.01015.32
5.6.400.0160.01015.71
5.6.390.0180.00915.79
5.6.380.0160.01015.54
5.6.370.0200.00915.64
5.6.360.0150.01215.65
5.6.350.0150.01115.66
5.6.340.0150.01215.76
5.6.330.0160.01015.72
5.6.320.0170.01115.74
5.6.310.0170.00915.85
5.6.300.0180.00915.66
5.6.290.0180.00815.71
5.6.280.0170.01015.77
5.6.270.0180.00915.71
5.6.260.0180.00915.74
5.6.250.0180.00915.74
5.6.240.0180.00815.73
5.6.230.0140.01115.68
5.6.220.0160.01015.78
5.6.210.0160.01015.63
5.6.200.0180.00915.73
5.6.190.0180.01015.78
5.6.180.0140.01215.82
5.6.170.0180.00815.79
5.6.160.0170.00915.77
5.6.150.0170.01015.68
5.6.140.0160.01015.65
5.6.130.0170.00815.72
5.6.120.0170.01015.67
5.6.110.0170.01015.73
5.6.100.0160.01015.72
5.6.90.0160.01115.70
5.6.80.0150.01215.58
5.6.70.0150.01115.66
5.6.60.0150.01115.69
5.6.50.0170.00915.63
5.6.40.0170.01015.66
5.6.30.0160.00915.64
5.6.20.0150.01015.62
5.6.10.0140.01115.65
5.6.00.0180.00715.57

preferences:
165.85 ms | 403 KiB | 5 Q