3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bigKml = "<br><img src='files/bagel.png'><br><br>"; $pattern = '/<img src=.*?>/'; preg_match($pattern, $bigKml, $imageTags); foreach($imageTags as $imageTag) { $urlPattern = "'.*'"; preg_match($urlPattern, $imageTag, $oldUrls); $oldUrl = $oldUrls[0]; //print_r($oldUrl); } print_r($imageTags); ?>

Abusive script

This script was stopped while abusing our resources

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)
7.4.10.0100.01016.58
7.4.00.0090.00915.73
7.3.130.0160.00716.52
7.3.120.0100.00815.54
7.3.110.0060.00815.76
7.3.100.0090.00915.55
7.3.90.0050.00715.55
7.3.80.0030.01115.78
7.3.70.0090.00815.69
7.3.60.0020.01315.69
7.3.50.0040.00915.65
7.3.40.0080.00615.69
7.3.30.0030.01215.64
7.3.20.0060.01117.56
7.3.10.0110.00517.41
7.3.00.0100.00517.43
7.2.260.0040.01416.69
7.2.250.0090.01116.01
7.2.240.0030.01515.84
7.2.230.0120.00316.02
7.2.220.0090.00515.91
7.2.210.0090.00615.92
7.2.200.0120.00216.05
7.2.190.0060.00716.07
7.2.180.0060.00615.97
7.2.170.0080.00516.00
7.2.160.0030.01416.47
7.2.150.0120.00318.34
7.2.140.0040.01118.41
7.2.130.0030.01418.45
7.2.120.0070.00718.48
7.2.110.0070.00618.42
7.2.100.0070.01018.46
7.2.90.0060.01018.66
7.2.80.0080.00618.44
7.2.70.0040.01518.68
7.2.60.0100.01018.48
7.2.50.0030.01518.47
7.2.40.0040.01418.59
7.2.30.0040.01718.45
7.2.20.0070.01118.52
7.2.10.0080.01118.55
7.2.00.0070.00819.18
7.1.330.0050.00816.84
7.1.320.0030.01216.89
7.1.310.0030.01116.77
7.1.300.0030.01216.81
7.1.290.0090.00616.73
7.1.280.0060.00816.68
7.1.270.0100.00616.66
7.1.260.0090.00316.76
7.1.250.0060.01217.52
7.1.240.0070.01017.50
7.1.230.0040.01417.42
7.1.220.0090.00917.52
7.1.210.0100.00617.48
7.1.200.0040.01217.62
7.1.190.0040.01517.37
7.1.180.0030.01517.39
7.1.170.0140.00317.52
7.1.160.0130.00317.55
7.1.150.0070.01017.36
7.1.140.0130.00617.44
7.1.130.0080.01217.38
7.1.120.0090.00617.29
7.1.110.0110.00717.57
7.1.100.0070.00917.87
7.1.90.0110.00717.33
7.1.80.0110.00417.51
7.1.70.0060.00717.28
7.1.60.0120.01018.40
7.1.50.0050.01617.38
7.1.40.0080.00817.59
7.1.30.0030.01417.47
7.1.20.0090.00417.49
7.1.10.0100.00717.27
7.1.00.0030.03120.01
7.0.330.0060.00917.16
7.0.320.0090.00616.72
7.0.310.0080.01217.05
7.0.300.0030.01616.98
7.0.290.0140.01116.82
7.0.280.0130.01016.93
7.0.270.0160.00417.07
7.0.260.0140.01017.13
7.0.250.0090.01317.09
7.0.240.0000.02317.29
7.0.230.0130.01017.03
7.0.220.0040.01916.96
7.0.210.0110.01516.94
7.0.200.0140.00416.93
7.0.190.0150.00512.69
7.0.180.0100.01717.20
7.0.170.0190.00717.18
7.0.160.0150.01517.17
7.0.150.0260.00317.28
7.0.140.0160.03819.71
7.0.130.0190.01017.05
7.0.120.0180.01217.23
7.0.110.0160.01217.24
7.0.100.0150.01517.15
7.0.90.0270.00017.15
7.0.80.0140.00817.32
7.0.70.0500.03318.62
7.0.60.0520.04618.60
7.0.50.0490.05018.72
7.0.40.0070.02616.37
7.0.30.0120.04717.59
7.0.20.0180.02417.63
7.0.10.0090.02917.68
7.0.00.0090.05217.60
5.6.400.0110.01115.80
5.6.390.0120.00415.84
5.6.380.0120.00415.87
5.6.370.0000.01815.54
5.6.360.0040.01615.59
5.6.350.0160.00815.87
5.6.340.0100.01615.44
5.6.330.0160.01015.86
5.6.320.0090.01415.92
5.6.310.0140.01215.69
5.6.300.0130.00712.69
5.6.290.0130.00912.69
5.6.280.0160.03618.63
5.6.270.0200.00012.69
5.6.260.0170.00612.69
5.6.250.0160.00312.69
5.6.240.0200.00916.00
5.6.230.0150.01516.14
5.6.220.0070.05118.21
5.6.210.0100.03018.37
5.6.200.0160.04618.54
5.6.190.0090.04918.51
5.6.180.0150.04718.50
5.6.170.0110.05118.52
5.6.160.0120.04118.45
5.6.150.0100.05018.53
5.6.140.0140.04918.59
5.6.130.0090.03718.53
5.6.120.0170.04618.51
5.6.110.0080.05116.84
5.6.100.0060.03218.49
5.6.90.0120.03516.88
5.6.80.0180.03518.15
5.6.70.0200.04018.11
5.6.60.0110.02116.54
5.6.50.0090.03016.54
5.6.40.0100.05118.25
5.6.30.0180.03818.15
5.6.20.0110.04617.98
5.6.10.0060.03817.95
5.6.00.0080.04817.98
5.5.380.0070.02015.83
5.5.370.0130.01616.02
5.5.360.0130.04516.55
5.5.350.0120.02818.21
5.5.340.0080.03318.31
5.5.330.0120.02918.32
5.5.320.0090.03218.39
5.5.310.0150.03518.36
5.5.300.0130.03618.35
5.5.290.0100.02618.41
5.5.280.0160.04218.34
5.5.270.0170.04118.38
5.5.260.0110.04118.38
5.5.250.0130.02918.07
5.5.240.0130.02218.00
5.5.230.0080.02917.97
5.5.220.0090.05018.01
5.5.210.0090.04418.05
5.5.200.0130.04618.03
5.5.190.0080.04417.98
5.5.180.0100.04217.96
5.5.170.0110.01415.63
5.5.160.0170.04318.00
5.5.150.0070.05017.96
5.5.140.0140.04618.04
5.5.130.0130.04418.05
5.5.120.0100.04317.98
5.5.110.0110.03917.86
5.5.100.0070.04517.88
5.5.90.0160.04017.88
5.5.80.0080.04417.92
5.5.70.0090.02817.97
5.5.60.0110.03117.80
5.5.50.0080.03717.96
5.5.40.0090.04417.93
5.5.30.0040.05217.93
5.5.20.0100.04017.82
5.5.10.0120.04517.98
5.5.00.0130.04117.92
5.4.450.0060.02616.07
5.4.440.0150.03716.17
5.4.430.0080.04315.96
5.4.420.0110.04015.99
5.4.410.0080.02916.06
5.4.400.0080.03615.95
5.4.390.0120.03715.86
5.4.380.0080.02315.87
5.4.370.0060.03916.02
5.4.360.0060.04115.96
5.4.350.0080.03915.91
5.4.340.0100.02615.92
5.4.330.0070.00712.69
5.4.320.0110.04015.92
5.4.310.0140.04215.95
5.4.300.0040.03415.85
5.4.290.0070.02615.92
5.4.280.0080.04315.89
5.4.270.0080.03415.97
5.4.260.0120.03915.79
5.4.250.0090.04415.89
5.4.240.0080.03215.81
5.4.230.0030.03015.96
5.4.220.0090.04415.98
5.4.210.0060.04315.90
5.4.200.0090.04215.93
5.4.190.0130.03515.90
5.4.180.0060.04115.86
5.4.170.0050.04515.87
5.4.160.0050.04415.77
5.4.150.0100.03715.85
5.4.140.0000.03814.59
5.4.130.0070.04014.54
5.4.120.0090.02414.55
5.4.110.0050.04114.70
5.4.100.0050.04914.63
5.4.90.0080.03814.51
5.4.80.0080.03514.58
5.4.70.0050.02714.53
5.4.60.0060.04314.58
5.4.50.0020.04414.54
5.4.40.0050.03114.53
5.4.30.0070.02314.50
5.4.20.0000.02814.61
5.4.10.0080.02114.62
5.4.00.0040.04114.29
5.3.290.0070.03013.91
5.3.280.0030.03813.83
5.3.270.0100.04013.79
5.3.260.0050.04513.84
5.3.250.0080.03813.83
5.3.240.0060.03313.70
5.3.230.0050.04413.75
5.3.220.0020.03713.78
5.3.210.0060.03413.92
5.3.200.0080.03513.78
5.3.190.0030.03213.84
5.3.180.0070.03813.97
5.3.170.0020.03013.90
5.3.160.0020.04513.84
5.3.150.0030.03113.82
5.3.140.0050.03114.00
5.3.130.0050.04313.80
5.3.120.0060.03813.84
5.3.110.0100.04213.80
5.3.100.0020.03613.43
5.3.90.0030.03313.59
5.3.80.0030.04813.50
5.3.70.0050.04313.52
5.3.60.0150.01313.53
5.3.50.0050.02913.51
5.3.40.0050.03613.40
5.3.30.0080.03313.40
5.3.20.0030.04313.18
5.3.10.0130.03513.19
5.3.00.0070.03213.27
5.2.170.0070.06012.39
5.2.160.0000.04012.39
5.2.150.0070.05712.39
5.2.140.0130.04712.39
5.2.130.0030.06312.39
5.2.120.0100.05712.39
5.2.110.0070.05312.39
5.2.100.0030.06012.39
5.2.90.0070.06312.39
5.2.80.0100.04012.39
5.2.70.0070.03312.39
5.2.60.0200.05012.39
5.2.50.0100.03012.39
5.2.40.0070.03712.39
5.2.30.0070.06012.39
5.2.20.0100.05012.39
5.2.10.0030.06312.39
5.2.00.0030.04712.39
5.1.60.0070.03312.39
5.1.50.0030.03312.39
5.1.40.0030.05312.39
5.1.30.0000.06012.39
5.1.20.0030.06012.39
5.1.10.0000.05012.39
5.1.00.0070.03712.39
5.0.50.0000.04712.39
5.0.40.0070.04012.39
5.0.30.0000.07012.39
5.0.20.0030.04712.39
5.0.10.0000.05012.39
5.0.00.0070.06012.39
4.4.90.0030.03312.39
4.4.80.0000.04012.39
4.4.70.0000.03312.39
4.4.60.0030.03012.39
4.4.50.0000.03712.39
4.4.40.0000.02712.39
4.4.30.0130.01712.39
4.4.20.0070.03012.39
4.4.10.0070.03312.39
4.4.00.0030.05012.39
4.3.110.0030.03312.39
4.3.100.0000.04012.39
4.3.90.0030.03012.39
4.3.80.0000.05712.39
4.3.70.0070.03312.39
4.3.60.0000.03012.39
4.3.50.0030.03312.39
4.3.40.0030.04312.39
4.3.30.0000.03712.39
4.3.20.0000.03012.39
4.3.10.0000.03712.39
4.3.00.0000.03012.39

preferences:
40.2 ms | 400 KiB | 5 Q