3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value_pattern = "\"(?:[^\"]|\")*\""; $variable_pattern = '\w+ *\= *' . $value_pattern; $block_pattern = "\[(?:[/]|\w)+(?: +' . $variable_pattern . ')*\]"; $input = 'Some text broken by an [img src="resx/img.jpg" alt="" full] and more text below.'; echo $block_pattern; $tokens = preg_split('/'.$block_pattern.'/', $input, -1, PREG_SPLIT_DELIM_CAPTURE);

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.0070.01118.56
8.3.50.0070.01018.17
8.3.40.0120.00618.65
8.3.30.0070.00718.67
8.3.20.0040.00419.21
8.3.10.0000.00819.02
8.3.00.0040.00423.48
8.2.180.0150.00316.38
8.2.170.0060.00922.96
8.2.160.0140.00020.53
8.2.150.0030.00524.18
8.2.140.0090.00024.66
8.2.130.0040.00419.70
8.2.120.0040.00426.35
8.2.110.0070.00320.97
8.2.100.0090.00317.78
8.2.90.0000.00819.08
8.2.80.0080.00017.97
8.2.70.0030.00618.04
8.2.60.0040.00417.93
8.2.50.0100.00318.10
8.2.40.0030.00519.34
8.2.30.0000.00719.49
8.2.20.0000.00718.05
8.2.10.0000.00718.05
8.2.00.0030.00519.51
8.1.280.0070.00725.92
8.1.270.0020.00522.10
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00422.19
8.1.230.0040.00817.70
8.1.220.0040.00417.78
8.1.210.0000.00918.77
8.1.200.0000.00817.35
8.1.190.0000.00817.23
8.1.180.0050.00318.10
8.1.170.0050.00518.59
8.1.160.0040.00418.89
8.1.150.0070.00018.79
8.1.140.0040.00417.56
8.1.130.0030.00319.00
8.1.120.0070.00017.43
8.1.110.0000.00817.37
8.1.100.0040.00417.42
8.1.90.0030.00617.47
8.1.80.0080.00017.52
8.1.70.0070.00017.50
8.1.60.0090.00317.67
8.1.50.0000.00817.55
8.1.40.0040.00417.51
8.1.30.0040.00417.68
8.1.20.0080.00017.54
8.1.10.0040.00417.43
8.1.00.0060.00317.43
8.0.300.0060.00318.77
8.0.290.0080.00016.88
8.0.280.0030.00318.54
8.0.270.0070.00017.18
8.0.260.0040.00417.24
8.0.250.0080.00316.96
8.0.240.0030.00517.02
8.0.230.0050.00217.00
8.0.220.0070.00016.82
8.0.210.0000.00716.84
8.0.200.0000.00616.90
8.0.190.0080.00017.04
8.0.180.0040.00416.97
8.0.170.0040.00416.98
8.0.160.0000.00716.98
8.0.150.0050.00316.78
8.0.140.0070.00016.90
8.0.130.0050.00013.37
8.0.120.0040.00416.81
8.0.110.0040.00416.86
8.0.100.0030.00516.84
8.0.90.0000.00716.94
8.0.80.0030.01216.96
8.0.70.0040.00416.86
8.0.60.0050.00317.05
8.0.50.0040.00416.90
8.0.30.0100.00917.11
8.0.20.0100.01017.40
8.0.10.0050.00317.04
8.0.00.0080.01116.82
7.4.330.0030.00315.55
7.4.320.0060.00016.43
7.4.300.0070.00016.38
7.4.290.0000.00616.44
7.4.280.0070.00016.48
7.4.270.0070.00016.46
7.4.260.0030.00316.54
7.4.250.0050.00216.30
7.4.240.0000.00716.34
7.4.230.0050.00316.46
7.4.220.0000.00816.30
7.4.210.0060.01016.55
7.4.200.0040.00416.43
7.4.160.0100.00716.42
7.4.140.0080.01117.86
7.4.130.0120.01216.54
7.4.120.0060.01216.51
7.4.110.0100.00716.48
7.4.100.0110.01116.53
7.4.90.0070.01016.59
7.4.80.0150.00019.39
7.4.70.0090.00916.42
7.4.60.0090.00616.39
7.4.50.0110.00016.26
7.4.40.0100.00716.64
7.4.00.0060.00915.06
7.3.330.0000.00613.13
7.3.320.0000.00613.12
7.3.310.0040.00416.27
7.3.300.0030.00316.42
7.3.290.0030.00316.41
7.3.280.0080.00816.39
7.3.260.0090.01116.48
7.3.240.0070.00916.45
7.3.230.0110.00616.43
7.3.210.0120.00616.62
7.3.200.0090.01216.29
7.3.190.0100.01016.36
7.3.180.0060.01016.47
7.3.170.0060.01216.61
7.3.160.0110.00816.29
7.2.330.0000.01816.71
7.2.320.0090.00916.41
7.2.310.0070.01016.46
7.2.300.0170.00016.66
7.2.290.0100.00816.76
7.2.60.0150.00614.57
7.2.50.0180.00414.74
7.2.40.0140.01014.92
7.2.30.0090.01214.81
7.2.20.0100.01314.89
7.2.10.0150.00614.63
7.2.00.0230.00014.90
7.1.200.0040.00815.94
7.1.170.0140.00613.76
7.1.160.0160.00613.88
7.1.150.0080.01413.55
7.1.140.0100.01013.60
7.1.130.0110.00913.86
7.1.120.0150.00613.73
7.1.110.0270.00613.94
7.1.100.0200.00613.65
7.1.90.0240.00913.71
7.1.80.0220.00013.58
7.1.70.0150.00613.97
7.1.60.0470.01331.92
7.1.50.0440.01231.66
7.1.40.0350.01631.73
7.1.30.0350.00931.64
7.1.20.0490.01331.77
7.1.10.0620.00713.64
7.1.00.0160.00913.75

preferences:
60.17 ms | 401 KiB | 5 Q