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_split('~\[[^\]]*](*SKIP)(*FAIL)|\R~', $text));

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.0120.00918.68
8.3.60.0110.00318.43
8.3.50.0090.00618.44
8.3.40.0040.01118.82
8.3.30.0120.00318.85
8.3.20.0000.00920.73
8.3.10.0080.00023.43
8.3.00.0040.00423.70
8.2.190.0080.00820.53
8.2.180.0090.01318.79
8.2.170.0110.00322.96
8.2.160.0110.00322.33
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0080.00020.39
8.2.120.0040.00426.16
8.2.110.0030.00619.33
8.2.100.0110.00017.91
8.2.90.0060.00317.75
8.2.80.0090.00018.71
8.2.70.0080.00017.55
8.2.60.0000.00817.91
8.2.50.0030.00618.10
8.2.40.0030.00621.20
8.2.30.0050.00219.27
8.2.20.0000.00717.91
8.2.10.0040.00419.13
8.2.00.0040.00419.41
8.1.280.0030.01225.92
8.1.270.0180.00018.73
8.1.260.0040.00426.35
8.1.250.0070.00728.09
8.1.240.0030.00822.13
8.1.230.0030.00917.77
8.1.220.0080.00017.74
8.1.210.0030.00618.77
8.1.200.0030.01017.35
8.1.190.0030.00617.22
8.1.180.0030.00518.10
8.1.170.0080.00018.50
8.1.160.0040.00418.85
8.1.150.0080.00018.73
8.1.140.0080.00022.16
8.1.130.0020.00520.15
8.1.120.0000.00717.45
8.1.110.0040.00417.43
8.1.100.0000.00717.43
8.1.90.0030.00617.55
8.1.80.0000.00717.55
8.1.70.0040.00417.54
8.1.60.0150.00417.63
8.1.50.0040.00417.63
8.1.40.0040.00417.50
8.1.30.0080.00017.57
8.1.20.0080.00017.76
8.1.10.0040.00417.58
8.1.00.0070.00017.52
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0000.00718.29
8.0.270.0050.00217.16
8.0.260.0030.00318.45
8.0.250.0070.00016.97
8.0.240.0030.00316.95
8.0.230.0050.00316.92
8.0.220.0030.00317.02
8.0.210.0000.00716.98
8.0.200.0000.00616.97
8.0.190.0060.00317.05
8.0.180.0040.00417.04
8.0.170.0060.00317.01
8.0.160.0040.00416.90
8.0.150.0030.00316.88
8.0.140.0040.00416.95
8.0.130.0050.00013.41
8.0.120.0070.00016.94
8.0.110.0020.00517.02
8.0.100.0050.00217.00
8.0.90.0040.00417.03
8.0.80.0030.01316.95
8.0.70.0070.00017.01
8.0.60.0040.00416.77
8.0.50.0000.00716.85
8.0.30.0140.00817.11
8.0.20.0150.00617.40
8.0.10.0080.00016.98
8.0.00.0060.01216.73
7.4.330.0050.00016.76
7.4.320.0040.00616.77
7.4.300.0060.00016.57
7.4.290.0050.00216.63
7.4.280.0070.00016.54
7.4.270.0070.00016.70
7.4.260.0070.00016.62
7.4.250.0040.00316.61
7.4.240.0050.00216.68
7.4.230.0000.00716.50
7.4.220.0040.00416.82
7.4.210.0050.01216.69
7.4.200.0040.00416.58
7.4.160.0090.00916.64
7.4.140.0120.00617.86
7.4.130.0150.00616.70
7.4.120.0110.01116.61
7.4.110.0120.00616.65
7.4.100.0100.01016.75
7.4.90.0100.00716.65
7.4.80.0100.01019.39
7.4.70.0110.00416.70
7.4.60.0120.00316.46
7.4.50.0110.00416.43
7.4.40.0100.00616.58
7.4.00.0000.01214.82
7.3.330.0030.00313.13
7.3.320.0050.00013.12
7.3.310.0050.00216.43
7.3.300.0000.00716.35
7.3.290.0040.00416.37
7.3.280.0110.00516.23
7.3.260.0090.00916.52
7.3.240.0090.00916.31
7.3.230.0070.01016.53
7.3.210.0060.01216.36
7.3.200.0060.01016.39
7.3.190.0100.01316.60
7.3.180.0140.00316.59
7.3.170.0150.00316.72
7.3.160.0100.00716.32
7.3.00.0440.00314.84
7.2.330.0090.00916.42
7.2.320.0030.01316.52
7.2.310.0070.01016.69
7.2.300.0090.00916.81
7.2.290.0160.00616.43
7.2.130.0400.00715.11
7.2.120.0450.01015.08
7.2.110.0460.00015.04
7.2.100.0340.01315.04
7.2.90.0360.00715.05
7.2.80.0430.00915.09
7.2.70.0440.01215.16
7.2.60.2940.01015.13
7.2.50.0400.01515.24
7.2.40.0450.00615.17
7.2.30.0360.00714.89
7.2.20.0620.00015.04
7.2.10.0490.00715.14
7.2.00.0620.01015.08
7.1.250.0400.00714.08
7.0.330.0420.00313.55
5.6.380.0060.00914.33

preferences:
28.93 ms | 401 KiB | 5 Q