3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = '<html> <head> <etc /> </head> <body> <div><img src="blah.jpg" /></div><br /> </body> </html>'; $regex = '#<img .*?\/>#'; preg_match($regex, $html, $matches); var_dump($matches[0]);

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.5.10.0170.00416.74
8.5.00.0120.00920.02
8.4.150.0010.00114.05
8.4.140.0090.00617.85
8.4.130.0140.00717.79
8.4.120.0040.00524.23
8.4.110.0120.00720.84
8.4.100.0130.00818.63
8.4.90.0110.00619.00
8.4.80.0150.00518.87
8.4.70.0070.01020.86
8.4.60.0100.01120.38
8.4.50.0070.01318.86
8.4.40.0160.00319.52
8.4.30.0130.00619.84
8.4.20.0130.00917.70
8.4.10.0160.00319.78
8.3.280.0120.01020.46
8.3.270.0050.00816.53
8.3.260.0120.00916.71
8.3.250.0120.00818.89
8.3.240.0100.01017.09
8.3.230.0080.00316.95
8.3.220.0130.00618.65
8.3.210.0110.00816.65
8.3.200.0060.00316.64
8.3.190.0100.00918.88
8.3.180.0140.00618.87
8.3.170.0080.00017.04
8.3.160.0130.00616.79
8.3.150.0170.00316.66
8.3.140.0050.00318.85
8.3.130.0030.00518.50
8.3.120.0040.00418.79
8.3.110.0090.00020.94
8.3.100.0030.00716.50
8.3.90.0030.00726.77
8.3.80.0040.00716.63
8.3.70.0140.00716.58
8.3.60.0130.00716.63
8.3.50.0170.00516.67
8.3.40.0060.00918.70
8.3.30.0160.00018.79
8.3.20.0070.00020.33
8.3.10.0040.00421.88
8.3.00.0000.00823.60
8.2.290.0110.00720.38
8.2.280.0160.00320.57
8.2.270.0090.00916.69
8.2.260.0070.01117.07
8.2.250.0030.00618.70
8.2.240.0060.00318.94
8.2.230.0060.00322.58
8.2.220.0030.00624.06
8.2.210.0060.00326.77
8.2.200.0060.00318.67
8.2.190.0000.01516.75
8.2.180.0090.00616.63
8.2.170.0120.00322.96
8.2.160.0100.00320.39
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00020.07
8.2.110.0100.00021.03
8.2.100.0070.00417.84
8.2.90.0040.00420.50
8.2.80.0030.00618.05
8.2.70.0000.00917.93
8.2.60.0000.00818.22
8.2.50.0030.00518.10
8.2.40.0060.00320.56
8.2.30.0000.00719.17
8.2.20.0040.00419.75
8.2.10.0030.00618.01
8.2.00.0080.00018.02
8.1.330.0120.00721.86
8.1.320.0120.00720.14
8.1.310.0090.01216.54
8.1.300.0040.00419.75
8.1.290.0040.00430.84
8.1.280.0140.00325.92
8.1.270.0000.00824.66
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0090.00021.19
8.1.230.0080.00321.09
8.1.220.0060.00317.74
8.1.210.0040.00418.98
8.1.200.0060.00317.35
8.1.190.0030.00517.35
8.1.180.0040.00418.10
8.1.170.0000.00818.55
8.1.160.0050.00218.79
8.1.150.0050.00320.12
8.1.140.0000.00719.54
8.1.130.0000.00718.85
8.1.120.0000.00717.52
8.1.110.0040.00417.53
8.1.100.0030.00617.54
8.1.90.0040.00417.51
8.1.80.0070.00017.54
8.1.70.0030.00317.38
8.1.60.0020.00517.61
8.1.50.0040.00417.65
8.1.40.0000.00717.54
8.1.30.0030.00517.77
8.1.20.0040.00417.67
8.1.10.0000.00817.59
8.1.00.0030.00617.55
8.0.300.0000.00720.09
8.0.290.0050.00316.75
8.0.280.0070.00018.32
8.0.270.0000.00717.05
8.0.260.0070.00018.39
8.0.250.0030.00316.93
8.0.240.0000.00816.93
8.0.230.0070.00417.04
8.0.220.0070.00016.98
8.0.210.0030.00316.94
8.0.200.0030.00617.02
8.0.190.0000.00816.86
8.0.180.0030.00516.89
8.0.170.0000.00717.00
8.0.160.0080.00017.02
8.0.150.0040.00316.95
8.0.140.0050.00316.97
8.0.130.0000.00513.38
8.0.120.0030.00517.00
8.0.110.0030.00616.97
8.0.100.0080.00016.84
8.0.90.0070.00016.93
8.0.80.0060.00916.98
8.0.70.0040.00417.01
8.0.60.0040.00416.83
8.0.50.0070.00016.91
8.0.30.0070.01017.20
8.0.20.0170.01117.41
8.0.10.0030.00317.05
8.0.00.0080.00816.69
7.4.330.0030.00315.55
7.4.320.0000.00716.54
7.4.300.0030.00316.52
7.4.290.0000.00716.63
7.4.280.0040.00416.73
7.4.270.0000.00716.73
7.4.260.0000.00816.71
7.4.250.0040.00416.60
7.4.240.0080.00016.78
7.4.230.0040.00416.50
7.4.220.0080.00816.59
7.4.210.0110.00416.57
7.4.200.0070.00016.76
7.4.160.0070.00916.45
7.4.150.0120.00617.40
7.4.140.0090.00917.86
7.4.130.0120.00716.86
7.4.120.0130.00616.66
7.4.110.0130.00316.76
7.4.100.0120.00316.51
7.4.90.0090.00916.77
7.4.80.0090.01419.39
7.4.70.0090.00916.76
7.4.60.0060.01016.54
7.4.50.0070.01116.34
7.4.40.0140.00716.55
7.4.30.0060.01516.66
7.4.00.0070.00915.00
7.3.330.0030.00313.18
7.3.320.0030.00313.01
7.3.310.0000.00816.34
7.3.300.0030.00316.34
7.3.290.0020.01316.35
7.3.280.0070.00916.34
7.3.270.0060.01117.40
7.3.260.0060.01116.48
7.3.250.0100.01016.46
7.3.240.0110.00616.34
7.3.230.0070.01016.37
7.3.210.0040.01416.47
7.3.200.0130.00316.23
7.3.190.0140.00616.39
7.3.180.0140.00416.64
7.3.170.0110.00516.36
7.3.160.0080.00816.41
7.3.120.0070.00814.84
7.3.110.0080.00814.94
7.3.100.0060.01014.83
7.3.90.0050.00914.89
7.3.80.0050.01114.87
7.3.70.0040.00814.91
7.3.60.0070.00714.84
7.3.50.0080.00414.75
7.3.40.0030.00914.86
7.3.30.0050.00814.80
7.3.20.0050.01016.83
7.3.10.0050.00816.58
7.3.00.0080.00416.81
7.2.330.0090.00916.57
7.2.320.0000.01716.54
7.2.310.0110.00616.60
7.2.300.0030.01416.68
7.2.290.0130.01016.63
7.2.250.0110.00815.10
7.2.240.0090.00815.07
7.2.230.0080.00615.09
7.2.220.0020.01115.12
7.2.210.0040.01014.95
7.2.200.0060.00715.07
7.2.190.0050.00814.97
7.2.180.0060.00714.88
7.2.170.0040.00915.00
7.2.160.0080.01015.10
7.2.150.0050.01017.15
7.2.140.0020.01016.90
7.2.130.0040.01316.91
7.2.120.0060.01116.90
7.2.110.0130.00316.86
7.2.100.0040.00816.97
7.2.90.0080.00817.02
7.2.80.0020.01116.91
7.2.70.0060.00816.98
7.2.60.0030.01017.02
7.2.50.0030.01117.01
7.2.40.0060.00816.99
7.2.30.0050.01017.03
7.2.20.0040.01216.90
7.2.10.0070.00717.08
7.2.00.0050.01016.98
7.1.330.0080.00715.94
7.1.320.0090.00315.96
7.1.310.0030.00915.95
7.1.300.0080.00415.98
7.1.290.0050.00715.86
7.1.280.0030.01116.02
7.1.270.0070.00615.89
7.1.260.0050.00915.79
7.1.250.0020.01315.89
7.1.240.0030.00916.07
7.1.230.0040.00815.85
7.1.220.0060.01216.03
7.1.210.0000.01515.82
7.1.200.0050.00615.91
7.1.190.0030.01315.67
7.1.180.0070.00715.93
7.1.170.0110.00416.06
7.1.160.0040.00715.67
7.1.150.0040.01415.69
7.1.140.0000.01416.01
7.1.130.0040.00415.68
7.1.120.0060.00616.01
7.1.110.0070.00715.86
7.1.100.0000.01015.79
7.1.90.0100.00317.16
7.1.80.0020.01217.04
7.1.70.0100.00516.58
7.1.60.0120.00525.60
7.1.50.0130.00725.38
7.1.40.0070.01325.04
7.1.30.0100.00825.13
7.1.20.0110.00825.28
7.1.10.0050.01016.34
7.1.00.0050.00616.55
7.0.330.0100.00715.44
7.0.320.0030.01415.26
7.0.310.0030.01415.56
7.0.300.0090.00315.61
7.0.290.0070.00715.29
7.0.280.0090.00015.50
7.0.270.0060.01015.55
7.0.260.0090.00615.52
7.0.250.0000.01115.51
7.0.240.0090.00615.61
7.0.230.0000.01116.46
7.0.220.0030.01016.79
7.0.210.0000.01216.12
7.0.200.0060.00616.10
7.0.190.0030.01116.18
7.0.180.0020.01415.96
7.0.170.0030.01115.87
7.0.160.0040.00715.98
7.0.150.0020.01016.00
7.0.140.0060.00815.97
7.0.130.0050.00816.10
7.0.120.0030.00816.00
7.0.110.0020.01115.90
7.0.100.0000.01016.03
7.0.90.0100.00316.00
7.0.80.0020.01116.01
7.0.70.0050.00915.89
7.0.60.0060.00615.96
7.0.50.0040.00816.01
7.0.40.0020.01015.02
7.0.30.0050.00514.97
7.0.20.0050.00714.96
7.0.10.0040.00915.10
7.0.00.0030.00915.22
5.6.400.0070.01014.32
5.6.390.0060.01214.10
5.6.380.0030.01014.18
5.6.370.0000.01414.16
5.6.360.0070.00414.52
5.6.350.0030.00614.34
5.6.340.0000.01514.35
5.6.330.0090.00614.58
5.6.320.0060.00613.91
5.6.310.0040.00414.61
5.6.300.0070.00714.62
5.6.290.0000.00914.14
5.6.280.0080.00414.39
5.6.270.0000.01014.39
5.6.260.0040.00714.39
5.6.250.0000.01114.47
5.6.240.0080.00514.34
5.6.230.0100.00714.39
5.6.220.0000.00914.36
5.6.210.0030.01014.00
5.6.200.0090.00614.04
5.6.190.0060.00314.41
5.6.180.0080.00614.35
5.6.170.0000.01114.21
5.6.160.0100.00314.25
5.6.150.0040.01114.15
5.6.140.0040.01114.36
5.6.130.0070.00714.26
5.6.120.0000.01414.19
5.6.110.0070.00714.57
5.6.100.0060.00914.29
5.6.90.0070.00714.16
5.6.80.0070.00614.42
5.6.70.0060.00314.11
5.6.60.0030.00914.07
5.6.50.0000.01514.22
5.6.40.0040.00714.29
5.6.30.0060.00314.64
5.6.20.0060.00614.44
5.6.10.0030.01414.01
5.6.00.0030.00614.11

preferences:
192.05 ms | 403 KiB | 5 Q