3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '[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]'; print_r(preg_split('/(\[[^]]+])|\R/', $string, -1, PREG_SPLIT_NO_EMPTY | 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.70.0040.01116.86
8.3.60.0110.01118.43
8.3.50.0040.01118.20
8.3.40.0090.00618.92
8.3.30.0040.01118.89
8.3.20.0040.00420.60
8.3.10.0040.00423.49
8.3.00.0040.00423.41
8.2.190.0090.00920.15
8.2.180.0110.00418.41
8.2.170.0070.01418.89
8.2.160.0040.01122.96
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0060.00320.55
8.2.120.0040.00426.16
8.2.110.0030.00621.23
8.2.100.0000.01118.03
8.2.90.0080.00019.09
8.2.80.0060.00318.76
8.2.70.0000.01017.75
8.2.60.0000.00817.63
8.2.50.0040.00418.10
8.2.40.0000.00719.30
8.2.30.0000.00719.20
8.2.20.0030.00517.92
8.2.10.0080.00019.20
8.2.00.0030.00519.41
8.1.280.0070.00725.92
8.1.270.0040.00418.87
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0080.00323.68
8.1.230.0110.00022.71
8.1.220.0030.00618.64
8.1.210.0050.00318.77
8.1.200.0060.00317.36
8.1.190.0060.00317.00
8.1.180.0040.00418.10
8.1.170.0040.00418.54
8.1.160.0040.00418.70
8.1.150.0000.00818.84
8.1.140.0070.00022.20
8.1.130.0000.00720.15
8.1.120.0000.00717.55
8.1.110.0000.00817.55
8.1.100.0000.00717.43
8.1.90.0040.00417.52
8.1.80.0080.00017.50
8.1.70.0040.00417.54
8.1.60.0050.00817.71
8.1.50.0000.00717.45
8.1.40.0040.00417.54
8.1.30.0000.00817.70
8.1.20.0000.00917.70
8.1.10.0050.00517.59
8.1.00.0040.00417.38
8.0.300.0060.00318.77
8.0.290.0070.00016.75
8.0.280.0030.00318.39
8.0.270.0000.00717.09
8.0.260.0030.00318.31
8.0.250.0040.00417.00
8.0.240.0000.00817.07
8.0.230.0000.00817.00
8.0.220.0030.00316.92
8.0.210.0080.00016.86
8.0.200.0040.00416.93
8.0.190.0030.00617.01
8.0.180.0040.00416.90
8.0.170.0080.00017.00
8.0.160.0070.00016.90
8.0.150.0000.00716.93
8.0.140.0000.00716.96
8.0.130.0050.00013.42
8.0.120.0000.00816.81
8.0.110.0030.00616.96
8.0.100.0000.00717.02
8.0.90.0040.00417.00
8.0.80.0140.00617.00
8.0.70.0050.00316.78
8.0.60.0000.00716.96
8.0.50.0000.00716.92
8.0.30.0090.00917.17
8.0.20.0070.01117.40
8.0.10.0060.00317.12
8.0.00.0130.00916.64
7.4.330.0000.00516.86
7.4.320.0030.00516.62
7.4.300.0000.00716.73
7.4.290.0050.00316.70
7.4.280.0040.00416.63
7.4.270.0050.00316.55
7.4.260.0000.00716.73
7.4.250.0040.00416.53
7.4.240.0080.00016.73
7.4.230.0040.00416.72
7.4.220.0000.00716.54
7.4.210.0050.00916.70
7.4.200.0030.00316.77
7.4.160.0080.00816.53
7.4.140.0090.00917.86
7.4.130.0140.00416.55
7.4.120.0060.01716.37
7.4.110.0120.00616.52
7.4.100.0090.00916.43
7.4.90.0120.00616.63
7.4.80.0070.01419.39
7.4.70.0100.00616.59
7.4.60.0060.00916.41
7.4.50.0060.01016.69
7.4.40.0060.01016.58
7.4.00.0110.00314.85
7.3.330.0040.00413.20
7.3.320.0050.00013.12
7.3.310.0040.00416.37
7.3.300.0060.00016.18
7.3.290.0030.00316.33
7.3.280.0140.00516.30
7.3.260.0090.00916.38
7.3.240.0100.00816.35
7.3.230.0060.01116.54
7.3.210.0070.01016.25
7.3.200.0030.01216.47
7.3.190.0090.00916.53
7.3.180.0070.00916.30
7.3.170.0090.00916.45
7.3.160.0080.01616.59
7.3.00.0320.00614.95
7.2.330.0110.00716.46
7.2.320.0040.01216.58
7.2.310.0110.00716.70
7.2.300.0060.01116.57
7.2.290.0140.00616.52
7.2.130.0330.00314.97
7.2.120.1260.01014.96
7.2.110.0490.01315.14
7.2.100.0390.00714.95
7.2.90.0320.01015.00
7.2.80.0430.00714.95
7.2.70.0790.00315.18
7.2.60.0790.01014.95
7.2.50.0590.00015.06
7.2.40.0570.00314.95
7.2.30.0380.00715.00
7.2.20.0620.00715.28
7.2.10.0730.00714.93
7.2.00.0510.00015.01
7.1.250.0260.01014.03
7.0.330.0340.00313.75
5.6.380.0000.01514.10

preferences:
19.18 ms | 401 KiB | 5 Q