3v4l.org

run code in 300+ PHP versions simultaneously
<?php $Rtm = '@[ Test Career 12](career:235)@[ Testing11](business:2)@[ Username](user:1)some text'; $Rtm = preg_replace_callback('/@\[([^]]*)\]\(([a-z]+):([^)]*)\)/', function ($match) { switch($match[2]) { case 'user': return "<a href=\"/en/main/profile_page_link/$match[3]\">$match[1]</a>"; break; case 'business': return "<a href=\"/en/business/1/about\">$match[1]</a>"; break; case 'career': return "<a href=\"/en/main/2/about\">$match[1]</a>"; break; default: return ""; break; } }, $Rtm); echo $Rtm;

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.10.0090.00619.60
8.3.140.0030.00520.87
8.3.130.0060.00318.54
8.3.120.0180.00019.09
8.3.110.0040.00420.94
8.3.100.0040.00424.06
8.3.90.0110.00426.77
8.3.80.0090.00019.36
8.3.70.0150.00616.88
8.3.60.0090.00616.75
8.3.50.0050.01224.50
8.3.40.0060.01319.15
8.3.30.0110.00318.79
8.3.20.0080.00024.18
8.3.10.0030.00524.66
8.3.00.0040.00426.16
8.2.260.0090.00018.39
8.2.250.0100.00016.55
8.2.240.0100.00719.20
8.2.230.0100.00722.58
8.2.220.0050.00537.54
8.2.210.0070.01026.77
8.2.200.0060.00318.88
8.2.190.0130.00316.61
8.2.180.0120.00325.92
8.2.170.0110.00419.27
8.2.160.0030.01222.96
8.2.150.0060.00325.66
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0030.00519.96
8.2.110.0060.00322.37
8.2.100.0080.00417.97
8.2.90.0050.00318.03
8.2.80.0060.00319.29
8.2.70.0000.00817.90
8.2.60.0040.00418.03
8.2.50.0080.00018.10
8.2.40.0000.00819.05
8.2.30.0030.00519.35
8.2.20.0000.00818.04
8.2.10.0040.00419.25
8.2.00.0000.00719.38
8.1.310.0150.00416.53
8.1.300.0120.00618.49
8.1.290.0040.00830.84
8.1.280.0090.00625.92
8.1.270.0050.00323.99
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00322.66
8.1.230.0080.00321.04
8.1.220.0060.00317.79
8.1.210.0060.00318.77
8.1.200.0060.00317.72
8.1.190.0000.00817.38
8.1.180.0060.00318.10
8.1.170.0000.00918.84
8.1.160.0080.00018.95
8.1.150.0050.00218.86
8.1.140.0070.00018.95
8.1.130.0000.00720.14
8.1.120.0000.00817.67
8.1.110.0000.00817.65
8.1.100.0070.00017.70
8.1.90.0040.00417.68
8.1.80.0040.00417.68
8.1.70.0070.00017.68
8.1.60.0000.00817.66
8.1.50.0030.00517.59
8.1.40.0000.00817.69
8.1.30.0000.00817.70
8.1.20.0040.00417.79
8.1.10.0030.00517.72
8.1.00.0000.00817.70
8.0.300.0040.00420.05
8.0.290.0000.00817.00
8.0.280.0030.00318.51
8.0.270.0000.00716.95
8.0.260.0000.00618.44
8.0.250.0040.00417.03
8.0.240.0000.00717.12
8.0.230.0070.00017.10
8.0.220.0040.00417.07
8.0.210.0000.00717.02
8.0.200.0040.00417.09
8.0.190.0000.00717.11
8.0.180.0080.00017.10
8.0.170.0030.00617.13
8.0.160.0040.00417.04
8.0.150.0000.00717.00
8.0.140.0120.00016.93
8.0.130.0030.00313.48
8.0.120.0040.00417.01
8.0.110.0000.00817.09
8.0.100.0080.00016.95
8.0.90.0070.00016.94
8.0.80.0060.00917.04
8.0.70.0040.00417.06
8.0.60.0040.00416.96
8.0.50.0080.00016.89
8.0.30.0120.00617.21
8.0.20.0070.01117.58
8.0.10.0000.00717.14
8.0.00.0100.01416.97
7.4.330.0000.00415.55
7.4.320.0030.00316.71
7.4.300.0000.00616.78
7.4.290.0070.00016.83
7.4.280.0040.00416.82
7.4.270.0000.00716.70
7.4.260.0000.00513.41
7.4.250.0040.00416.72
7.4.240.0050.00316.67
7.4.230.0000.00716.64
7.4.220.0040.00416.90
7.4.210.0080.00716.82
7.4.200.0030.00316.78
7.4.130.0050.01216.68
7.4.120.0070.01416.82
7.4.110.0100.01016.70
7.4.100.0090.01216.61
7.4.90.0110.00716.77
7.4.80.0100.01019.39
7.4.70.0100.00916.64
7.4.60.0120.00916.66
7.4.50.0180.00016.69
7.4.40.0110.00716.52
7.4.30.0100.00716.64
7.4.20.0130.00716.66
7.4.10.0110.00416.46
7.4.00.0110.00716.72
7.3.330.0070.00016.40
7.3.320.0050.00013.53
7.3.310.0070.00016.30
7.3.300.0000.00716.61
7.3.290.0080.00816.46
7.3.260.0150.00616.50
7.3.230.0140.01016.86
7.3.210.0060.01216.52
7.3.200.0100.01016.75
7.3.190.0060.01016.61
7.3.180.0030.01516.71
7.3.170.0130.00316.75
7.3.160.0100.01016.53
7.3.150.0100.00616.55
7.3.140.0110.00716.57
7.3.130.0060.01016.51
7.3.120.0130.00316.71
7.3.110.0080.00816.41
7.3.100.0080.01116.50
7.3.90.0060.01616.75
7.3.80.0060.01516.48
7.3.70.0150.00716.59
7.3.60.0090.00916.42
7.3.50.0070.01416.71
7.3.40.0160.00016.61
7.3.30.0130.00716.39
7.3.20.0120.00916.72
7.3.10.0060.01116.61
7.3.00.0060.01216.54
7.2.330.0100.00716.81
7.2.320.0120.00616.78
7.2.310.0100.00716.73
7.2.300.0220.00416.58
7.2.290.0070.01016.66
7.2.280.0130.00816.77
7.2.270.0130.00516.60
7.2.260.0120.00616.63
7.2.250.0060.01016.95
7.2.240.0110.00816.66
7.2.230.0220.00616.58
7.2.220.0100.00816.73
7.2.210.0040.01617.04
7.2.200.0090.01216.81
7.2.190.0060.01116.68
7.2.180.0140.00716.63
7.2.170.0080.00816.74
7.2.160.0000.01716.89
7.2.150.0100.01016.81
7.2.140.0090.00916.85
7.2.130.0160.00316.90
7.2.120.0110.00716.84
7.2.110.0140.00316.85
7.2.100.0060.01216.87
7.2.90.0080.01516.82
7.2.80.0130.00716.64
7.2.70.0080.01116.86
7.2.60.0170.00016.85
7.2.50.0180.00616.73
7.2.40.0120.00616.97
7.2.30.0440.01016.95
7.2.20.0120.01016.73
7.2.10.0140.00416.79
7.2.00.0090.00916.91

preferences:
66.1 ms | 403 KiB | 5 Q