3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "MULTILINESTRING ((-77.083060324719384 42.15108721847372, -77.087448024528669 42.151768518696542"; $pattern = '/((-?\d+\.\d+)\s(-?\d+\.\d+))/'; $arr = preg_match_all($pattern,$string,$matches); print_r($matches); $len = count($matches[0]); $coordinates = []; for($i=0;$i<$len;++$i){ $coordinates[] = [ $matches[2][$i], $matches[3][$i] ]; } print_r($coordinates);

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.0060.00216.71
8.5.00.0150.00820.13
8.4.150.0020.00014.05
8.4.140.0090.00817.89
8.4.130.0070.00517.93
8.4.120.0060.01020.59
8.4.110.0110.00722.36
8.4.100.0120.00918.08
8.4.90.0070.01018.14
8.4.80.0140.00617.97
8.4.70.0140.00619.73
8.4.60.0120.00818.78
8.4.50.0100.01117.75
8.4.40.0100.01019.47
8.4.30.0170.00318.07
8.4.20.0070.01419.60
8.4.10.0040.01218.84
8.3.280.0120.00818.52
8.3.270.0120.00716.67
8.3.260.0150.00616.98
8.3.250.0070.00918.90
8.3.240.0100.01017.33
8.3.230.0140.00516.98
8.3.220.0110.00916.95
8.3.210.0100.00916.74
8.3.200.0050.00416.91
8.3.190.0040.00517.08
8.3.180.0120.00617.00
8.3.170.0100.01019.10
8.3.160.0130.00616.62
8.3.150.0050.00319.06
8.3.140.0040.01118.98
8.3.130.0030.00516.81
8.3.120.0040.00420.88
8.3.110.0050.00320.94
8.3.100.0090.00024.06
8.3.90.0060.00326.77
8.3.80.0090.00318.56
8.3.70.0070.01416.63
8.3.60.0080.00818.55
8.3.50.0140.00018.52
8.3.40.0060.00918.92
8.3.30.0040.01218.84
8.3.20.0050.00321.73
8.3.10.0060.00323.66
8.3.00.0040.00419.68
8.2.290.0100.00820.60
8.2.280.0050.00418.26
8.2.270.0110.00716.84
8.2.260.0040.00416.81
8.2.250.0160.00016.75
8.2.240.0110.00719.19
8.2.230.0030.00622.58
8.2.220.0030.00637.54
8.2.210.0110.00726.77
8.2.200.0060.00316.88
8.2.190.0120.00316.75
8.2.180.0100.00718.41
8.2.170.0110.00722.96
8.2.160.0120.00919.04
8.2.150.0090.00024.18
8.2.140.0040.00424.66
8.2.130.0030.00619.21
8.2.120.0040.00426.35
8.2.110.0030.00721.06
8.2.100.0060.00617.91
8.2.90.0050.00318.09
8.2.80.0000.01117.97
8.2.70.0080.00018.16
8.2.60.0040.00417.93
8.2.50.0040.00418.10
8.2.40.0030.00620.21
8.2.30.0040.00419.43
8.2.20.0000.00818.18
8.2.10.0040.00418.05
8.2.00.0040.00418.17
8.1.330.0100.00921.73
8.1.320.0130.00816.17
8.1.310.0070.01118.54
8.1.300.0100.00016.51
8.1.290.0060.00330.84
8.1.280.0170.00325.92
8.1.270.0040.00424.01
8.1.260.0040.00426.35
8.1.250.0000.01028.09
8.1.240.0030.00622.00
8.1.230.0130.00020.83
8.1.220.0000.00817.76
8.1.210.0050.00318.95
8.1.200.0040.00817.35
8.1.190.0000.00817.35
8.1.180.0050.00318.10
8.1.170.0000.00818.78
8.1.160.0050.00218.98
8.1.150.0050.00219.07
8.1.140.0000.00717.73
8.1.130.0000.00818.95
8.1.120.0070.00017.61
8.1.110.0030.00517.60
8.1.100.0040.00417.61
8.1.90.0000.00817.65
8.1.80.0000.00817.49
8.1.70.0000.00717.60
8.1.60.0050.00517.62
8.1.50.0040.00417.65
8.1.40.0000.00817.67
8.1.30.0060.00317.84
8.1.20.0060.00317.81
8.1.10.0040.00417.73
8.1.00.0040.00417.63
8.0.300.0000.00721.64
8.0.290.0050.00316.88
8.0.280.0040.00418.39
8.0.270.0070.00016.88
8.0.260.0030.00317.32
8.0.250.0000.00717.02
8.0.240.0000.00817.08
8.0.230.0000.00716.98
8.0.220.0050.00217.00
8.0.210.0040.00416.94
8.0.200.0030.00717.16
8.0.190.0070.00017.05
8.0.180.0040.00417.07
8.0.170.0080.00017.04
8.0.160.0050.00217.02
8.0.150.0000.00716.95
8.0.140.0070.00016.88
8.0.130.0060.00013.49
8.0.120.0000.00717.05
8.0.110.0000.00716.92
8.0.100.0040.00417.10
8.0.90.0040.00417.13
8.0.80.0000.02117.09
8.0.70.0000.00716.92
8.0.60.0000.00817.07
8.0.50.0000.00817.07
8.0.30.0070.01117.22
8.0.20.0140.00917.40
8.0.10.0050.00317.13
8.0.00.0100.01017.07
7.4.330.0050.00015.55
7.4.320.0040.00416.72
7.4.300.0000.00616.70
7.4.290.0000.00816.83
7.4.280.0090.00016.81
7.4.270.0030.00316.68
7.4.260.0000.00716.79
7.4.250.0000.00816.60
7.4.240.0000.00816.74
7.4.230.0070.00016.69
7.4.220.0040.00416.83
7.4.210.0090.00616.78
7.4.200.0050.00316.90
7.4.160.0060.01016.69
7.4.140.0130.00717.86
7.4.130.0080.01116.52
7.4.120.0090.01016.69
7.4.110.0100.00716.81
7.4.100.0090.00916.64
7.4.90.0120.00316.50
7.4.80.0040.01819.39
7.4.70.0040.01216.64
7.4.60.0130.00616.62
7.4.50.0070.01016.76
7.4.40.0070.01016.69
7.4.00.0100.00615.14
7.3.330.0050.00013.20
7.3.320.0060.00013.35
7.3.310.0000.00716.52
7.3.300.0070.00016.36
7.3.290.0000.00716.25
7.3.280.0120.00816.44
7.3.260.0110.01016.60
7.3.240.0090.00816.59
7.3.230.0070.01016.43
7.3.210.0030.01416.81
7.3.200.0080.00816.47
7.3.190.0070.01016.38
7.3.180.0100.00616.61
7.3.170.0120.00616.60
7.3.160.0060.01116.53
7.2.330.0000.01716.63
7.2.320.0070.01116.82
7.2.310.0110.00816.77
7.2.300.0100.00616.66
7.2.290.0070.01116.87
7.2.100.0370.00714.98
7.2.90.0480.00015.05
7.2.80.0590.00714.90
7.2.70.0670.01015.06
7.2.60.0180.00815.86
7.2.50.0260.01015.13
7.2.40.1630.00816.64
7.2.30.2230.01116.72
7.2.20.2460.00916.65
7.2.10.2580.01116.43
7.2.00.2140.01116.77
7.1.220.0170.00614.22
7.1.210.0970.00713.80
7.1.200.0410.00815.11
7.1.190.0140.00713.88
7.1.180.0170.00613.88
7.1.170.0570.01014.14
7.1.160.2430.01115.58
7.1.150.2340.01715.43
7.1.140.3250.00915.39
7.1.130.1970.00815.39
7.1.120.2630.00815.61
7.1.110.1830.01215.30
7.1.100.1940.00715.50
7.1.90.3050.00915.23
7.1.80.3190.00815.45
7.1.70.3340.00814.72
7.1.60.2960.01632.74
7.1.50.4980.01332.59
7.1.40.4830.01232.50
7.1.30.3830.01632.51
7.1.20.4350.01332.64
7.1.10.4150.00914.49
7.1.00.1880.00614.74
5.6.380.0130.01014.30

preferences:
47.18 ms | 403 KiB | 5 Q