3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'products{id,name},articles{title,text}'; $arr = preg_split('/{[^{}]*}\K,(?=\w)/', $string); print_r($arr);

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.10.0100.01024.41
8.3.140.0050.00318.84
8.3.130.0030.00618.54
8.3.120.0160.00019.00
8.3.110.0090.00020.94
8.3.100.0060.00324.06
8.3.90.0080.00026.77
8.3.80.0030.00616.50
8.3.70.0090.00916.63
8.3.60.0030.01518.30
8.3.50.0100.00724.57
8.3.40.0110.00718.82
8.3.30.0120.00318.84
8.3.20.0080.00024.18
8.3.10.0070.00024.66
8.3.00.0000.00826.16
8.2.260.0120.00620.63
8.2.250.0090.00616.76
8.2.240.0140.00719.21
8.2.230.0040.01522.58
8.2.220.0090.00037.54
8.2.210.0070.00726.77
8.2.200.0090.00016.75
8.2.190.0200.00316.63
8.2.180.0150.00025.92
8.2.170.0070.00719.09
8.2.160.0110.00422.96
8.2.150.0020.00525.66
8.2.140.0030.00524.66
8.2.130.0070.00026.16
8.2.120.0070.00026.35
8.2.110.0040.00720.47
8.2.100.0040.00817.91
8.2.90.0040.00417.91
8.2.80.0040.00417.97
8.2.70.0030.00617.75
8.2.60.0050.00317.88
8.2.50.0080.00018.05
8.2.40.0040.00418.16
8.2.30.0070.00018.01
8.2.20.0000.00718.03
8.2.10.0030.00519.20
8.2.00.0070.00019.31
8.1.310.0040.01118.62
8.1.300.0060.00318.18
8.1.290.0040.00430.84
8.1.280.0140.00325.92
8.1.270.0050.00323.99
8.1.260.0050.00228.09
8.1.250.0030.00528.09
8.1.240.0040.00420.75
8.1.230.0070.00422.75
8.1.220.0030.00517.76
8.1.210.0060.00318.77
8.1.200.0030.00717.25
8.1.190.0040.00417.23
8.1.180.0060.00618.10
8.1.170.0000.00818.78
8.1.160.0000.00718.96
8.1.150.0000.00718.76
8.1.140.0050.00318.84
8.1.130.0070.00017.49
8.1.120.0040.00417.48
8.1.110.0040.00417.58
8.1.100.0070.00017.44
8.1.90.0030.00517.49
8.1.80.0040.00417.53
8.1.70.0030.00317.59
8.1.60.0000.00917.68
8.1.50.0000.00817.64
8.1.40.0030.00517.63
8.1.30.0060.00317.66
8.1.20.0000.00817.57
8.1.10.0000.00917.64
8.1.00.0030.00617.54
8.0.300.0040.00419.89
8.0.290.0040.00416.75
8.0.280.0000.00820.21
8.0.270.0030.00318.03
8.0.260.0000.00716.78
8.0.250.0030.00317.08
8.0.240.0030.00316.93
8.0.230.0040.00417.02
8.0.220.0070.00016.98
8.0.210.0000.00716.88
8.0.200.0050.00317.04
8.0.190.0060.00316.98
8.0.180.0000.00716.92
8.0.170.0060.00316.91
8.0.160.0040.00317.00
8.0.150.0000.00716.98
8.0.140.0000.00716.88
8.0.130.0030.00313.34
8.0.120.0000.00816.96
8.0.110.0000.00716.77
8.0.100.0000.00717.04
8.0.90.0050.00317.00
8.0.80.0090.00616.95
8.0.70.0040.00417.09
8.0.60.0040.00416.96
8.0.50.0030.00517.08
8.0.30.0070.01017.10
8.0.20.0100.01317.10
8.0.10.0030.00517.14
8.0.00.0120.00616.91
7.4.330.0040.00015.55
7.4.320.0030.00316.65
7.4.300.0040.00416.55
7.4.290.0030.00316.72
7.4.280.0040.00416.69
7.4.270.0080.00016.77
7.4.260.0000.00713.46
7.4.250.0030.00316.68
7.4.240.0030.00316.74
7.4.230.0070.00016.72
7.4.220.0040.00416.70
7.4.210.0100.00816.67
7.4.200.0020.00516.73
7.4.130.0090.01016.64
7.4.120.0130.00616.68
7.4.110.0030.01416.45
7.4.100.0040.01316.56
7.4.90.0110.00716.70
7.4.80.0110.00716.61
7.4.70.0120.00616.37
7.4.60.0110.00816.58
7.4.50.0030.02016.47
7.4.40.0060.01216.42
7.4.30.0090.00916.36
7.4.20.0090.00916.58
7.4.10.0060.01216.41
7.4.00.0070.01016.63
7.3.330.0000.00716.27
7.3.320.0060.00013.04
7.3.310.0070.00016.42
7.3.300.0030.00316.23
7.3.290.0080.00816.31
7.3.260.0100.00816.44
7.3.230.0140.00716.36
7.3.210.0070.01116.59
7.3.200.0140.00316.41
7.3.190.0030.01916.45
7.3.180.0030.01716.30
7.3.170.0150.00516.55
7.3.160.0060.01016.68
7.3.150.0070.01016.47
7.3.140.0090.00916.38
7.3.130.0070.01116.39
7.3.120.0050.01316.53
7.3.110.0070.01016.47
7.3.100.0040.01316.66
7.3.90.0100.00716.48
7.3.80.0090.01216.30
7.3.70.0200.00016.41
7.3.60.0150.00316.23
7.3.50.0100.00716.44
7.3.40.0110.00716.45
7.3.30.0190.00016.38
7.3.20.0200.00316.48
7.3.10.0120.00616.35
7.3.00.0150.00616.47
7.2.330.0060.01216.66
7.2.320.0120.00616.65
7.2.310.0140.00616.64
7.2.300.0090.00916.58
7.2.290.0070.01016.57
7.2.280.0170.00016.50
7.2.270.0090.00916.55
7.2.260.0180.00016.73
7.2.250.0070.01016.73
7.2.240.0120.00616.57
7.2.230.0110.00716.69
7.2.220.0130.00616.84
7.2.210.0180.00016.51
7.2.200.0100.01016.61
7.2.190.0040.01416.49
7.2.180.0060.01216.61
7.2.170.0070.01316.59
7.2.160.0090.00916.70
7.2.150.0070.01316.94
7.2.140.0100.01316.56
7.2.130.0070.01316.61
7.2.120.0100.01316.52
7.2.110.0110.00716.60
7.2.100.0110.00716.73
7.2.90.0100.01016.61
7.2.80.0060.01316.61
7.2.70.0130.00616.51
7.2.60.0100.00916.73
7.2.50.0110.00716.63
7.2.40.0160.00316.68
7.2.30.0120.00616.84
7.2.20.0100.01016.60
7.2.10.0210.01116.54
7.2.00.0070.01716.67

preferences:
28.19 ms | 403 KiB | 5 Q