3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getStringBetween($str,$from,$to){ if (preg_match("/$from([^$from]+)$to/", $str, $matches)) return $matches[1]; else return ''; } $str = 'SIM UMTS ITALIA 35GB BLACK'; echo getStringBetween($str, ' ', 'GB') . "\n"; $str2 = 'SIM UMTS ITALIA IPHONE 2 MEGAPIXEL'; echo getStringBetween($str2, ' ', 'GB') . "\n"; $str3 = 'SIM UMTS ITALIA 15.5" BLACK'; echo getStringBetween($str3, ' ', '"') . "\n";

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.20.0110.00819.41
8.5.10.0120.00716.77
8.5.00.0140.00720.45
8.4.160.0100.01223.94
8.4.150.0030.00014.05
8.4.140.0160.01017.88
8.4.130.0110.01017.89
8.4.120.0150.00520.41
8.4.110.0120.01218.61
8.4.100.0110.00918.83
8.4.90.0150.00520.80
8.4.80.0100.01018.73
8.4.70.0120.00819.07
8.4.60.0130.00718.88
8.4.50.0130.00918.66
8.4.40.0040.01118.15
8.4.30.0060.00317.77
8.4.20.0070.00318.80
8.4.10.0160.00319.55
8.3.290.0170.00320.94
8.3.280.0110.00718.53
8.3.270.0100.00916.61
8.3.260.0150.00516.76
8.3.250.0120.00716.92
8.3.240.0120.01016.62
8.3.230.0130.00616.86
8.3.220.0100.00618.91
8.3.210.0110.00816.70
8.3.200.0030.00516.61
8.3.190.0110.00917.05
8.3.180.0110.00716.96
8.3.170.0140.00417.26
8.3.160.0110.00718.53
8.3.150.0090.00918.74
8.3.140.0000.00816.91
8.3.130.0040.00718.54
8.3.120.0090.00920.66
8.3.110.0060.00920.94
8.3.100.0030.00718.37
8.3.90.0110.00418.54
8.3.80.0060.00316.75
8.3.70.0200.00316.75
8.3.60.0120.00318.43
8.3.50.0090.00918.23
8.3.40.0140.00418.70
8.3.30.0070.00718.97
8.3.20.0070.00021.86
8.3.10.0030.00620.59
8.3.00.0090.00017.75
8.2.300.0120.00922.33
8.2.290.0090.01020.18
8.2.280.0100.00918.41
8.2.270.0040.00417.55
8.2.260.0060.00318.41
8.2.250.0030.00717.12
8.2.240.0060.00319.20
8.2.230.0060.00322.58
8.2.220.0110.00724.06
8.2.210.0120.00826.77
8.2.200.0030.00616.88
8.2.190.0100.01018.42
8.2.180.0110.00725.92
8.2.170.0120.00322.96
8.2.160.0120.00322.01
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0050.00318.21
8.2.120.0040.00426.35
8.2.110.0090.00921.13
8.2.100.0080.00418.03
8.2.90.0050.00317.88
8.2.80.0060.00317.97
8.2.70.0040.00417.93
8.2.60.0040.00418.22
8.2.50.0080.00018.10
8.2.40.0030.00619.50
8.2.30.0070.00019.34
8.2.20.0030.00618.15
8.2.10.0040.00419.15
8.2.00.0040.00417.99
8.1.340.0110.01017.73
8.1.330.0110.00821.88
8.1.320.0110.00916.27
8.1.310.0100.00718.50
8.1.300.0070.01116.46
8.1.290.0110.00018.88
8.1.280.0030.01025.92
8.1.270.0000.00720.28
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0040.00423.97
8.1.230.0110.00022.73
8.1.220.0030.00617.77
8.1.210.0070.00319.14
8.1.200.0060.00317.47
8.1.190.0050.00317.22
8.1.180.0050.00518.10
8.1.170.0040.00418.71
8.1.160.0040.00418.90
8.1.150.0040.00418.92
8.1.140.0070.00018.83
8.1.130.0000.00721.96
8.1.120.0070.00017.63
8.1.110.0080.00017.58
8.1.100.0060.00317.62
8.1.90.0000.00717.62
8.1.80.0040.00417.61
8.1.70.0000.00717.64
8.1.60.0000.00917.76
8.1.50.0050.00317.49
8.1.40.0050.00517.57
8.1.30.0030.00517.68
8.1.20.0090.00017.77
8.1.10.0000.01117.63
8.1.00.0050.00317.53
8.0.300.0060.00319.77
8.0.290.0030.00616.88
8.0.280.0040.00418.47
8.0.270.0030.00716.96
8.0.260.0030.00618.47
8.0.250.0030.00317.11
8.0.240.0030.00317.10
8.0.230.0070.00317.07
8.0.220.0000.00717.01
8.0.210.0000.00716.93
8.0.200.0000.00717.07
8.0.190.0040.00417.12
8.0.180.0040.00417.05
8.0.170.0070.00417.07
8.0.160.0000.00817.11
8.0.150.0040.00417.00
8.0.140.0030.00516.95
8.0.130.0030.00313.41
8.0.120.0000.00816.97
8.0.110.0040.00417.06
8.0.100.0060.00316.84
8.0.90.0040.00417.00
8.0.80.0070.01016.94
8.0.70.0040.00417.02
8.0.60.0050.00317.05
8.0.50.0040.00416.89
8.0.30.0090.00617.48
8.0.20.0160.00917.03
8.0.10.0040.00417.05
8.0.00.0120.00616.88
7.4.330.0000.00515.55
7.4.320.0000.00616.80
7.4.300.0040.00416.83
7.4.290.0030.00316.64
7.4.280.0000.00816.85
7.4.270.0070.00016.71
7.4.260.0030.00616.69
7.4.250.0050.00516.59
7.4.240.0050.00216.84
7.4.230.0050.00316.61
7.4.220.0070.00316.61
7.4.210.0070.01016.87
7.4.200.0030.00316.88
7.4.160.0130.00516.75
7.4.140.0100.01317.86
7.4.130.0150.00616.56
7.4.120.0040.01316.66
7.4.110.0130.01316.66
7.4.100.0090.01216.54
7.4.90.0070.01016.71
7.4.80.0070.01019.39
7.4.70.0160.00716.69
7.4.60.0160.00616.72
7.4.50.0130.00316.67
7.4.40.0100.00716.72
7.4.00.0110.00415.14
7.3.330.0000.00513.38
7.3.320.0000.00613.45
7.3.310.0000.00716.50
7.3.300.0070.00016.27
7.3.290.0030.00316.32
7.3.280.0110.00616.43
7.3.260.0120.00616.59
7.3.240.0140.00616.57
7.3.230.0070.01116.78
7.3.210.0130.00316.70
7.3.200.0100.00716.61
7.3.190.0120.00916.85
7.3.180.0080.01216.40
7.3.170.0060.01316.78
7.3.160.0040.01616.46
7.3.10.0550.00315.00
7.3.00.0430.00914.97
7.2.330.0090.00916.76
7.2.320.0090.01516.90
7.2.310.0130.00316.84
7.2.300.0070.01016.70
7.2.290.0130.00316.67
7.2.130.0490.00615.18
7.2.120.0430.00715.10
7.2.110.0380.00314.87
7.2.100.0440.00314.96
7.2.90.0900.00715.10
7.2.80.0590.00415.30
7.2.70.0350.00615.05
7.2.60.0470.00715.12
7.2.50.0470.00014.77
7.2.40.0380.00315.07
7.2.30.0490.01315.18
7.2.20.0320.00614.98
7.2.10.0350.00315.08
7.2.00.0320.00615.16
7.1.250.0500.00314.29

preferences:
39.91 ms | 403 KiB | 5 Q