3v4l.org

run code in 300+ PHP versions simultaneously
<?php //I want the 'delimX' to be included as well: $str = "It seems entirely 1 (b natural b) to us that there are teams of scientists in universities and other institutions around the world, attempting to 2 (b discover b) the way the world works. However, it hasn't always been that 3 (b way b) . Although the scientific method is now four or five hundred years old, the ancient Greeks, for example, believed that they could work out the 4 (b causes b) of natural events just by the power of thought."; $result = preg_split ('~(\(b.*?b\))~',$str ,-1, PREG_SPLIT_DELIM_CAPTURE); var_dump($result);

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.60.0060.01216.75
8.3.50.0070.01118.17
8.3.40.0080.00818.79
8.3.30.0100.00718.59
8.3.20.0140.00021.73
8.3.10.0040.00421.76
8.3.00.0080.00019.56
8.2.180.0100.01016.50
8.2.170.0000.01422.96
8.2.160.0070.00720.38
8.2.150.0100.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00420.38
8.2.120.0040.00426.35
8.2.110.0040.00420.35
8.2.100.0000.01217.84
8.2.90.0040.00419.27
8.2.80.0050.00317.97
8.2.70.0050.00317.50
8.2.60.0080.00017.68
8.2.50.0080.00018.10
8.2.40.0060.00320.47
8.2.30.0080.00019.16
8.2.20.0040.00417.89
8.2.10.0040.00417.95
8.2.00.0070.00018.04
8.1.280.0090.00925.92
8.1.270.0080.00020.56
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00722.05
8.1.230.0110.00017.64
8.1.220.0080.00017.74
8.1.210.0060.00318.77
8.1.200.0070.00317.35
8.1.190.0000.00817.36
8.1.180.0040.00418.10
8.1.170.0000.00818.71
8.1.160.0000.00818.94
8.1.150.0060.00318.78
8.1.140.0040.00419.45
8.1.130.0030.00318.75
8.1.120.0040.00417.48
8.1.110.0000.00917.55
8.1.100.0030.00617.44
8.1.90.0070.00017.56
8.1.80.0070.00017.53
8.1.70.0080.00017.44
8.1.60.0040.00417.65
8.1.50.0050.00317.64
8.1.40.0000.00817.50
8.1.30.0040.00417.75
8.1.20.0040.00417.71
8.1.10.0040.00417.56
8.1.00.0040.00417.55
8.0.300.0090.00020.15
8.0.290.0000.00716.75
8.0.280.0030.00318.45
8.0.270.0030.00317.25
8.0.260.0030.00319.07
8.0.250.0070.00016.90
8.0.240.0080.00017.08
8.0.230.0000.00716.95
8.0.220.0030.00316.82
8.0.210.0030.00316.86
8.0.200.0000.00816.91
8.0.190.0070.00317.07
8.0.180.0060.00317.00
8.0.170.0040.00416.98
8.0.160.0030.00616.87
8.0.150.0000.00717.00
8.0.140.0000.00716.82
8.0.130.0000.00513.39
8.0.120.0000.00716.97
8.0.110.0000.00816.91
8.0.100.0000.00716.93
8.0.90.0000.00717.04
8.0.80.0070.01016.83
8.0.70.0040.00416.82
8.0.60.0040.00417.01
8.0.50.0050.00216.96
8.0.30.0110.00717.09
8.0.20.0120.00717.42
8.0.10.0000.00717.00
8.0.00.0030.01616.72
7.4.330.0050.00015.55
7.4.320.0030.00316.73
7.4.300.0000.00616.64
7.4.290.0090.00016.65
7.4.280.0030.00616.54
7.4.270.0070.00016.66
7.4.260.0070.00016.65
7.4.250.0030.00616.62
7.4.240.0040.00416.66
7.4.230.0000.00816.80
7.4.220.0150.01016.77
7.4.210.0060.00916.69
7.4.200.0030.00316.72
7.4.160.0080.00816.58
7.4.150.0140.00317.40
7.4.140.0080.01417.86
7.4.130.0170.00316.65
7.4.120.0070.01316.70
7.4.110.0120.00816.70
7.4.100.0240.00016.68
7.4.90.0140.00416.60
7.4.80.0060.01319.39
7.4.70.0060.01016.33
7.4.60.0000.01716.51
7.4.50.0080.00816.74
7.4.40.0060.00916.64
7.4.30.0070.01016.82
7.4.00.0090.00815.07
7.3.330.0040.00413.22
7.3.320.0030.00313.04
7.3.310.0000.00716.16
7.3.300.0050.00216.26
7.3.290.0080.00616.32
7.3.280.0070.00916.26
7.3.270.0100.00717.40
7.3.260.0100.01016.39
7.3.250.0080.01216.35
7.3.240.0100.01216.36
7.3.230.0120.00616.28
7.3.210.0090.00616.32
7.3.200.0070.01116.66
7.3.190.0160.00016.35
7.3.180.0030.01416.58
7.3.170.0120.00416.41
7.3.160.0100.00716.57
7.3.120.0060.01314.85
7.3.110.0070.01114.60
7.3.100.0030.01414.73
7.3.90.0040.00815.14
7.3.80.0070.00714.71
7.3.70.0080.00814.95
7.3.60.0060.01014.60
7.3.50.0060.00614.77
7.3.40.0070.01014.66
7.3.30.0070.00714.89
7.3.20.0090.00916.66
7.3.10.0030.01016.50
7.3.00.0090.00616.85
7.2.330.0060.01216.76
7.2.320.0030.01516.63
7.2.310.0080.00916.58
7.2.300.0110.02316.60
7.2.290.0060.01216.81
7.2.250.0060.00914.98
7.2.240.0130.00615.11
7.2.230.0070.00715.10
7.2.220.0060.00915.10
7.2.210.0060.00315.07
7.2.200.0080.00414.94
7.2.190.0100.00315.10
7.2.180.0000.00914.88
7.2.170.0070.00715.00
7.2.160.0030.01315.25
7.2.150.0100.01017.09
7.2.140.0110.00416.89
7.2.130.0060.00917.11
7.2.120.0030.01316.94
7.2.110.0000.01216.67
7.2.100.0100.00317.02
7.2.90.0030.01016.91
7.2.80.0120.00017.11
7.2.70.0060.00617.21
7.2.60.0110.00517.07
7.2.50.0030.00916.98
7.2.40.0040.00816.93
7.2.30.0040.01116.71
7.2.20.0140.00316.99
7.2.10.0030.00916.71
7.2.00.0070.00717.01
7.1.330.0070.01015.97
7.1.320.0000.01315.95
7.1.310.0040.01215.93
7.1.300.0000.01115.88
7.1.290.0000.01215.80
7.1.280.0060.00915.90
7.1.270.0120.00315.74
7.1.260.0000.01415.93
7.1.250.0050.00816.00
7.1.240.0070.00715.93
7.1.230.0000.01015.60
7.1.220.0110.00415.70
7.1.210.0070.01016.02
7.1.200.0050.00615.83
7.1.190.0000.01315.91
7.1.180.0090.00615.90
7.1.170.0030.00615.94
7.1.160.0000.00815.75
7.1.150.0080.00415.86
7.1.140.0030.01216.05
7.1.130.0090.00616.02
7.1.120.0030.01015.99
7.1.110.0070.00415.80
7.1.100.0090.00616.07
7.1.90.0080.00615.77
7.1.80.0070.00715.93
7.1.70.0010.00716.64
7.1.60.0730.00824.56
7.1.50.0400.01224.56
7.1.40.0400.01424.34
7.1.30.0440.01124.27
7.1.20.0470.01324.39
7.1.10.0330.01115.34
7.1.00.0430.00715.27
7.0.330.0000.01015.49
7.0.320.0110.00315.52
7.0.310.0050.00515.71
7.0.300.0040.00415.56
7.0.290.0000.01215.40
7.0.280.0070.00715.20
7.0.270.0060.00315.34
7.0.260.0000.01215.25
7.0.250.0030.00915.65
7.0.240.0040.01215.30
7.0.230.0000.01515.30
7.0.220.0030.00615.65
7.0.210.0100.00315.46
7.0.200.0750.01115.19
7.0.190.0370.00715.28
7.0.180.0330.01514.82
7.0.170.0850.00914.74
7.0.160.0450.01014.90
7.0.150.0330.01414.89
7.0.140.0200.01014.95
7.0.130.0240.00714.98
7.0.120.0310.01015.03
7.0.110.0180.01415.15
7.0.100.0370.00814.94
7.0.90.0380.00615.01
7.0.80.0230.01215.13
7.0.70.0280.00715.12
7.0.60.0260.01014.95
7.0.50.0220.01015.03
7.0.40.0390.01214.25
7.0.30.0260.01114.07
7.0.20.0270.01214.11
7.0.10.0390.01114.16
7.0.00.0350.01214.16
5.6.400.0040.00714.20
5.6.390.0000.01214.15
5.6.380.0100.00314.43
5.6.370.0000.01414.16
5.6.360.0090.00314.36
5.6.350.0040.00814.41
5.6.340.0070.00714.33
5.6.330.0000.00814.14
5.6.320.0100.00614.53
5.6.310.0100.00713.69
5.6.300.0070.01014.09
5.6.290.0000.01314.44
5.6.280.0090.00014.27
5.6.270.0040.01514.25
5.6.260.0110.00714.11
5.6.250.0070.00714.30
5.6.240.0120.00314.26
5.6.230.0030.01014.13
5.6.220.0030.00614.07
5.6.210.0070.01314.28
5.6.200.0040.00814.26
5.6.190.0090.00614.17
5.6.180.0090.00913.99
5.6.170.0040.00714.16
5.6.160.0080.00814.28
5.6.150.0060.00914.14
5.6.140.0110.00314.36
5.6.130.0070.00314.31
5.6.120.0100.00314.19
5.6.110.0030.00914.03
5.6.100.0070.00413.93
5.6.90.0000.00914.02
5.6.80.0060.00614.03
5.6.70.0080.00814.35
5.6.60.0040.00814.09
5.6.50.0070.00714.33
5.6.40.0030.00613.78
5.6.30.0090.00314.02
5.6.20.0020.01414.22
5.6.10.0040.00414.07
5.6.00.0030.01413.82

preferences:
57.42 ms | 400 KiB | 5 Q