3v4l.org

run code in 300+ PHP versions simultaneously
<?php // m = re.search('Episode (\d+)', 'series[Episode 37]-03th_July_2010-YouTube', re.IGNORECASE) $string = "Hello! 123 test this? 456. done? 100%"; $int = intval(preg_replace('Episode (\d+)', '', $string), 10); echo $int;

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.60.0120.00318.43
8.3.50.0100.01016.51
8.3.40.0070.00718.59
8.3.30.0000.01418.71
8.3.20.0090.00018.98
8.3.10.0030.00519.03
8.3.00.0060.00323.41
8.2.180.0170.00018.41
8.2.170.0100.00322.96
8.2.160.0070.00720.37
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0000.00819.82
8.2.120.0050.00326.35
8.2.110.0070.00421.12
8.2.100.0040.00718.09
8.2.90.0030.00519.21
8.2.80.0080.00017.97
8.2.70.0000.00817.88
8.2.60.0040.00418.03
8.2.50.0050.00318.10
8.2.40.0070.00019.30
8.2.30.0000.00719.33
8.2.20.0040.00418.07
8.2.10.0000.00818.16
8.2.00.0000.00719.47
8.1.280.0000.01525.92
8.1.270.0080.00022.21
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0080.00021.25
8.1.230.0070.00417.82
8.1.220.0090.00017.80
8.1.210.0050.00318.77
8.1.200.0060.00317.22
8.1.190.0030.00617.23
8.1.180.0040.00418.10
8.1.170.0050.00318.51
8.1.160.0070.00318.75
8.1.150.0000.00718.88
8.1.140.0030.00317.62
8.1.130.0090.00018.87
8.1.120.0030.00317.30
8.1.110.0050.00317.28
8.1.100.0050.00217.41
8.1.90.0070.00017.26
8.1.80.0070.00017.32
8.1.70.0040.00417.35
8.1.60.0040.00417.34
8.1.50.0090.00317.38
8.1.40.0040.00417.33
8.1.30.0040.00417.47
8.1.20.0040.00417.48
8.1.10.0030.00617.50
8.1.00.0040.00417.31
8.0.300.0000.00718.77
8.0.290.0000.00916.88
8.0.280.0040.00418.36
8.0.270.0040.00417.16
8.0.260.0030.00317.23
8.0.250.0000.01017.01
8.0.240.0000.00716.91
8.0.230.0030.00516.82
8.0.220.0000.00716.82
8.0.210.0050.00316.93
8.0.200.0000.00717.00
8.0.190.0040.00416.92
8.0.180.0060.00316.86
8.0.170.0040.00416.89
8.0.160.0000.00716.84
8.0.150.0040.00416.82
8.0.140.0000.00716.87
8.0.130.0030.00313.34
8.0.120.0060.00316.87
8.0.110.0000.00816.79
8.0.100.0020.00516.91
8.0.90.0040.00416.72
8.0.80.0080.00816.87
8.0.70.0040.00416.75
8.0.60.0000.00716.86
8.0.50.0000.00816.67
8.0.30.0090.00716.93
8.0.20.0120.00917.40
8.0.10.0050.00317.02
8.0.00.0080.00916.74
7.4.330.0050.00015.55
7.4.320.0000.00716.42
7.4.300.0030.00316.33
7.4.290.0040.00416.53
7.4.280.0040.00316.45
7.4.270.0000.00716.50
7.4.260.0040.00416.43
7.4.250.0040.00416.34
7.4.240.0030.00316.42
7.4.230.0040.00416.23
7.4.220.0040.00416.62
7.4.210.0060.00916.50
7.4.200.0040.00416.35
7.4.160.0080.00716.40
7.4.140.0110.00617.86
7.4.130.0070.01016.45
7.4.120.0120.00616.48
7.4.110.0070.01016.53
7.4.100.0060.00916.39
7.4.90.0100.00716.52
7.4.80.0090.01219.39
7.4.70.0150.00616.35
7.4.60.0060.01016.54
7.4.50.0100.00716.30
7.4.40.0090.00916.61
7.4.00.0030.01315.14
7.3.330.0000.00613.09
7.3.320.0060.00013.10
7.3.310.0030.00316.26
7.3.300.0060.00016.29
7.3.290.0030.00316.20
7.3.280.0080.00816.24
7.3.260.0120.01016.50
7.3.240.0110.00816.42
7.3.230.0040.01216.29
7.3.210.0100.01016.25
7.3.200.0120.00316.27
7.3.190.0060.00916.30
7.3.180.0060.01516.25
7.3.170.0080.01316.22
7.3.160.0100.00716.50
7.2.330.0090.01216.54
7.2.320.0150.00616.40
7.2.310.0160.00616.65
7.2.300.0030.01316.66
7.2.290.0160.00416.74
7.2.60.0160.01014.88
7.2.50.0220.00614.77
7.2.40.0240.00314.77
7.2.30.0230.00514.66
7.2.20.0220.00714.65
7.2.10.0230.00614.89
7.2.00.0230.00714.56
7.1.200.0070.00715.84
7.1.170.0160.01014.00
7.1.160.0200.00613.81
7.1.150.0200.00614.07
7.1.140.0210.00713.84
7.1.130.0230.00613.70
7.1.120.0230.00713.62
7.1.110.0960.01013.46
7.1.100.0210.00713.68
7.1.90.0200.00913.49
7.1.80.0190.00913.48
7.1.70.0250.00314.00
7.1.60.0500.01031.60
7.1.50.0500.01031.71
7.1.40.0450.00931.78
7.1.30.0560.00731.82
7.1.20.0380.01631.42
7.1.10.0310.00313.79
7.1.00.0190.00913.59

preferences:
59.56 ms | 401 KiB | 5 Q