3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '<tag> etc</tag> <p numbers="11.2,1.1 2,3,3.1 33"></p> <div> etc</div>'; preg_match('/<p.*numbers="(.*)"/', $string, $match); preg_match_all('/(\d+(\.?|\s?)(\d+)?)/', $match[0], $matches); echo '<pre>'; print_r($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.4.120.0100.01124.18
8.4.110.0120.00822.45
8.4.100.0130.00619.04
8.4.90.0060.00318.89
8.4.80.0120.00720.69
8.4.70.0050.00617.95
8.4.60.0100.00918.82
8.4.50.0120.00918.70
8.4.40.0100.01017.86
8.4.30.0130.00719.79
8.4.20.0120.00918.71
8.4.10.0200.00018.07
8.3.250.0030.00418.69
8.3.240.0090.00717.04
8.3.230.0050.00716.83
8.3.220.0020.00618.77
8.3.210.0080.01016.68
8.3.200.0120.00716.87
8.3.190.0100.01117.07
8.3.180.0080.00617.23
8.3.170.0110.00720.51
8.3.160.0140.00417.15
8.3.150.0180.00016.92
8.3.140.0080.01116.84
8.3.130.0090.00016.59
8.3.120.0000.00920.76
8.3.110.0030.00516.61
8.3.100.0040.00424.06
8.3.90.0070.00726.77
8.3.80.0060.00317.97
8.3.70.0140.00718.28
8.3.60.0120.00318.68
8.3.50.0080.00717.24
8.3.40.0100.00619.14
8.3.30.0030.01018.79
8.3.20.0000.00819.25
8.3.10.0050.00323.46
8.3.00.0040.00422.46
8.2.290.0140.00420.29
8.2.280.0040.00418.65
8.2.270.0160.00317.01
8.2.260.0110.00416.96
8.2.250.0030.00616.53
8.2.240.0060.00317.55
8.2.230.0060.00320.94
8.2.220.0040.00437.54
8.2.210.0040.00426.77
8.2.200.0030.00616.63
8.2.190.0080.00816.88
8.2.180.0040.01116.63
8.2.170.0040.01122.96
8.2.160.0080.01221.14
8.2.150.0030.01225.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00020.85
8.2.110.0030.00619.30
8.2.100.0060.00618.13
8.2.90.0040.00417.88
8.2.80.0060.00319.21
8.2.70.0000.00818.05
8.2.60.0040.00418.16
8.2.50.0040.00418.10
8.2.40.0080.00019.30
8.2.30.0040.00420.72
8.2.20.0030.00518.10
8.2.10.0000.00819.80
8.2.00.0040.00419.43
8.1.330.0120.00721.64
8.1.320.0060.01316.16
8.1.310.0070.01116.75
8.1.300.0000.00818.60
8.1.290.0090.00030.84
8.1.280.0110.00425.92
8.1.270.0050.00324.00
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0030.00721.18
8.1.230.0040.00719.00
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0000.00817.23
8.1.180.0050.00218.10
8.1.170.0060.00318.78
8.1.160.0070.00018.86
8.1.150.0000.00718.83
8.1.140.0030.00618.92
8.1.130.0030.00819.00
8.1.120.0030.00417.62
8.1.110.0070.00017.52
8.1.100.0000.00717.56
8.1.90.0000.00717.57
8.1.80.0040.00417.59
8.1.70.0050.00317.51
8.1.60.0060.00317.50
8.1.50.0040.00417.52
8.1.40.0000.00817.52
8.1.30.0040.00717.64
8.1.20.0080.00017.72
8.1.10.0030.00517.62
8.1.00.0000.00817.64
8.0.300.0080.00018.77
8.0.290.0040.00416.88
8.0.280.0040.00418.37
8.0.270.0050.00217.16
8.0.260.0030.00318.52
8.0.250.0000.00717.00
8.0.240.0000.00816.98
8.0.230.0070.00017.01
8.0.220.0040.00416.88
8.0.210.0070.00016.85
8.0.200.0000.00717.08
8.0.190.0040.00417.00
8.0.180.0040.00416.93
8.0.170.0080.00017.01
8.0.160.0030.00517.06
8.0.150.0080.00016.91
8.0.140.0000.00716.96
8.0.130.0000.00613.48
8.0.120.0050.00216.97
8.0.110.0030.00316.90
8.0.100.0040.00417.05
8.0.90.0040.00417.03
8.0.80.0030.01517.01
8.0.70.0040.00417.02
8.0.60.0070.00016.97
8.0.50.0000.00716.93
8.0.30.0110.01017.31
8.0.20.0160.01017.67
8.0.10.0000.00817.16
8.0.00.0120.00916.97
7.4.330.0060.00015.55
7.4.320.0030.00316.77
7.4.300.0000.00616.70
7.4.290.0070.00016.80
7.4.280.0080.00016.65
7.4.270.0040.00416.69
7.4.260.0050.00316.64
7.4.250.0050.00216.64
7.4.240.0030.00316.71
7.4.230.0030.00316.79
7.4.220.0030.00616.50
7.4.210.0050.01216.70
7.4.200.0000.00816.86
7.4.160.0130.01016.73
7.4.140.0090.00817.86
7.4.130.0120.00916.75
7.4.120.0070.01116.68
7.4.110.0100.00716.46
7.4.100.0090.00916.73
7.4.90.0150.00316.57
7.4.80.0120.00619.39
7.4.70.0070.01016.77
7.4.60.0070.01416.59
7.4.50.0090.00316.56
7.4.40.0120.01116.77
7.4.00.0060.01014.94
7.3.330.0030.00313.30
7.3.320.0000.00613.20
7.3.310.0000.00716.30
7.3.300.0030.00316.32
7.3.290.0000.00716.40
7.3.280.0060.00916.35
7.3.260.0060.01116.54
7.3.240.0130.00716.45
7.3.230.0110.01116.77
7.3.210.0150.00316.50
7.3.200.0130.00916.68
7.3.190.0000.01516.63
7.3.180.0070.01416.46
7.3.170.0060.01016.47
7.3.160.0080.00816.68
7.2.330.0090.00916.66
7.2.320.0110.01116.70
7.2.310.0120.00616.65
7.2.300.0080.01616.85
7.2.290.0050.01016.70
7.2.90.1060.00914.83
7.2.80.0550.00014.86
7.2.70.0120.00814.91
7.2.60.0110.01115.08
7.2.50.0230.00814.90
7.2.40.0210.00014.91
7.2.30.0090.00615.02
7.2.20.0080.00815.16
7.2.10.0180.00614.66
7.2.00.1050.00414.95
7.1.210.0080.01114.06
7.1.200.0060.00914.04
7.1.190.0100.00713.78
7.1.180.1520.00713.92
7.1.170.0170.00713.71
7.1.160.0060.01214.06
7.1.150.0110.00614.04
7.1.140.0670.01213.93
7.1.130.0210.01014.00
7.1.120.0140.00514.06
7.1.110.0500.01013.71
7.1.100.1680.00314.06
7.1.90.0260.00714.03
7.1.80.0060.01014.12
7.1.70.0700.00713.65
7.1.60.0600.00631.99
7.1.50.0780.01731.83
7.1.40.0280.00631.72
7.1.30.0720.00331.86
7.1.20.0310.01331.59
7.1.10.0770.00013.84
7.1.00.0890.00014.09

preferences:
27.93 ms | 403 KiB | 5 Q