3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "#test Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus #tristique non elit eu iaculis. Vivamus eget ultricies nisi. Vivamus hendrerit at mauris condimentum scelerisque. <a href='http://google.co.uk/#donec'>nibh</a> mauris, pulvinar et #commodo a, porta et tellus. Duis eget ante gravida, convallis augue id, blandit lectus. Mauris euismod commodo mi ut fringilla. Sed felis magna, rhoncus vitae mattis varius, sagittis a eros. Donec eget porta ipsum. <a href='#Mauris'>sed mauris ante</a>. Suspendisse potenti. Donec a #pretium #augue, eget hendrerit orci. Integer cursus scelerisque consequat."; $text = preg_replace('/(?:^|\s)#(\w+)/', ' <a href="tag/$1">$1</a>', $text); echo $text; ?>

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.20.0090.01219.56
8.4.10.0100.01019.48
8.3.150.0130.00620.61
8.3.140.0160.00016.38
8.3.130.0040.00418.41
8.3.120.0030.00618.64
8.3.110.0040.00420.94
8.3.100.0060.00324.06
8.3.90.0110.00426.77
8.3.80.0090.00016.63
8.3.70.0070.00716.63
8.3.60.0110.00417.00
8.3.50.0080.01017.45
8.3.40.0080.00818.96
8.3.30.0000.01518.88
8.3.20.0040.00821.03
8.3.10.0040.00821.98
8.3.00.0110.00521.28
8.2.260.0050.00318.52
8.2.250.0060.00318.71
8.2.240.0060.00617.20
8.2.230.0110.00822.58
8.2.220.0150.00037.54
8.2.210.0000.00726.77
8.2.200.0000.00916.63
8.2.190.0160.00616.63
8.2.180.0110.01125.92
8.2.170.0080.00822.96
8.2.160.0000.01420.52
8.2.150.0130.00521.64
8.2.140.0050.00722.45
8.2.130.0040.00723.35
8.2.120.0080.00620.09
8.2.110.0060.00820.73
8.2.100.0150.00318.52
8.2.90.0160.00518.36
8.2.80.0130.00618.51
8.2.70.0170.00318.00
8.2.60.0140.00617.99
8.2.50.0170.00418.10
8.2.40.0140.00418.73
8.2.30.0110.00718.83
8.2.20.0150.00817.98
8.2.10.0130.00718.10
8.2.00.0100.00718.08
8.1.310.0090.00618.30
8.1.300.0030.00619.76
8.1.290.0090.00018.88
8.1.280.0060.00925.92
8.1.270.0060.00823.00
8.1.260.0070.00724.15
8.1.250.0030.00925.08
8.1.240.0160.00418.79
8.1.230.0200.00218.19
8.1.220.0160.00418.24
8.1.210.0120.00718.05
8.1.200.0140.00718.03
8.1.190.0160.00517.56
8.1.180.0140.00517.68
8.1.170.0110.00718.50
8.1.160.0130.00518.08
8.1.150.0150.00518.28
8.1.140.0120.00618.42
8.1.130.0090.00718.00
8.1.120.0120.00518.05
8.1.110.0090.00917.73
8.1.100.0130.00618.23
8.1.90.0140.00318.10
8.1.80.0120.00617.84
8.1.70.0110.00617.97
8.1.60.0150.00417.75
8.1.50.0120.00618.13
8.1.40.0140.00517.73
8.1.30.0100.00617.84
8.1.20.0120.00518.02
8.1.10.0110.00717.73
8.1.00.0130.00417.67
8.0.300.0100.00718.03
8.0.290.0130.00716.98
8.0.280.0160.00317.88
8.0.270.0120.00517.16
8.0.260.0090.00817.48
8.0.250.0090.00618.22
8.0.240.0120.00417.05
8.0.230.0120.00517.12
8.0.220.0100.00517.02
8.0.210.0130.00717.02
8.0.200.0120.00517.44
8.0.190.0110.00717.03
8.0.180.0150.00317.02
8.0.170.0140.00516.99
8.0.160.0110.00517.03
8.0.150.0130.00517.31
8.0.140.0120.00716.96
8.0.130.0120.00516.67
8.0.120.0100.00617.39
8.0.110.0120.00317.06
8.0.100.0140.00317.02
8.0.90.0120.00617.03
8.0.80.0110.00617.05
8.0.70.0090.00517.36
8.0.60.0120.00517.01
8.0.50.0110.00616.97
8.0.30.0100.00617.22
8.0.20.0120.00617.19
8.0.10.0120.00817.23
8.0.00.0140.00817.24
7.4.330.0140.00615.93
7.4.320.0190.00316.68
7.4.300.0140.00816.68
7.4.290.0180.00416.81
7.4.280.0160.00616.67
7.4.270.0170.00416.75
7.4.260.0180.00316.74
7.4.250.0160.00716.65
7.4.240.0180.00416.77
7.4.230.0170.00616.68
7.4.220.0180.00416.71
7.4.210.0120.00616.72
7.4.200.0180.00416.74
7.4.190.0190.00216.81
7.4.180.0150.00516.80
7.4.160.0150.00416.72
7.4.150.0150.00816.78
7.4.140.0130.00717.02
7.4.130.0150.00616.65
7.4.120.0140.00716.64
7.4.110.0140.00616.69
7.4.100.0150.00716.69
7.4.90.0140.00916.64
7.4.80.0150.00617.20
7.4.70.0160.00616.91
7.4.60.0140.00816.90
7.4.50.0160.00716.88
7.4.40.0140.00816.86
7.4.30.0130.01016.91
7.4.20.0130.00816.89
7.4.10.0150.00716.83
7.4.00.0100.00916.61
7.3.330.0180.00315.87
7.3.320.0170.00415.90
7.3.310.0170.00416.58
7.3.300.0160.00516.59
7.3.290.0160.00516.49
7.3.280.0110.00716.41
7.3.270.0130.00816.53
7.3.260.0140.00716.50
7.3.250.0140.00716.48
7.3.240.0140.00616.50
7.3.230.0140.00516.49
7.3.220.0140.00716.45
7.3.210.0150.00616.45
7.3.200.0130.00716.74
7.3.190.0140.00816.69
7.3.180.0150.00816.72
7.3.170.0150.00716.78
7.3.160.0160.00716.72
7.3.150.0170.00616.73
7.3.140.0140.00916.72
7.3.130.0160.00616.72
7.3.120.0150.00616.53
7.3.110.0140.00716.55
7.3.100.0140.00716.59
7.3.90.0120.00816.71
7.3.80.0130.00616.59
7.3.70.0130.00716.60
7.3.60.0130.00816.64
7.3.50.0140.00716.58
7.3.40.0130.00716.61
7.3.30.0150.00616.62
7.3.20.0140.00717.03
7.3.10.0140.00716.98
7.3.00.0140.00717.00
7.2.340.0170.00916.64
7.2.330.0180.00716.63
7.2.320.0170.00916.89
7.2.310.0170.00916.83
7.2.300.0180.00916.84
7.2.290.0180.00816.87
7.2.280.0190.00616.79
7.2.270.0180.00816.88
7.2.260.0180.00816.84
7.2.250.0170.00916.73
7.2.240.0160.00916.71
7.2.230.0160.00816.71
7.2.220.0170.00916.70
7.2.210.0160.00916.72
7.2.200.0170.00816.75
7.2.190.0160.00816.81
7.2.180.0160.00816.77
7.2.170.0170.00816.78
7.2.160.0190.00616.75
7.2.150.0190.00817.19
7.2.140.0170.00817.20
7.2.130.0180.00917.29
7.2.120.0190.01017.06
7.2.110.0200.00716.75
7.2.100.0260.00816.64
7.2.90.0300.00616.63
7.2.80.0390.00916.50
7.2.70.0290.00716.70
7.2.60.0310.00816.65
7.2.50.0310.00716.65
7.2.40.0390.00816.71
7.2.30.0400.00816.79
7.2.20.0360.00816.77
7.2.10.0370.00816.75
7.2.00.0390.00816.82
7.1.330.0200.00616.45
7.1.320.0220.00716.43
7.1.310.0180.00616.44
7.1.300.0190.00816.38
7.1.290.0210.00716.42
7.1.280.0200.00816.42
7.1.270.0210.00816.45
7.1.260.0190.00616.36
7.1.250.0170.00816.35
7.1.240.0200.00916.18
7.1.230.0220.00615.88
7.1.220.0290.00815.82
7.1.210.0280.00715.82
7.1.200.0270.00715.70
7.1.190.0300.00815.70
7.1.180.0290.00815.73
7.1.170.0280.00715.67
7.1.160.0400.00815.79
7.1.150.0430.00815.84
7.1.140.0350.00715.93
7.1.130.0350.00715.92
7.1.120.0370.00715.82
7.1.110.0360.00715.87
7.1.100.0380.00715.80
7.1.90.0350.00815.81
7.1.80.0310.00815.81
7.1.70.0350.00615.72
7.1.60.0380.00820.30
7.1.50.0470.00820.29
7.1.40.0370.00720.28
7.1.30.0440.00820.27
7.1.20.0400.01020.26
7.1.10.0360.00715.73
7.1.00.0360.00715.73
7.0.330.0330.00616.17
7.0.320.0180.00715.99
7.0.310.0280.00615.42
7.0.300.0290.00815.51
7.0.290.0400.00815.55
7.0.280.0320.00715.43
7.0.270.0390.00915.65
7.0.260.0390.00815.60
7.0.250.0360.00915.53
7.0.240.0400.00715.58
7.0.230.0360.00815.57
7.0.220.0340.00715.48
7.0.210.0470.00815.49
7.0.200.0310.00915.51
7.0.190.0320.00815.50
7.0.180.0360.00915.43
7.0.170.0340.00715.51
7.0.160.0350.00815.38
7.0.150.0320.00815.42
7.0.140.0310.00815.44
7.0.130.0370.00715.52
7.0.120.0330.00615.53
7.0.110.0340.00715.54
7.0.100.0310.00815.45
7.0.90.0340.00615.35
7.0.80.0330.00715.48
7.0.70.0310.00715.42
7.0.60.0310.00815.40
7.0.50.0310.00715.49
7.0.40.0300.00715.24
7.0.30.0300.00715.30
7.0.20.0310.00715.25
7.0.10.0300.00815.29
7.0.00.0330.00715.28
5.6.400.0160.00816.21
5.6.390.0160.00916.15
5.6.380.0120.01015.57
5.6.370.0130.01015.63
5.6.360.0160.00815.63
5.6.350.0150.00915.65
5.6.340.0160.00715.63
5.6.330.0150.00815.63
5.6.320.0140.00815.63
5.6.310.0160.00715.62
5.6.300.0170.01015.83
5.6.290.0160.01015.89
5.6.280.0150.01315.86
5.6.270.0140.01215.83
5.6.260.0150.01115.83
5.6.250.0160.01115.80
5.6.240.0170.01015.83
5.6.230.0160.01015.86
5.6.220.0140.01115.84
5.6.210.0140.01215.79
5.6.200.0170.01115.88
5.6.190.0180.00915.89
5.6.180.0160.01015.85
5.6.170.0140.01315.87
5.6.160.0150.01215.85
5.6.150.0160.01015.86
5.6.140.0150.01215.87
5.6.130.0170.00915.87
5.6.120.0150.01115.85
5.6.110.0150.01115.87
5.6.100.0140.01315.84
5.6.90.0140.01215.78
5.6.80.0160.00915.74
5.6.70.0140.01115.75
5.6.60.0150.01115.75
5.6.50.0140.01215.78
5.6.40.0150.01015.68
5.6.30.0140.01115.72
5.6.20.0130.01315.71
5.6.10.0150.01015.74
5.6.00.0150.01215.72

preferences:
35.7 ms | 403 KiB | 5 Q