3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'this is some sample'; $base = 'shortcode'; $pattern = "/\[(shortcode)([ ][a-zA-Z0-9\"'=\\s]*\\]|\\])/"; $matches = array(); preg_match($pattern, $string, $matches); print_r($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.3.60.0140.00316.38
8.3.50.0150.00221.08
8.3.40.0110.00718.87
8.3.30.0110.00418.48
8.3.20.0070.00020.35
8.3.10.0050.00221.79
8.3.00.0080.00021.60
8.2.180.0140.00416.63
8.2.170.0100.01022.96
8.2.160.0130.00320.53
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00421.07
8.2.120.0080.00026.35
8.2.110.0030.00619.17
8.2.100.0040.00817.91
8.2.90.0000.00919.27
8.2.80.0080.00017.97
8.2.70.0000.01017.50
8.2.60.0040.00417.80
8.2.50.0050.00318.09
8.2.40.0080.00022.28
8.2.30.0040.00419.49
8.2.20.0070.00017.68
8.2.10.0000.00717.96
8.2.00.0040.00417.99
8.1.280.0100.00725.92
8.1.270.0040.00422.06
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0030.00622.38
8.1.230.0080.00317.71
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.36
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0000.00818.46
8.1.160.0040.00420.63
8.1.150.0050.00520.55
8.1.140.0000.00819.56
8.1.130.0030.00517.65
8.1.120.0030.00317.55
8.1.110.0000.00817.58
8.1.100.0070.00017.53
8.1.90.0070.00317.47
8.1.80.0040.00317.46
8.1.70.0030.00317.56
8.1.60.0000.00917.68
8.1.50.0030.00517.60
8.1.40.0080.00017.49
8.1.30.0040.00417.76
8.1.20.0040.00417.79
8.1.10.0040.00417.63
8.1.00.0070.00017.65
8.0.300.0040.00418.77
8.0.290.0030.00516.75
8.0.280.0040.00418.30
8.0.270.0000.00817.12
8.0.260.0030.00317.19
8.0.250.0070.00016.88
8.0.240.0030.00316.98
8.0.230.0030.00316.97
8.0.220.0040.00416.95
8.0.210.0040.00417.02
8.0.200.0000.00617.07
8.0.190.0030.00716.98
8.0.180.0020.00517.00
8.0.170.0050.00316.97
8.0.160.0000.00717.04
8.0.150.0000.00716.85
8.0.140.0040.00416.83
8.0.130.0050.00013.43
8.0.120.0040.00416.92
8.0.110.0000.00716.93
8.0.100.0040.00416.75
8.0.90.0000.00816.83
8.0.80.0070.01016.93
8.0.70.0000.00716.80
8.0.60.0030.00517.02
8.0.50.0040.00416.99
8.0.30.0090.01116.97
8.0.20.0090.01217.43
8.0.10.0050.00317.14
8.0.00.0140.00616.84
7.4.330.0020.00216.79
7.4.320.0030.00316.64
7.4.300.0000.00816.59
7.4.290.0000.00716.64
7.4.280.0000.00716.61
7.4.270.0000.00616.70
7.4.260.0070.00016.76
7.4.250.0040.00416.71
7.4.240.0040.00416.64
7.4.230.0000.00716.64
7.4.220.0120.01216.79
7.4.210.0060.00916.66
7.4.200.0030.00316.61
7.4.160.0150.00016.58
7.4.150.0110.00817.40
7.4.140.0110.00817.86
7.4.130.0130.00516.66
7.4.120.0100.00716.54
7.4.110.0120.00616.90
7.4.100.0110.00616.49
7.4.90.0070.01016.76
7.4.80.0070.00919.39
7.4.70.0030.01216.61
7.4.60.0130.00916.57
7.4.50.0000.01616.40
7.4.40.0030.01316.74
7.4.30.0060.01216.43
7.4.00.0030.01014.98
7.3.330.0030.00313.11
7.3.320.0050.00012.98
7.3.310.0040.00416.28
7.3.300.0070.00016.32
7.3.290.0050.01116.34
7.3.280.0080.00816.24
7.3.270.0160.00017.40
7.3.260.0090.00916.33
7.3.250.0100.00916.24
7.3.240.0100.01016.37
7.3.230.0030.01316.55
7.3.210.0120.00616.73
7.3.200.0150.00219.39
7.3.190.0100.00716.23
7.3.180.0070.01416.50
7.3.170.0070.01016.53
7.3.160.0090.00616.35
7.3.10.0080.00816.32
7.3.00.0080.00916.58
7.2.330.0130.01316.47
7.2.320.0120.00616.52
7.2.310.0070.01616.56
7.2.300.0110.00516.50
7.2.290.0030.01916.54
7.2.130.0090.00616.74
7.2.120.0100.00616.54
7.2.110.0070.00916.70
7.2.100.0060.00816.70
7.2.90.0110.00916.74
7.2.80.0100.00816.58
7.2.70.0080.00916.79
7.2.60.0080.00816.81
7.2.50.0130.00316.92
7.2.40.0110.00416.91
7.2.30.0070.00816.87
7.2.20.0070.01016.65
7.2.10.0070.00916.72
7.2.00.0120.00816.73
7.1.250.0110.00315.80
7.1.200.0020.00516.01
7.1.70.0000.01417.38
7.1.60.0110.01119.40
7.1.50.0060.00617.12
7.1.00.0000.08022.59
7.0.200.0000.01415.05
7.0.60.0200.08021.71
7.0.50.0100.04317.79
7.0.40.0000.05320.21
7.0.30.0230.04020.11
7.0.20.0230.03720.30
7.0.10.0130.08720.02
7.0.00.0070.04020.05
5.6.280.0030.03021.03
5.6.210.0000.04320.75
5.6.200.0070.04018.22
5.6.190.0100.06720.49
5.6.180.0370.07720.57
5.6.170.0430.06720.38
5.6.160.0070.08720.50
5.6.150.0070.08318.18
5.6.140.0130.07318.19
5.6.130.0170.07718.14
5.6.120.0130.07321.13
5.6.110.0030.07020.88
5.6.100.0100.07021.10
5.6.90.0000.06020.94
5.6.80.0070.07720.35
5.5.350.0200.06720.39
5.5.340.0100.04717.91
5.5.330.0130.03320.23
5.5.320.0430.05020.51
5.5.310.0230.04320.23
5.5.300.0030.08717.98
5.5.290.0070.04717.91
5.5.280.0030.04020.79
5.5.270.0070.05720.96
5.5.260.0100.08020.65
5.5.250.0130.07320.68
5.5.240.0170.08020.11

preferences:
63.53 ms | 401 KiB | 5 Q