3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = '[this is block this is also same "block" this is same block another same block] new block! another new block! [this is new block this is also a new block]'; var_export(preg_match_all('~\[[^\]]*]|.+~', $text, $matches) ? $matches[0] : 'nothing');

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.70.0090.00616.63
8.3.60.0170.00318.31
8.3.50.0120.00318.06
8.3.40.0120.00318.97
8.3.30.0030.01218.79
8.3.20.0080.00020.76
8.3.10.0040.00423.67
8.3.00.0040.00423.65
8.2.190.0070.01116.88
8.2.180.0100.01018.54
8.2.170.0100.00719.11
8.2.160.0100.00322.96
8.2.150.0000.00725.66
8.2.140.0080.00024.66
8.2.130.0060.00320.52
8.2.120.0110.00426.16
8.2.110.0080.00319.36
8.2.100.0060.00617.97
8.2.90.0030.00617.75
8.2.80.0030.00517.97
8.2.70.0000.00918.03
8.2.60.0080.00018.22
8.2.50.0030.00618.10
8.2.40.0050.00319.52
8.2.30.0000.00719.15
8.2.20.0040.00418.09
8.2.10.0080.00019.15
8.2.00.0000.00819.36
8.1.280.0080.00825.92
8.1.270.0040.00424.66
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00019.59
8.1.230.0080.00422.82
8.1.220.0060.00317.74
8.1.210.0030.00618.77
8.1.200.0060.00317.25
8.1.190.0030.00617.22
8.1.180.0000.00818.10
8.1.170.0040.00418.71
8.1.160.0050.00318.85
8.1.150.0030.00618.76
8.1.140.0000.00722.17
8.1.130.0000.00720.09
8.1.120.0000.00717.40
8.1.110.0030.00617.39
8.1.100.0040.00417.44
8.1.90.0050.00317.47
8.1.80.0000.00817.55
8.1.70.0030.00617.60
8.1.60.0030.00617.67
8.1.50.0080.00017.55
8.1.40.0050.00517.62
8.1.30.0040.00417.70
8.1.20.0030.00517.64
8.1.10.0040.00417.64
8.1.00.0030.00517.66
8.0.300.0040.00419.69
8.0.290.0050.00316.63
8.0.280.0030.00318.41
8.0.270.0000.00716.98
8.0.260.0000.00818.46
8.0.250.0000.00716.96
8.0.240.0000.00816.96
8.0.230.0000.00717.05
8.0.220.0030.00317.04
8.0.210.0000.00817.01
8.0.200.0060.00017.00
8.0.190.0000.00917.00
8.0.180.0030.00617.01
8.0.170.0000.00817.01
8.0.160.0040.00416.89
8.0.150.0050.00216.95
8.0.140.0000.00716.92
8.0.130.0000.00513.34
8.0.120.0000.00716.83
8.0.110.0040.00416.96
8.0.100.0000.00716.87
8.0.90.0030.00317.02
8.0.80.0090.01317.00
8.0.70.0020.00516.91
8.0.60.0040.00416.96
8.0.50.0050.00216.91
8.0.30.0090.01917.18
8.0.20.0150.00917.46
8.0.10.0080.00016.97
8.0.00.0060.01116.91
7.4.330.0050.00016.77
7.4.320.0020.00516.76
7.4.300.0020.00516.66
7.4.290.0030.00316.75
7.4.280.0080.00016.56
7.4.270.0000.00716.68
7.4.260.0050.00216.73
7.4.250.0000.00816.65
7.4.240.0000.00816.51
7.4.230.0040.00416.65
7.4.220.0000.00716.51
7.4.210.0110.00816.76
7.4.200.0000.00716.73
7.4.160.0090.00716.57
7.4.140.0140.00417.86
7.4.130.0130.00316.67
7.4.120.0060.01316.53
7.4.110.0100.01316.47
7.4.100.0150.01016.64
7.4.90.0140.00316.80
7.4.80.0090.00919.39
7.4.70.0070.01016.67
7.4.60.0070.01316.98
7.4.50.0050.00716.62
7.4.40.0120.00916.71
7.4.10.0040.01415.10
7.4.00.0080.00815.01
7.3.330.0050.00213.25
7.3.320.0030.00313.19
7.3.310.0070.00016.33
7.3.300.0000.00716.19
7.3.290.0070.00016.38
7.3.280.0080.01016.37
7.3.260.0140.00516.54
7.3.240.0110.00616.40
7.3.230.0040.01216.41
7.3.210.0100.00716.63
7.3.200.0060.00916.49
7.3.190.0090.00916.41
7.3.180.0110.00516.46
7.3.170.0100.00916.68
7.3.160.0000.01616.66
7.3.130.0070.01115.13
7.3.120.0080.00914.93
7.3.110.0090.00914.90
7.3.100.0070.00514.55
7.3.90.0080.00414.89
7.3.80.0090.00315.14
7.3.70.0050.01214.78
7.3.60.0050.00814.83
7.3.50.0020.01314.84
7.3.40.0060.00614.77
7.3.30.0050.01114.98
7.3.20.0010.00916.65
7.3.10.0060.00916.48
7.3.00.0190.00416.25
7.2.330.0140.00616.69
7.2.320.0130.00416.82
7.2.310.0090.01316.50
7.2.300.0110.00716.61
7.2.290.0080.00816.65
7.2.260.0110.00815.10
7.2.250.0070.01014.95
7.2.240.0090.00614.99
7.2.230.0040.01214.97
7.2.220.0060.00615.02
7.2.210.0070.00715.00
7.2.200.0050.01014.97
7.2.190.0050.00715.10
7.2.180.0100.00515.13
7.2.170.0050.00915.04
7.2.160.0030.01214.98
7.2.150.0060.00916.62
7.2.140.0040.01516.72
7.2.130.0230.01116.20
7.2.120.0180.01116.34
7.2.110.0200.00716.21
7.2.100.0190.01116.21
7.2.90.0200.00716.23
7.2.80.0180.01016.26
7.2.70.0200.00816.36
7.2.60.0220.00716.24
7.2.50.0240.00816.18
7.2.40.0160.00716.30
7.2.30.0210.00816.29
7.2.20.0260.00516.26
7.2.10.0200.00616.26
7.2.00.0190.00716.43
7.1.330.0090.00616.06
7.1.320.0070.00715.99
7.1.310.0080.00616.10
7.1.300.0030.01115.96
7.1.290.0010.00715.88
7.1.280.0080.00816.04
7.1.270.0070.00715.99
7.1.260.0050.00815.94
7.1.250.0200.00615.34
7.1.240.0060.00916.04
7.1.230.0130.00315.93
7.1.220.0100.00716.00
7.1.210.0070.00315.98
7.1.200.0030.00715.84
7.1.190.0070.00715.94
7.1.180.0070.01015.93
7.1.170.0070.01016.09
7.1.160.0100.00316.11
7.1.150.0030.00915.65
7.1.140.0140.00016.08
7.1.130.0070.01015.68
7.1.120.0030.01016.02
7.1.110.0100.00315.72
7.1.100.0090.00616.14
7.1.90.0110.00315.73
7.1.80.0000.01215.95
7.1.70.0110.00316.06
7.1.60.0090.00615.96
7.1.50.0030.00915.95
7.1.40.0030.01515.77
7.1.30.0000.00816.11
7.1.20.0120.00316.04
7.1.10.0070.00715.80
7.1.00.0000.01115.83
7.0.330.0170.00814.88
7.0.320.0070.01015.39
7.0.310.0000.01415.69
7.0.300.0000.00915.44
7.0.290.0040.00715.43
7.0.280.0040.00415.47
7.0.270.0080.00315.34
7.0.260.0060.00315.35
7.0.250.0100.00315.39
7.0.240.0070.01015.62
7.0.230.0030.01015.59
7.0.220.0060.00615.34
7.0.210.0040.00815.49
7.0.200.0070.00315.68
7.0.190.0030.01015.68
7.0.180.0030.00715.71
7.0.170.0080.00415.54
7.0.160.0100.00615.33
7.0.150.0000.01115.65
7.0.140.0100.00315.33
7.0.130.0060.00615.48
7.0.120.0060.00915.33
7.0.110.0090.00615.65
7.0.100.0090.00615.51
7.0.90.0090.00615.72
7.0.80.0060.00615.37
7.0.70.0080.00415.45
7.0.60.0040.00815.65
7.0.50.0070.01015.67
7.0.40.0100.00613.67
7.0.30.0030.01513.63
7.0.20.0030.01013.68
7.0.10.0130.00313.74
7.0.00.0030.01213.47
5.6.400.0090.00914.54
5.6.390.0000.01214.64
5.6.380.0070.00514.26
5.6.370.0070.00414.30
5.6.360.0030.00914.61
5.6.350.0060.00614.60
5.6.340.0100.00714.32
5.6.330.0030.00914.32
5.6.320.0030.01014.31
5.6.310.0070.00714.48
5.6.300.0070.00714.54
5.6.290.0070.00714.64
5.6.280.0060.00914.09
5.6.270.0060.00614.24
5.6.260.0130.00314.46
5.6.250.0090.00614.36
5.6.240.0030.00914.55
5.6.230.0040.00714.27
5.6.220.0030.01014.24
5.6.210.0030.01214.46
5.6.200.0030.01614.46
5.6.190.0070.01014.26
5.6.180.0080.00814.59
5.6.170.0100.00314.01
5.6.160.0000.01314.48
5.6.150.0030.01014.24
5.6.140.0030.01314.37
5.6.130.0080.00314.30
5.6.120.0060.00914.46
5.6.110.0060.00914.43
5.6.100.0030.00714.32
5.6.90.0000.01214.31
5.6.80.0060.00614.43
5.6.70.0090.00314.29
5.6.60.0090.00414.34
5.6.50.0100.00713.94
5.6.40.0030.00914.44
5.6.30.0070.01014.12
5.6.20.0040.01214.23
5.6.10.0070.00714.05
5.6.00.0090.00614.32

preferences:
18.65 ms | 401 KiB | 5 Q