3v4l.org

run code in 300+ PHP versions simultaneously
<?php $article = '<img src="http://php.net/images/logo.php">'; $match = preg_match( // Match the src attribute with the opening quote. '/src=(?\'quote\'["\'])' // Match the URL for the image. . '([\S\s]+?)\.(png|gif|jpeg)' // Re-use the opening quote as closing quote. . '(?P=quote)/m', $article, $matches ); var_dump($match, $matches);

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.0070.00718.55
8.3.50.0120.00822.17
8.3.40.0180.00018.96
8.3.30.0100.00319.06
8.3.20.0040.00420.29
8.3.10.0070.00021.77
8.3.00.0000.00919.08
8.2.180.0060.00916.75
8.2.170.0110.00722.96
8.2.160.0100.00320.49
8.2.150.0000.00925.66
8.2.140.0150.00424.66
8.2.130.0050.00326.16
8.2.120.0030.00519.79
8.2.110.0040.00820.39
8.2.100.0120.00017.91
8.2.90.0060.00318.32
8.2.80.0000.00918.03
8.2.70.0080.00017.75
8.2.60.0050.00317.72
8.2.50.0030.00617.75
8.2.40.0000.00817.88
8.2.30.0000.00718.15
8.2.20.0070.00017.72
8.2.10.0080.00018.08
8.2.00.0050.00217.82
8.1.280.0040.01225.92
8.1.270.0040.00418.82
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0090.00321.83
8.1.230.0080.00320.88
8.1.220.0080.00017.77
8.1.210.0080.00020.43
8.1.200.0000.00817.48
8.1.190.0040.00417.35
8.1.180.0040.00718.10
8.1.170.0030.00617.62
8.1.160.0000.00822.03
8.1.150.0000.00718.97
8.1.140.0060.00319.34
8.1.130.0040.00417.96
8.1.120.0000.00717.58
8.1.110.0050.00317.51
8.1.100.0070.00017.57
8.1.90.0000.00817.55
8.1.80.0000.00717.39
8.1.70.0000.00717.52
8.1.60.0060.00317.67
8.1.50.0000.00817.65
8.1.40.0030.00517.64
8.1.30.0030.00517.73
8.1.20.0040.00417.70
8.1.10.0000.00817.59
8.1.00.0040.00417.64
8.0.300.0030.00619.90
8.0.290.0050.00216.75
8.0.280.0000.00718.54
8.0.270.0000.00816.83
8.0.260.0030.00317.07
8.0.250.0070.00017.13
8.0.240.0000.00717.04
8.0.230.0000.00717.04
8.0.220.0030.00317.00
8.0.210.0000.00716.89
8.0.200.0040.00416.93
8.0.190.0000.00717.05
8.0.180.0000.00717.03
8.0.170.0040.00417.04
8.0.160.0040.00417.02
8.0.150.0040.00416.92
8.0.140.0070.00016.98
8.0.130.0050.00313.38
8.0.120.0050.00316.91
8.0.110.0020.00516.94
8.0.100.0000.00717.15
8.0.90.0040.00416.94
8.0.80.0090.01316.97
8.0.70.0000.00717.00
8.0.60.0070.00016.99
8.0.50.0040.00417.10
8.0.30.0130.01017.18
8.0.20.0100.00817.40
8.0.10.0030.00517.23
8.0.00.0120.00716.94
7.4.330.0030.00315.03
7.4.320.0040.00416.79
7.4.300.0030.00316.57
7.4.290.0020.00516.81
7.4.280.0050.00216.82
7.4.270.0000.00716.69
7.4.260.0030.00316.68
7.4.250.0050.00216.67
7.4.240.0020.00516.80
7.4.230.0030.00316.55
7.4.220.0030.01716.76
7.4.210.0050.00916.79
7.4.200.0030.00316.54
7.4.160.0160.00016.73
7.4.150.0110.01517.40
7.4.140.0150.00117.86
7.4.130.0110.01316.60
7.4.120.0120.00616.62
7.4.110.0100.01016.45
7.4.100.0140.00416.62
7.4.90.0100.01316.56
7.4.80.0110.00819.39
7.4.70.0150.01016.75
7.4.60.0100.00716.68
7.4.50.0000.00716.82
7.4.40.0040.01416.56
7.4.30.0110.01216.55
7.4.00.0110.00414.86
7.3.330.0000.00613.16
7.3.320.0030.00313.13
7.3.310.0000.00816.16
7.3.300.0000.00716.31
7.3.290.0090.00916.25
7.3.280.0050.01016.29
7.3.270.0110.00717.40
7.3.260.0110.00716.32
7.3.250.0060.01116.36
7.3.240.0060.01016.32
7.3.230.0070.01016.39
7.3.210.0060.01016.28
7.3.200.0090.00919.39
7.3.190.0170.00716.51
7.3.180.0060.01716.55
7.3.170.0160.00316.35
7.3.160.0090.00616.58
7.2.330.0070.01016.69
7.2.320.0070.01716.84
7.2.310.0040.01216.77
7.2.300.0100.00616.65
7.2.290.0140.00716.52
7.2.60.0120.00816.78
7.2.00.0000.01419.41
7.1.200.0090.00315.87
7.1.100.0030.00917.87
7.1.70.0060.00317.25
7.1.60.0040.01819.46
7.1.50.0140.01017.08
7.1.00.0100.07022.34
7.0.200.0000.00816.83
7.0.140.0000.05322.08
7.0.60.0030.04019.96
7.0.50.0000.06017.92
7.0.40.0070.04720.05
7.0.30.0270.06020.41
7.0.20.0170.04320.23
7.0.10.0070.06320.35
7.0.00.0130.07720.12
5.6.280.0000.05021.14
5.6.210.0070.06020.74
5.6.200.0070.07018.19
5.6.190.0030.04320.65
5.6.180.0230.04320.77
5.6.170.0300.07020.47
5.6.160.0100.08720.70
5.6.150.0070.03318.18
5.6.140.0030.08718.08
5.6.130.0030.08318.21
5.6.120.0100.08320.97
5.6.110.0170.07321.00
5.6.100.0000.04320.96
5.6.90.0030.04321.10
5.6.80.0030.04720.52
5.5.350.0030.08020.46
5.5.340.0130.07717.91
5.5.330.0130.03320.23
5.5.320.0400.03020.30
5.5.310.0270.07320.28
5.5.300.0030.08317.94
5.5.290.0030.05017.95
5.5.280.0100.07720.79
5.5.270.0070.07320.64
5.5.260.0230.06720.75
5.5.250.0030.04020.60
5.5.240.4270.03320.34
5.4.450.0470.05319.45
5.4.440.0770.05719.47
5.4.430.0030.06019.47
5.4.420.0070.05719.48
5.4.410.0100.05319.34
5.4.400.0170.05019.22
5.4.390.0230.04718.68
5.4.380.0230.04718.65
5.4.370.0330.04018.68
5.4.360.0200.05318.43
5.4.350.0230.05018.65
5.4.340.0100.06718.53
5.4.320.0270.04718.66
5.4.310.0370.03318.68
5.4.300.0230.04318.55
5.4.290.0200.04718.45
5.4.280.0230.04718.55
5.4.270.0130.06018.66
5.4.260.0270.04318.54
5.4.250.0200.05018.61
5.4.240.0270.04718.52
5.4.230.0130.05718.54
5.4.220.0200.05318.48
5.4.210.0100.06018.44
5.4.200.0200.05016.56
5.4.190.0270.04318.63
5.4.180.0230.04718.49
5.4.170.0170.06018.45
5.4.160.0330.03318.59
5.4.150.0170.05318.66
5.4.140.0100.06016.15
5.4.130.0330.03316.13
5.4.120.0230.04316.04
5.4.110.0130.05316.03
5.4.100.0230.04716.00
5.4.90.0230.04316.18
5.4.80.0170.05016.09
5.4.70.0170.06016.16
5.4.60.0200.04716.23
5.4.50.0270.03716.09
5.4.40.0230.04316.15
5.4.30.0200.05016.28
5.4.20.0270.04016.09
5.4.10.0230.04316.34
5.4.00.0200.04715.64
5.3.290.0200.05014.55
5.3.280.0200.05314.49
5.3.270.0230.05014.55
5.3.260.0270.05014.61
5.3.250.0130.05714.52
5.3.240.0100.06014.51
5.3.230.0330.04714.53
5.3.220.0200.04714.47
5.3.210.0130.06014.57
5.3.200.0170.05014.57
5.3.190.0170.05314.59
5.3.180.0130.05314.58
5.3.170.0230.04314.53
5.3.160.0230.05014.61
5.3.150.0100.06014.52
5.3.140.0130.05714.68
5.3.130.0170.05314.50
5.3.120.0230.04314.50
5.3.110.0200.05014.59
5.3.100.0200.04714.16
5.3.90.0230.04713.95
5.3.80.0230.04314.06
5.3.70.0230.04314.00
5.3.60.0200.04713.89
5.3.50.0170.05013.92
5.3.40.0300.04714.00
5.3.30.0130.05013.96
5.3.20.0200.04313.59
5.3.10.0130.05313.60
5.3.00.0200.05013.59
5.2.170.0200.03711.07
5.2.160.0100.04311.16
5.2.150.0170.04311.03
5.2.140.0170.04011.11
5.2.130.0130.04011.02
5.2.120.0170.03711.05
5.2.110.0100.04311.11
5.2.100.0200.03311.06
5.2.90.0100.04311.05
5.2.80.0100.04711.28
5.2.70.0170.04011.11
5.2.60.0170.04010.96
5.2.50.0100.05710.92
5.2.40.0200.05011.03
5.2.30.0230.03010.88
5.2.20.0130.04011.08
5.2.10.0200.03010.87
5.2.00.0170.03710.71
5.1.60.0070.0409.98
5.1.50.0070.0379.97
5.1.40.0100.0379.97
5.1.30.0170.03310.28
5.1.20.0200.02710.39
5.1.10.0170.03310.04
5.1.00.0130.03310.05
5.0.50.0130.0238.58
5.0.40.0100.0238.41
5.0.30.0070.0438.21
5.0.20.0130.0208.37
5.0.10.0100.0278.26
5.0.00.0100.0378.16
4.4.90.0030.0235.91
4.4.80.0070.0235.89
4.4.70.0070.0205.89
4.4.60.0000.0275.85
4.4.50.0070.0205.88
4.4.40.0030.0375.86
4.4.30.0070.0205.88
4.4.20.0070.0205.93
4.4.10.0030.0235.90
4.4.00.0070.0335.93
4.3.110.0000.0275.81
4.3.100.0030.0235.77
4.3.90.0030.0235.75
4.3.80.0070.0335.78
4.3.70.0070.0205.86
4.3.60.0070.0205.76
4.3.50.0070.0205.83
4.3.40.0100.0305.73
4.3.30.0000.0274.54
4.3.20.0030.0234.52
4.3.10.0070.0204.50
4.3.00.0030.0208.35

preferences:
48.89 ms | 401 KiB | 5 Q