3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '"4:01pm - <b>n1234</b>",+0.50'; preg_match('/\"(.*?)\s-\s(.*?)\",(.*)/', strip_tags($str), $matches); unset($matches[0]); // unset [0] because that is the full match. $matches[] = array_shift($matches); // takes first item and makes it last. echo implode("<br>\n", $matches); //var_dump($matches);

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.0160.00618.03
8.5.00.0120.00920.32
8.4.150.0030.00014.05
8.4.140.0190.01517.74
8.4.130.0040.00718.79
8.4.120.0090.01118.03
8.4.110.0120.00917.88
8.4.100.0150.00617.98
8.4.90.0120.00820.71
8.4.80.0140.00619.06
8.4.70.0150.00618.07
8.4.60.0060.00219.00
8.4.50.0050.00419.46
8.4.40.0120.00919.73
8.4.30.0170.00319.55
8.4.20.0040.01517.90
8.4.10.0060.00319.56
8.3.280.0120.01018.70
8.3.270.0170.00816.91
8.3.260.0050.00416.63
8.3.250.0110.00916.80
8.3.240.0080.00816.77
8.3.230.0100.00616.86
8.3.220.0130.00518.82
8.3.210.0110.00916.62
8.3.200.0040.00416.84
8.3.190.0040.00417.23
8.3.180.0130.00618.64
8.3.170.0180.00017.07
8.3.160.0040.00718.71
8.3.150.0120.00620.71
8.3.140.0050.00317.18
8.3.130.0030.00518.53
8.3.120.0090.00619.01
8.3.110.0050.00320.94
8.3.100.0030.00616.53
8.3.90.0040.00418.42
8.3.80.0050.00519.36
8.3.70.0210.00016.58
8.3.60.0070.00718.43
8.3.50.0100.00816.55
8.3.40.0060.00919.04
8.3.30.0160.00018.96
8.3.20.0040.00420.17
8.3.10.0080.00021.85
8.3.00.0040.00719.69
8.2.290.0060.00516.72
8.2.280.0040.00520.65
8.2.270.0070.01117.26
8.2.260.0030.01218.73
8.2.250.0070.01117.10
8.2.240.0030.00618.96
8.2.230.0060.00322.58
8.2.220.0060.00324.06
8.2.210.0040.00426.77
8.2.200.0000.00918.66
8.2.190.0060.00916.75
8.2.180.0080.00825.92
8.2.170.0110.00419.04
8.2.160.0140.00719.29
8.2.150.0050.00224.18
8.2.140.0080.00024.66
8.2.130.0000.00820.43
8.2.120.0070.00026.35
8.2.110.0100.00621.23
8.2.100.0080.00318.07
8.2.90.0030.00618.09
8.2.80.0040.00418.04
8.2.70.0000.00818.05
8.2.60.0040.00418.22
8.2.50.0000.00818.10
8.2.40.0070.00020.29
8.2.30.0040.00419.22
8.2.20.0040.00418.26
8.2.10.0070.00018.09
8.2.00.0000.00718.05
8.1.330.0120.00816.27
8.1.320.0080.00216.18
8.1.310.0070.01118.50
8.1.300.0080.00019.69
8.1.290.0060.00318.88
8.1.280.0100.00725.92
8.1.270.0170.00022.11
8.1.260.0080.00026.35
8.1.250.0120.00628.09
8.1.240.0000.00919.25
8.1.230.0040.00820.97
8.1.220.0040.00417.79
8.1.210.0080.00018.77
8.1.200.0090.00017.48
8.1.190.0040.00417.22
8.1.180.0090.00018.10
8.1.170.0030.00618.84
8.1.160.0040.00418.81
8.1.150.0050.00318.87
8.1.140.0070.00019.55
8.1.130.0070.00020.68
8.1.120.0080.00017.57
8.1.110.0050.00517.42
8.1.100.0040.00417.46
8.1.90.0000.00917.57
8.1.80.0000.00717.59
8.1.70.0000.00717.52
8.1.60.0080.00017.74
8.1.50.0040.00417.48
8.1.40.0040.00417.45
8.1.30.0040.00417.65
8.1.20.0000.00817.66
8.1.10.0070.00017.57
8.1.00.0040.00417.59
8.0.300.0030.00519.78
8.0.290.0040.00416.88
8.0.280.0000.00718.58
8.0.270.0060.00616.88
8.0.260.0060.00018.91
8.0.250.0000.00716.98
8.0.240.0090.00017.10
8.0.230.0000.00716.94
8.0.220.0060.00316.96
8.0.210.0050.00316.99
8.0.200.0000.00717.00
8.0.190.0030.00616.92
8.0.180.0030.00716.94
8.0.170.0000.00716.99
8.0.160.0030.00516.82
8.0.150.0080.00016.82
8.0.140.0080.00016.92
8.0.130.0000.00513.44
8.0.120.0000.00816.96
8.0.110.0060.00316.88
8.0.100.0000.00716.95
8.0.90.0040.00416.93
8.0.80.0100.00517.05
8.0.70.0040.00416.98
8.0.60.0040.00417.05
8.0.50.0040.00416.87
8.0.30.0110.00717.13
8.0.20.0130.00717.41
8.0.10.0030.00517.01
8.0.00.0090.01216.96
7.4.330.0000.00415.55
7.4.320.0000.00716.67
7.4.300.0000.00716.71
7.4.290.0030.00316.76
7.4.280.0000.00716.82
7.4.270.0000.00716.83
7.4.260.0000.00716.74
7.4.250.0040.00416.70
7.4.240.0070.00016.77
7.4.230.0000.00716.63
7.4.220.0040.01616.85
7.4.210.0040.01016.84
7.4.200.0070.00016.58
7.4.160.0050.01116.58
7.4.150.0060.01217.40
7.4.140.0090.00717.86
7.4.130.0130.00816.51
7.4.120.0100.01116.70
7.4.110.0120.00416.75
7.4.100.0120.00616.89
7.4.90.0130.00416.70
7.4.80.0070.01019.39
7.4.70.0040.01416.82
7.4.60.0070.01016.44
7.4.50.0120.00316.50
7.4.40.0110.00516.61
7.4.30.0100.01316.64
7.4.00.0060.01015.14
7.3.330.0080.00013.34
7.3.320.0000.00613.33
7.3.310.0000.00716.42
7.3.300.0030.00316.43
7.3.290.0110.00816.42
7.3.280.0080.00916.41
7.3.270.0110.00617.40
7.3.260.0070.01316.50
7.3.250.0110.00816.51
7.3.240.0120.00616.67
7.3.230.0060.01216.67
7.3.210.0130.00316.73
7.3.200.0030.01316.53
7.3.190.0090.00916.38
7.3.180.0100.00716.63
7.3.170.0080.00716.43
7.3.160.0110.00516.46
7.3.120.0030.00915.20
7.3.110.0070.01014.82
7.3.100.0090.00614.78
7.3.90.0090.00615.17
7.3.80.0030.01314.59
7.3.70.0070.00715.11
7.3.60.0000.01115.03
7.3.50.0100.00714.98
7.3.40.0030.00915.01
7.3.30.0030.00614.89
7.3.20.0000.01116.60
7.3.10.0070.00816.81
7.3.00.0040.01016.72
7.2.330.0090.00916.71
7.2.320.0090.01316.68
7.2.310.0100.00716.82
7.2.300.0140.00316.90
7.2.290.0110.01116.84
7.2.250.0100.01015.12
7.2.240.0000.01915.26
7.2.230.0080.00814.89
7.2.220.0100.01015.03
7.2.210.0030.01015.29
7.2.200.0030.01415.39
7.2.190.0000.01315.28
7.2.180.0110.00715.17
7.2.170.0100.00315.16
7.2.130.0030.01016.74
7.2.120.0040.01517.07
7.2.110.0070.01016.87
7.2.100.0030.00616.98
7.2.90.0070.00717.18
7.2.80.0060.00617.11
7.2.70.0030.01117.07
7.2.60.0090.00716.89
7.2.50.0050.00516.78
7.2.40.0040.01217.09
7.2.30.0040.01217.02
7.2.20.0030.01417.02
7.2.10.0040.01117.05
7.2.00.0030.00617.01
7.1.330.0080.00316.19
7.1.320.0080.00615.94
7.1.310.0070.00715.73
7.1.300.0100.00715.83
7.1.290.0110.00416.00
7.1.280.0050.00315.77
7.1.270.0040.00715.94
7.1.260.0060.00616.13
7.1.250.0070.00315.73
7.1.200.0070.00716.08
7.1.80.0130.01018.19
7.1.70.0090.00617.19
7.1.60.0180.01635.10
7.1.50.0100.02735.00
7.1.40.0150.02334.60
7.1.30.0250.01634.92
7.1.20.0210.01734.98
7.1.10.0000.01616.86
7.1.00.0030.01316.95
7.0.200.0060.01317.00
7.0.190.0000.01616.88
7.0.180.0110.00716.55
7.0.170.0020.01216.39
7.0.160.0030.01316.40
7.0.150.0080.00816.71
7.0.140.0090.01216.62
7.0.130.0060.01016.74
7.0.120.0130.00616.66
7.0.110.0060.01216.52
7.0.100.0030.01616.66
7.0.90.0060.01316.76
7.0.80.0110.00916.34
7.0.70.0080.00816.59
7.0.60.0060.01216.40
7.0.50.0030.01016.76
7.0.40.0110.00616.64
7.0.30.0030.01216.64
7.0.20.0110.00616.58
7.0.10.0080.01116.59
7.0.00.0090.00916.71

preferences:
43.4 ms | 403 KiB | 5 Q