3v4l.org

run code in 300+ PHP versions simultaneously
<?php $message = 'hello! world. Please visit my site: http://hello.world.com.'; $message = preg_replace('/(?<=^|\s)hello\b/', '<a id="get-ahead-link" style="color: #ffa503;" href="https://somelink.com">hello</a>', $message, -1, $count); echo $message;

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.00.0110.01020.18
8.4.150.0020.00014.05
8.4.140.0130.00917.84
8.4.130.0100.01017.98
8.4.120.0030.00620.44
8.4.110.0060.00322.40
8.4.100.0120.00917.94
8.4.90.0120.00818.89
8.4.80.0050.00417.81
8.4.70.0040.00717.91
8.4.60.0120.00818.74
8.4.50.0060.00517.80
8.4.40.0120.00819.70
8.4.30.0090.01217.89
8.4.20.0060.01020.52
8.4.10.0100.00019.67
8.3.280.0110.00918.54
8.3.270.0090.01016.61
8.3.260.0120.00516.47
8.3.250.0090.00918.71
8.3.240.0140.00516.74
8.3.230.0130.00616.48
8.3.220.0100.00819.17
8.3.210.0100.01116.57
8.3.200.0160.00416.83
8.3.190.0100.00918.85
8.3.180.0110.00618.55
8.3.170.0090.00918.88
8.3.160.0160.00318.59
8.3.150.0040.01317.04
8.3.140.0120.00617.28
8.3.130.0030.00616.87
8.3.120.0110.00018.70
8.3.110.0050.00318.41
8.3.100.0040.00418.50
8.3.90.0070.00726.77
8.3.80.0060.00316.50
8.3.70.0150.00316.88
8.3.60.0120.00616.75
8.3.50.0090.01017.99
8.3.40.0060.00918.67
8.3.30.0140.00018.85
8.3.20.0000.00821.73
8.3.10.0040.00418.86
8.3.00.0000.00819.63
8.2.290.0130.00820.53
8.2.280.0060.01120.41
8.2.270.0110.00717.25
8.2.260.0060.01216.50
8.2.250.0040.00416.55
8.2.240.0080.00017.30
8.2.230.0030.00520.94
8.2.220.0060.00324.06
8.2.210.0150.00426.77
8.2.200.0030.00718.41
8.2.190.0110.00416.58
8.2.180.0040.01116.75
8.2.170.0000.01522.96
8.2.160.0070.00720.57
8.2.150.0070.00324.18
8.2.140.0040.00424.66
8.2.130.0060.00321.12
8.2.120.0080.00026.35
8.2.110.0090.00019.43
8.2.100.0110.00017.97
8.2.90.0040.00419.28
8.2.80.0040.00417.63
8.2.70.0060.00317.75
8.2.60.0040.00418.04
8.2.50.0050.00318.07
8.2.40.0000.00818.28
8.2.30.0040.00418.14
8.2.20.0000.00718.14
8.2.10.0040.00419.44
8.2.00.0000.00918.05
8.1.330.0110.00720.23
8.1.320.0100.00916.56
8.1.310.0040.01516.46
8.1.300.0090.00916.74
8.1.290.0060.00330.84
8.1.280.0100.01025.92
8.1.270.0050.00520.20
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0090.00022.05
8.1.230.0060.00620.94
8.1.220.0000.00917.75
8.1.210.0040.00419.04
8.1.200.0060.00317.35
8.1.190.0000.00817.35
8.1.180.0050.00319.18
8.1.170.0000.00818.60
8.1.160.0000.00718.74
8.1.150.0000.00718.88
8.1.140.0040.00420.18
8.1.130.0000.00720.25
8.1.120.0100.00017.55
8.1.110.0040.00417.53
8.1.100.0000.00817.59
8.1.90.0000.00817.43
8.1.80.0000.00717.55
8.1.70.0000.00717.42
8.1.60.0030.00617.69
8.1.50.0030.00817.61
8.1.40.0030.00517.59
8.1.30.0080.00017.60
8.1.20.0030.00617.71
8.1.10.0030.00617.64
8.1.00.0030.00617.57
8.0.300.0060.00320.05
8.0.290.0040.00416.88
8.0.280.0030.00320.26
8.0.270.0030.00317.27
8.0.260.0000.00618.39
8.0.250.0030.00317.13
8.0.240.0060.00017.19
8.0.230.0030.00317.07
8.0.220.0070.00016.98
8.0.210.0070.00016.86
8.0.200.0040.00416.96
8.0.190.0060.00617.00
8.0.180.0000.00717.01
8.0.170.0030.00617.02
8.0.160.0080.00016.91
8.0.150.0050.00216.95
8.0.140.0040.00416.81
8.0.130.0030.00313.46
8.0.120.0040.00416.92
8.0.110.0000.00716.92
8.0.100.0040.00416.96
8.0.90.0000.00716.86
8.0.80.0080.00916.90
8.0.70.0040.00416.91
8.0.60.0030.00717.01
8.0.50.0050.00316.91
8.0.30.0130.00616.92
8.0.20.0160.00317.20
8.0.10.0000.00817.13
8.0.00.0110.00716.78
7.4.330.0000.00415.55
7.4.320.0000.00816.64
7.4.300.0000.00716.76
7.4.290.0040.00416.66
7.4.280.0000.00716.55
7.4.270.0030.00316.79
7.4.260.0040.00416.72
7.4.250.0040.00416.51
7.4.240.0040.00416.70
7.4.230.0030.00516.65
7.4.220.0050.00316.77
7.4.210.0120.00916.72
7.4.200.0070.00016.82
7.4.160.0110.00616.59
7.4.140.0050.01417.86
7.4.130.0100.00716.48
7.4.120.0070.01116.66
7.4.110.0110.00716.70
7.4.100.0040.01216.70
7.4.90.0030.01416.61
7.4.80.0140.00619.39
7.4.70.0070.01016.64
7.4.60.0120.01216.63
7.4.50.0070.01116.74
7.4.40.0160.00016.47
7.4.00.0120.00315.09
7.3.330.0000.00513.25
7.3.320.0030.00313.24
7.3.310.0070.00016.21
7.3.300.0070.00016.31
7.3.290.0040.00316.21
7.3.280.0090.00716.35
7.3.260.0080.01116.48
7.3.240.0100.00816.49
7.3.230.0100.00716.40
7.3.210.0090.00816.34
7.3.200.0000.01616.58
7.3.190.0110.00816.35
7.3.180.0100.00716.60
7.3.170.0160.00016.80
7.3.160.0000.01716.46
7.3.20.0080.00416.46
7.3.10.0090.00316.73
7.3.00.0030.00616.67
7.2.330.0060.01116.77
7.2.320.0090.00916.71
7.2.310.0030.01216.58
7.2.300.0090.01316.70
7.2.290.0110.01216.76
7.2.150.0100.00316.75
7.2.140.0030.01016.79
7.2.130.0110.00016.96
7.2.120.0050.00517.01
7.2.110.0070.01316.84
7.2.100.0090.00317.05
7.2.90.0120.00916.77
7.2.80.0030.00916.95
7.2.70.0110.00017.13
7.2.60.0190.00616.92
7.2.50.0030.01816.78
7.2.40.0000.01816.98
7.2.30.0140.00617.02
7.2.20.0140.00716.93
7.2.10.0040.00717.14
7.2.00.0070.00316.91
7.1.250.0000.01016.11

preferences:
46.9 ms | 403 KiB | 5 Q