3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str="Look at this [website]{http://www.stackoverflow.com} or at this [page]{http://www.google.com}"; echo preg_replace('/\[(.*?)\]\{(.*?)\}/', "<a href='$2'>$1</a>", $str);

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.3.60.0090.00918.30
8.3.50.0130.00621.18
8.3.40.0130.00618.79
8.3.30.0090.00618.81
8.3.20.0000.00820.30
8.3.10.0050.00323.66
8.3.00.0140.00325.18
8.2.180.0110.00425.92
8.2.170.0140.00322.96
8.2.160.0030.01020.22
8.2.150.0000.00725.66
8.2.140.0040.00424.66
8.2.130.0120.00527.44
8.2.120.0100.00525.30
8.2.110.0150.00126.11
8.2.100.0110.00623.16
8.2.90.0140.00723.19
8.2.80.0130.00723.44
8.2.70.0130.00723.09
8.2.60.0130.00323.29
8.2.50.0130.00623.16
8.2.40.0140.00323.55
8.2.30.0140.00623.48
8.2.20.0130.00323.08
8.2.10.0110.00523.17
8.2.00.0120.00723.16
8.1.280.0090.00625.92
8.1.270.0040.00423.86
8.1.260.0060.00827.51
8.1.250.0060.00528.09
8.1.240.0070.00826.12
8.1.230.0130.00623.90
8.1.220.0110.00523.09
8.1.210.0140.00623.35
8.1.200.0150.00522.99
8.1.190.0130.00522.96
8.1.180.0140.00423.18
8.1.170.0110.00523.09
8.1.160.0120.00523.88
8.1.150.0060.00723.33
8.1.140.0100.00423.50
8.1.130.0110.00323.05
8.1.120.0110.00323.04
8.1.110.0100.00523.01
8.1.100.0100.00623.03
8.1.90.0090.00523.04
8.1.80.0110.00723.01
8.1.70.0120.00523.00
8.1.60.0170.00223.06
8.1.50.0120.00323.03
8.1.40.0080.00621.24
8.1.30.0150.00623.08
8.1.20.0100.00623.04
8.1.10.0140.00423.04
8.1.00.0090.00423.02
8.0.300.0080.00623.65
8.0.290.0120.00722.87
8.0.280.0090.00623.25
8.0.270.0120.00322.98
8.0.260.0110.00522.98
8.0.250.0110.00222.89
8.0.240.0110.00522.90
8.0.230.0120.00322.89
8.0.220.0100.00422.89
8.0.210.0090.00422.89
8.0.200.0070.00522.88
8.0.190.0100.00322.90
8.0.180.0080.00522.88
8.0.170.0110.00222.91
8.0.160.0110.00322.89
8.0.150.0090.00422.90
8.0.140.0130.00422.87
8.0.130.0090.00322.00
8.0.120.0080.00522.87
8.0.110.0100.00322.88
8.0.100.0070.00522.86
8.0.90.0110.00522.85
8.0.80.0090.00522.87
8.0.70.0080.00522.90
8.0.60.0140.00222.85
8.0.50.0100.00522.86
8.0.30.0090.00721.06
8.0.20.0090.00720.56
8.0.10.0110.00422.92
8.0.00.0120.00621.76
7.4.330.0090.00422.42
7.4.320.0120.00522.79
7.4.300.0130.00222.82
7.4.290.0120.00422.81
7.4.280.0160.00222.81
7.4.270.0130.00422.84
7.4.260.0150.00322.82
7.4.250.0130.00322.79
7.4.240.0090.00721.61
7.4.230.0160.00122.86
7.4.220.0160.00522.80
7.4.210.0160.00522.82
7.4.200.0170.00322.84
7.4.190.0190.00624.87
7.4.180.0190.00524.87
7.4.160.0150.00721.60
7.4.150.0180.00821.77
7.4.140.0120.01121.18
7.4.130.0190.00520.82
7.4.120.0170.00520.74
7.4.110.0160.00821.56
7.4.100.0140.00821.64
7.4.90.0180.00420.12
7.4.80.0170.00620.57
7.4.70.0160.00820.10
7.4.60.0180.00519.65
7.4.50.0170.00519.63
7.4.40.0150.01020.12
7.4.30.0170.00520.15
7.4.20.0140.00820.11
7.4.10.0150.00520.09
7.4.00.0130.00619.57
7.3.330.0120.00321.93
7.3.320.0110.00521.93
7.3.310.0130.00422.75
7.3.300.0130.00222.70
7.3.290.0130.00620.59
7.3.280.0110.00819.51
7.3.270.0150.00521.67
7.3.260.0160.00520.62
7.3.250.0120.00720.04
7.3.240.0140.00620.65
7.3.230.0200.00321.50
7.3.220.0180.00522.71
7.3.210.0190.00520.02
7.3.200.0150.00720.43
7.3.190.0160.00620.01
7.3.180.0130.00819.59
7.3.170.0150.00620.06
7.3.160.0140.00820.02
7.3.150.0180.00620.00
7.3.140.0170.00719.95
7.3.130.0160.00719.94
7.3.120.0150.00519.97
7.3.110.0140.00819.97
7.3.100.0160.00719.96
7.3.90.0110.01019.97
7.3.80.0130.00819.99
7.3.70.0130.00719.92
7.3.60.0160.00620.03
7.3.50.0110.00819.35
7.3.40.0150.00519.34
7.3.30.0100.00818.43
7.3.20.0160.00918.45
7.3.10.0180.00618.40
7.3.00.0210.00518.40
7.2.340.0200.00421.00
7.2.330.0160.00820.10
7.2.320.0170.00720.11
7.2.310.0150.00720.14
7.2.300.0160.00720.08
7.2.290.0170.00620.08
7.2.280.0140.00920.08
7.2.270.0140.00920.15
7.2.260.0160.00620.07
7.2.250.0160.00820.08
7.2.240.0170.00620.04
7.2.230.0170.00720.10
7.2.220.0180.00820.08
7.2.210.0210.00620.08
7.2.200.0210.00720.12
7.2.190.0160.00920.05
7.2.180.0150.00819.43
7.2.170.0160.00719.37
7.2.160.0130.00818.56
7.2.150.0240.00818.58
7.2.140.0360.01018.56
7.2.130.0230.00618.58
7.2.120.0200.00718.58
7.2.110.0750.00718.58
7.2.100.0710.00618.61
7.2.90.0510.00718.49
7.2.80.0460.00818.56
7.2.70.0490.00718.58
7.2.60.0430.00518.44
7.2.50.0440.00718.58
7.2.40.0480.00518.64
7.2.30.0410.00818.61
7.2.20.0250.00818.54
7.2.10.0180.00718.47
7.2.00.0210.00518.51
7.1.330.0170.00719.84
7.1.320.0170.00519.84
7.1.310.0180.00519.86
7.1.300.0200.00619.59
7.1.290.0170.00719.61
7.1.280.0190.00318.87
7.1.270.0210.00617.87
7.1.260.0180.00717.89
7.1.250.0490.00517.87
7.1.240.0290.00617.88
7.1.230.0850.00517.87
7.1.220.0610.01017.89
7.1.210.0620.00817.88
7.1.200.0400.00817.68
7.1.190.0480.00717.88
7.1.180.0480.00617.88
7.1.170.0510.00817.81
7.1.160.0430.00917.88
7.1.150.0460.00617.89
7.1.140.0340.00717.73
7.1.130.0370.00817.74
7.1.120.0210.00617.71
7.1.110.0190.00717.63
7.1.100.0190.00817.69
7.1.90.0300.00717.65
7.1.80.0280.00817.65
7.1.70.0270.00817.47
7.1.60.0270.00720.20
7.1.50.0270.00920.15
7.1.40.0250.00920.09
7.1.30.0460.01220.25
7.1.20.0300.00620.29
7.1.10.0250.00817.45
7.1.00.0250.00617.48
7.0.330.0220.00717.63
7.0.320.0560.00717.63
7.0.310.0450.00617.61
7.0.300.0460.00617.64
7.0.290.0380.00717.65
7.0.280.0220.00417.67
7.0.270.0370.00817.45
7.0.260.0410.00717.49
7.0.250.0200.00617.39
7.0.240.0250.00517.45
7.0.230.0300.00817.39
7.0.220.0310.00817.39
7.0.210.0310.00917.17
7.0.200.0250.00817.22
7.0.190.0240.00817.26
7.0.180.0270.00817.22
7.0.170.0230.00717.25
7.0.160.0260.00717.19
7.0.150.0250.00817.16
7.0.140.0310.00717.24
7.0.130.0220.00917.29
7.0.120.0210.00717.28
7.0.110.0230.00717.22
7.0.100.0200.00917.18
7.0.90.0210.00817.26
7.0.80.0280.00817.22
7.0.70.0250.00717.19
7.0.60.0300.00617.27
7.0.50.0230.00717.26
7.0.40.0200.00917.17
7.0.30.0240.00517.20
7.0.20.0210.00717.13
7.0.10.0230.00817.19
7.0.00.0220.00917.20
5.6.400.0160.00618.10
5.6.390.0140.00818.15
5.6.380.0150.01018.09
5.6.370.0160.00818.03
5.6.360.0150.00918.15
5.6.350.0130.01118.12
5.6.340.0150.00718.09
5.6.330.0150.00618.08
5.6.320.0120.00718.13
5.6.310.0120.00818.10
5.6.300.0110.02218.61
5.6.290.0170.02018.68
5.6.280.0130.01918.72
5.6.270.0140.01818.65
5.6.260.0120.02018.64
5.6.250.0140.01618.66
5.6.240.0130.02118.70
5.6.230.0100.02218.71
5.6.220.0130.01918.66
5.6.210.0140.01918.69
5.6.200.0130.02318.74
5.6.190.0130.01718.72
5.6.180.0130.01918.74
5.6.170.0150.01918.77
5.6.160.0120.02418.72
5.6.150.0120.02218.68
5.6.140.0140.01818.72
5.6.130.0120.02018.72
5.6.120.0140.02118.79
5.6.110.0140.01818.72
5.6.100.0120.01918.71
5.6.90.0120.01918.68
5.6.80.0140.01918.54
5.6.70.0140.01818.54
5.6.60.0120.01918.57
5.6.50.0130.01818.52
5.6.40.0120.01818.53
5.6.30.0130.01918.50
5.6.20.0120.02018.55
5.6.10.0140.02018.51
5.6.00.0120.01918.46
5.5.380.0150.01917.88
5.5.370.0180.01817.93
5.5.360.0150.01817.87
5.5.350.0170.02017.89
5.5.340.0140.02317.93
5.5.330.0150.01917.99
5.5.320.0160.02217.96
5.5.310.0150.01918.04
5.5.300.0140.01918.03
5.5.290.0150.02017.98
5.5.280.0150.01718.04
5.5.270.0140.01818.02
5.5.260.0130.02118.00
5.5.250.0130.02117.92
5.5.240.0140.01817.85
5.5.230.0130.02117.80
5.5.220.0130.01917.84
5.5.210.0150.01717.80
5.5.200.0130.02017.81
5.5.190.0130.02117.79
5.5.180.0130.01917.80
5.5.170.0160.00717.91
5.5.160.0120.01717.81
5.5.150.0120.01717.85
5.5.140.0120.01917.83
5.5.130.0120.01917.82
5.5.120.0120.01717.79
5.5.110.0120.01917.76
5.5.100.0100.02017.80
5.5.90.0120.01817.79
5.5.80.0140.01617.82
5.5.70.0130.01917.75
5.5.60.0150.01717.84
5.5.50.0140.01717.79
5.5.40.0140.01717.77
5.5.30.0150.01617.78
5.5.20.0170.01717.75
5.5.10.0120.02117.78
5.5.00.0150.01517.75

preferences:
57.98 ms | 401 KiB | 5 Q