3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/(?!^)\b(?=[0-9]+g|A handful)/'; $str = '35g walnut halves A handful of thyme leaves 200g portobello mushrooms 200g white mushrooms 200g chifferini pasta 100g Petit Brebis sheep\'s cheese 40g honey'; print_r(preg_split($re, $str));

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.5.10.0120.00716.82
8.5.00.0130.00919.85
8.4.150.0010.00114.05
8.4.140.0130.00917.98
8.4.130.0140.00618.01
8.4.120.0120.00720.48
8.4.110.0110.01020.63
8.4.100.0090.01118.86
8.4.90.0120.00620.80
8.4.80.0040.00418.65
8.4.70.0160.00517.96
8.4.60.0110.00920.76
8.4.50.0080.00818.58
8.4.40.0070.00318.02
8.4.30.0040.00718.57
8.4.20.0030.01717.87
8.4.10.0000.00919.38
8.3.280.0110.00918.44
8.3.270.0110.00816.64
8.3.260.0120.00716.88
8.3.250.0150.00418.85
8.3.240.0110.00916.89
8.3.230.0090.01116.68
8.3.220.0120.00718.95
8.3.210.0050.00216.79
8.3.200.0050.00316.66
8.3.190.0130.00617.02
8.3.180.0110.00818.57
8.3.170.0090.00017.09
8.3.160.0100.00316.91
8.3.150.0040.00420.65
8.3.140.0000.00718.72
8.3.130.0080.00018.65
8.3.120.0160.00318.45
8.3.110.0060.00916.75
8.3.100.0030.00518.20
8.3.90.0060.00326.77
8.3.80.0000.00918.55
8.3.70.0030.01716.63
8.3.60.0060.00916.75
8.3.50.0100.01023.62
8.3.40.0030.01021.90
8.3.30.0090.00618.86
8.3.20.0040.00424.18
8.3.10.0050.00224.66
8.3.00.0050.00326.16
8.2.290.0110.00820.78
8.2.280.0040.00418.45
8.2.270.0120.00616.97
8.2.260.0090.00916.63
8.2.250.0030.00516.89
8.2.240.0090.00017.25
8.2.230.0090.00920.94
8.2.220.0040.00424.06
8.2.210.0040.01126.77
8.2.200.0030.00716.75
8.2.190.0070.00716.63
8.2.180.0120.00325.92
8.2.170.0100.00719.09
8.2.160.0090.00622.96
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00019.56
8.2.110.0070.00421.12
8.2.100.0040.00817.91
8.2.90.0030.00518.03
8.2.80.0050.00318.04
8.2.70.0000.00817.90
8.2.60.0000.00818.09
8.2.50.0090.00318.10
8.2.40.0070.00019.39
8.2.30.0070.00019.29
8.2.20.0000.00818.07
8.2.10.0040.00419.21
8.2.00.0000.00819.20
8.1.330.0090.01021.70
8.1.320.0120.00916.23
8.1.310.0110.00418.43
8.1.300.0120.00318.14
8.1.290.0040.00430.84
8.1.280.0070.00725.92
8.1.270.0160.00323.76
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0030.00622.04
8.1.230.0040.00822.46
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0100.00017.35
8.1.190.0050.00317.35
8.1.180.0080.00018.10
8.1.170.0030.00618.61
8.1.160.0050.00319.10
8.1.150.0040.00418.85
8.1.140.0080.00018.78
8.1.130.0000.00720.16
8.1.120.0040.00417.41
8.1.110.0050.00317.53
8.1.100.0050.00317.60
8.1.90.0000.00817.40
8.1.80.0030.00517.42
8.1.70.0080.00317.52
8.1.60.0060.00317.69
8.1.50.0060.00317.53
8.1.40.0050.00317.49
8.1.30.0030.00617.73
8.1.20.0030.00617.67
8.1.10.0050.00317.49
8.1.00.0100.00017.57
8.0.300.0080.00022.03
8.0.290.0040.00416.75
8.0.280.0000.00718.27
8.0.270.0040.00416.87
8.0.260.0030.00320.27
8.0.250.0000.00717.13
8.0.240.0070.00017.00
8.0.230.0030.00517.09
8.0.220.0000.00717.05
8.0.210.0070.00017.02
8.0.200.0060.00017.05
8.0.190.0060.00316.95
8.0.180.0030.00516.91
8.0.170.0090.00016.93
8.0.160.0050.00217.09
8.0.150.0020.00517.03
8.0.140.0050.00317.00
8.0.130.0030.00313.44
8.0.120.0060.00316.94
8.0.110.0040.00416.93
8.0.100.0040.00417.14
8.0.90.0070.00016.89
8.0.80.0080.00817.06
8.0.70.0000.00817.06
8.0.60.0000.00716.88
8.0.50.0000.00817.02
8.0.30.0140.00316.96
8.0.20.0120.00617.22
8.0.10.0030.00617.00
8.0.00.0120.00616.78
7.4.330.0000.00515.55
7.4.320.0060.00016.71
7.4.300.0060.00316.73
7.4.290.0040.00416.73
7.4.280.0050.00616.75
7.4.270.0040.00416.64
7.4.260.0000.00513.39
7.4.250.0050.00316.75
7.4.240.0000.00716.80
7.4.230.0040.00416.72
7.4.220.0060.00116.77
7.4.210.0090.00916.77
7.4.200.0080.00016.54
7.4.130.0080.00916.61
7.4.120.0110.01116.64
7.4.110.0120.01016.66
7.4.100.0130.01316.64
7.4.90.0180.01016.71
7.4.80.0170.00316.51
7.4.70.0110.00716.69
7.4.60.0100.00816.42
7.4.50.0120.00616.65
7.4.40.0130.00616.61
7.4.30.0090.01416.77
7.4.20.0160.01216.65
7.4.10.0130.01316.53
7.4.00.0180.00616.69
7.3.330.0000.00716.20
7.3.320.0050.00013.10
7.3.310.0040.00416.30
7.3.300.0040.00416.34
7.3.290.0090.00516.30
7.3.260.0140.01216.63
7.3.240.0030.01616.34
7.3.230.0120.01216.57
7.3.220.0110.00816.64
7.3.210.0100.00716.32
7.3.200.0100.01016.18
7.3.190.0000.02016.71
7.3.180.0080.00916.55
7.3.170.0060.01116.55
7.3.160.0070.01316.50
7.3.150.0100.00916.45
7.3.140.0130.00816.31
7.3.130.0170.00016.65
7.3.120.0090.01316.29
7.3.110.0120.00616.23
7.3.100.0170.00716.38
7.3.90.0130.01016.45
7.3.80.0100.00916.52
7.3.70.0070.01416.35
7.3.60.0110.01216.39
7.3.50.0090.01516.39
7.3.40.0070.01716.19
7.3.30.0060.01316.33
7.3.20.0640.01216.45
7.3.10.0060.01316.38
7.3.00.0130.00516.43
7.2.340.0190.00616.50
7.2.330.0060.01416.35
7.2.320.0140.00416.60
7.2.310.0080.01116.62
7.2.300.0080.01116.64
7.2.290.0140.00716.36
7.2.280.0140.01216.65
7.2.270.0060.02016.54
7.2.260.0190.00516.54
7.2.250.0090.00916.36
7.2.240.0130.00516.38
7.2.230.0190.00716.50
7.2.220.0060.01316.51
7.2.210.0130.00916.55
7.2.200.0130.01016.68
7.2.190.0130.01116.56
7.2.180.0120.01216.60
7.2.170.0160.01016.32
7.2.160.0170.00416.68
7.2.150.0060.01316.71
7.2.140.0120.00816.60
7.2.130.0100.01016.63
7.2.120.0050.01316.53
7.2.110.0140.00516.79
7.2.100.0140.00416.58
7.2.90.0160.00316.50
7.2.80.0120.00616.54
7.2.70.0140.00516.52
7.2.60.0140.00516.55
7.2.50.0070.01216.47
7.2.40.0160.00316.77
7.2.30.0130.00716.64
7.2.20.0070.01216.70
7.2.10.0020.01716.78
7.2.00.0090.01216.45

preferences:
173.92 ms | 403 KiB | 5 Q