3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'Hello world [something here]{optional}{optional}{optional}{n possibilities of this}'; var_export(preg_split('/ *\[|\]|(?=\{)/', $str, 0, PREG_SPLIT_NO_EMPTY));

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.4.120.0070.00524.03
8.4.110.0140.00618.54
8.4.100.0100.00518.83
8.4.90.0090.00520.77
8.4.80.0030.00620.46
8.4.70.0100.00817.91
8.4.60.0090.01218.79
8.4.50.0120.01017.74
8.4.40.0000.00819.70
8.4.30.0060.00618.61
8.4.20.0070.01118.72
8.4.10.0030.00617.78
8.3.250.0120.00618.83
8.3.240.0140.00517.17
8.3.230.0110.00816.73
8.3.220.0110.00718.72
8.3.210.0090.01016.93
8.3.200.0040.00516.83
8.3.190.0050.00319.05
8.3.180.0080.01116.91
8.3.170.0150.00018.85
8.3.160.0040.01418.73
8.3.150.0040.00417.23
8.3.140.0120.00316.71
8.3.130.0080.00016.80
8.3.120.0080.00820.71
8.3.110.0090.00320.94
8.3.100.0030.00616.75
8.3.90.0040.00426.77
8.3.80.0050.00516.88
8.3.70.0090.00618.64
8.3.60.0040.01416.50
8.3.50.0070.01416.61
8.3.40.0070.00718.84
8.3.30.0170.00018.67
8.3.20.0000.00824.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.290.0140.00520.65
8.2.280.0130.00518.20
8.2.270.0040.00417.38
8.2.260.0060.01318.75
8.2.250.0150.00017.26
8.2.240.0060.00317.25
8.2.230.0060.00322.58
8.2.220.0000.01024.06
8.2.210.0090.00026.77
8.2.200.0030.00616.63
8.2.190.0090.01216.63
8.2.180.0120.00625.92
8.2.170.0130.00719.05
8.2.160.0120.00322.96
8.2.150.0000.00725.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00721.08
8.2.110.0060.00320.31
8.2.100.0090.00317.91
8.2.90.0030.00817.75
8.2.80.0060.00318.96
8.2.70.0040.00417.75
8.2.60.0040.00417.92
8.2.50.0030.00618.07
8.2.40.0050.00318.04
8.2.30.0080.00018.10
8.2.20.0040.00418.02
8.2.10.0050.00320.85
8.2.00.0000.00719.21
8.1.330.0080.01121.98
8.1.320.0050.00318.14
8.1.310.0050.00316.61
8.1.300.0040.00415.98
8.1.290.0000.00930.84
8.1.280.0110.00425.92
8.1.270.0080.00023.99
8.1.260.0110.00726.35
8.1.250.0080.00028.09
8.1.240.0040.00718.79
8.1.230.0090.00317.64
8.1.220.0060.00317.74
8.1.210.0030.00518.77
8.1.200.0030.00617.38
8.1.190.0060.00317.35
8.1.180.0040.00418.10
8.1.170.0000.00718.78
8.1.160.0040.00418.80
8.1.150.0040.00418.86
8.1.140.0030.00318.95
8.1.130.0000.00720.22
8.1.120.0050.00517.56
8.1.110.0050.00317.42
8.1.100.0060.00417.58
8.1.90.0040.00417.50
8.1.80.0070.00017.46
8.1.70.0040.00417.47
8.1.60.0030.00517.65
8.1.50.0080.00017.47
8.1.40.0040.00417.60
8.1.30.0080.00017.74
8.1.20.0040.00417.74
8.1.10.0040.00417.48
8.1.00.0000.00917.41
8.0.300.0030.00618.77
8.0.290.0000.00716.88
8.0.280.0000.00718.41
8.0.270.0040.00418.15
8.0.260.0000.00618.46
8.0.250.0000.00717.00
8.0.240.0060.00317.06
8.0.230.0040.00417.11
8.0.220.0070.00016.88
8.0.210.0030.00317.00
8.0.200.0070.00017.15
8.0.190.0000.00817.00
8.0.180.0000.00817.06
8.0.170.0060.00317.07
8.0.160.0000.00717.05
8.0.150.0040.00416.93
8.0.140.0030.00316.95
8.0.130.0030.00313.57
8.0.120.0030.00616.95
8.0.110.0050.00317.02
8.0.100.0040.00416.83
8.0.90.0000.00716.93
8.0.80.0230.00316.97
8.0.70.0190.00317.07
8.0.60.0100.01516.92
8.0.50.0130.01316.90
8.0.30.0190.01217.00
8.0.20.0180.00917.04
8.0.10.0160.01017.04
8.0.00.0040.01117.12
7.4.330.0030.00315.55
7.4.320.0030.00316.68
7.4.300.0060.00016.79
7.4.290.0040.00416.66
7.4.280.0000.00716.54
7.4.270.0000.00716.64
7.4.260.0000.00613.40
7.4.250.0000.00716.63
7.4.240.0020.00616.71
7.4.230.0000.00716.73
7.4.220.0000.00716.64
7.4.210.0040.01116.52
7.4.200.0160.00716.66
7.4.190.0150.01116.75
7.4.180.0190.00816.85
7.4.160.0210.00516.85
7.4.150.0130.01016.75
7.4.140.0180.00716.69
7.4.130.0090.01216.57
7.4.120.0110.01116.64
7.4.110.0090.01216.59
7.4.100.0140.00016.74
7.4.90.0060.00916.77
7.4.80.0160.00316.69
7.4.70.0120.00616.51
7.4.60.0130.00716.61
7.4.50.0040.01616.54
7.4.40.0130.00716.54
7.4.30.0100.01016.64
7.4.20.0030.01416.65
7.4.10.0130.00716.50
7.4.00.0130.00716.64
7.3.330.0090.00016.20
7.3.320.0030.00313.13
7.3.310.0070.00016.48
7.3.300.0040.00416.27
7.3.290.0130.01016.39
7.3.280.0170.00916.34
7.3.270.0270.00016.38
7.3.260.0160.00716.34
7.3.250.0160.00816.37
7.3.240.0220.00416.37
7.3.230.0170.00716.38
7.3.220.0140.00916.27
7.3.210.0100.01416.25
7.3.200.0210.00316.34
7.3.190.0140.01116.26
7.3.180.0160.00816.23
7.3.170.0140.00916.17
7.3.160.0150.00716.17
7.3.150.0130.01516.21
7.3.140.0150.01316.33
7.3.130.0170.01016.26
7.3.120.0130.01016.37
7.3.110.0140.01016.19
7.3.100.0110.01116.15
7.3.90.0140.01016.59
7.3.80.0150.00916.25
7.3.70.0090.01516.34
7.3.60.0230.00016.48
7.3.50.0090.01416.50
7.3.40.0210.00316.45
7.3.30.0170.00716.57
7.3.20.0180.00916.51
7.3.10.0140.01416.43
7.3.00.0190.00816.42

preferences:
28.03 ms | 403 KiB | 5 Q