3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'SIM UMTS ITALIA 15.5" BLACK'; echo preg_replace('/^.*?(\d[\d.]*)".*$/', '$1', $str) . "\n"; $from = " "; $to = '"'; function getStringBetween($str,$from,$to){ return preg_replace("/^.*$from([^$from]+)$to.*$/", '$1', $str); } echo getStringBetween($str, $from, $to);

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.70.0180.00318.43
8.3.60.0130.00318.68
8.3.50.0040.01118.44
8.3.40.0120.00318.66
8.3.30.0030.01218.79
8.3.20.0040.00421.86
8.3.10.0080.00020.47
8.3.00.0090.00017.75
8.2.190.0150.00016.75
8.2.180.0110.00716.75
8.2.170.0090.00622.96
8.2.160.0100.00322.43
8.2.150.0080.00025.66
8.2.140.0060.00324.66
8.2.130.0000.00826.16
8.2.120.0080.00021.25
8.2.110.0100.00021.24
8.2.100.0120.00017.78
8.2.90.0040.00418.09
8.2.80.0040.00417.97
8.2.70.0000.00817.89
8.2.60.0040.00418.09
8.2.50.0000.00818.10
8.2.40.0030.00519.53
8.2.30.0050.00319.17
8.2.20.0000.00818.16
8.2.10.0000.00719.29
8.2.00.0050.00318.03
8.1.280.0140.00725.92
8.1.270.0050.00320.45
8.1.260.0060.00326.35
8.1.250.0030.00628.09
8.1.240.0000.01022.50
8.1.230.0030.00920.96
8.1.220.0050.00317.74
8.1.210.0090.00018.84
8.1.200.0000.00817.35
8.1.190.0030.00617.48
8.1.180.0030.00618.10
8.1.170.0000.00918.77
8.1.160.0050.00318.87
8.1.150.0000.00719.01
8.1.140.0050.00218.92
8.1.130.0070.00321.89
8.1.120.0040.00417.60
8.1.110.0030.00617.61
8.1.100.0000.00817.63
8.1.90.0070.00317.62
8.1.80.0000.00817.71
8.1.70.0040.00417.63
8.1.60.0040.00417.81
8.1.50.0040.00417.57
8.1.40.0060.00317.57
8.1.30.0040.00417.71
8.1.20.0060.00317.83
8.1.10.0040.00417.67
8.1.00.0040.00417.62
8.0.300.0000.00719.86
8.0.290.0040.00417.00
8.0.280.0000.00718.39
8.0.270.0030.00316.94
8.0.260.0090.00018.48
8.0.250.0090.00017.08
8.0.240.0080.00017.11
8.0.230.0030.00317.09
8.0.220.0040.00417.12
8.0.210.0060.00317.04
8.0.200.0020.00516.97
8.0.190.0080.00017.13
8.0.180.0040.00417.08
8.0.170.0000.00917.12
8.0.160.0000.00717.03
8.0.150.0070.00016.95
8.0.140.0070.00017.00
8.0.130.0060.00013.48
8.0.120.0040.00416.98
8.0.110.0000.00816.98
8.0.100.0030.00617.00
8.0.90.0040.00417.07
8.0.80.0090.01117.04
8.0.70.0080.00016.95
8.0.60.0040.00416.92
8.0.50.0040.00417.07
8.0.30.0110.00717.34
8.0.20.0090.00917.51
8.0.10.0040.00417.18
8.0.00.0090.00816.98
7.4.330.0000.00515.55
7.4.320.0000.00716.68
7.4.300.0030.00316.73
7.4.290.0030.00316.84
7.4.280.0000.00816.71
7.4.270.0000.00716.59
7.4.260.0090.00016.74
7.4.250.0000.00716.77
7.4.240.0000.00816.72
7.4.230.0030.00316.88
7.4.220.0030.00516.63
7.4.210.0090.01016.71
7.4.200.0030.00316.71
7.4.160.0080.00716.67
7.4.140.0110.00717.86
7.4.130.0030.01316.72
7.4.120.0070.01016.79
7.4.110.0070.01116.63
7.4.100.0130.01316.84
7.4.90.0090.00916.56
7.4.80.0040.01319.39
7.4.70.0140.00316.64
7.4.60.0100.00616.63
7.4.50.0100.00416.65
7.4.40.0070.01016.72
7.4.00.0080.00815.24
7.3.330.0000.00613.43
7.3.320.0060.00013.52
7.3.310.0070.00016.52
7.3.300.0030.00316.33
7.3.290.0080.00016.38
7.3.280.0080.01016.47
7.3.260.0110.00716.67
7.3.240.0100.01316.69
7.3.230.0060.01016.66
7.3.210.0160.00816.73
7.3.200.0130.00316.76
7.3.190.0090.00916.35
7.3.180.0110.00816.89
7.3.170.0150.00616.88
7.3.160.0040.01616.61
7.3.10.0440.00914.81
7.3.00.0970.01714.47
7.2.330.0060.01216.61
7.2.320.0110.00616.58
7.2.310.0110.00616.55
7.2.300.0060.01016.69
7.2.290.0120.00616.79
7.2.130.0530.01314.61
7.2.120.0480.01014.76
7.2.110.0510.00314.98
7.2.100.0610.01315.17
7.2.90.0510.00315.27
7.2.80.0650.01015.13
7.2.70.0650.00714.98
7.2.60.0390.01014.84
7.2.50.0440.01214.73
7.2.40.0620.01114.87
7.2.30.0440.02114.82
7.2.20.0560.00014.78
7.2.10.0510.01414.88
7.2.00.0560.00714.93
7.1.250.0480.00713.69

preferences:
48.32 ms | 401 KiB | 5 Q