3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "<h3>hello</h3>this is my test and <h3><span>bye</span></h3>"; $arr = preg_split('/(<h3>.*?<\/h3>)/', $str, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE); 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.3.130.0030.00616.72
8.3.120.0190.00619.10
8.3.110.0030.00620.94
8.3.100.0060.00324.06
8.3.90.0080.00026.77
8.3.80.0030.00617.97
8.3.70.0060.00916.63
8.3.60.0140.00718.31
8.3.50.0070.00618.21
8.3.40.0090.00919.00
8.3.30.0070.00718.71
8.3.20.0040.00418.85
8.3.10.0030.00621.92
8.3.00.0040.00420.94
8.2.250.0040.00418.62
8.2.240.0090.00918.85
8.2.230.0030.00622.58
8.2.220.0150.00337.54
8.2.210.0030.00526.77
8.2.200.0070.00716.75
8.2.190.0120.00316.88
8.2.180.0090.00916.38
8.2.170.0100.00719.09
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0020.00524.66
8.2.130.0030.00626.16
8.2.120.0040.00419.95
8.2.110.0070.01020.53
8.2.100.0090.00317.78
8.2.90.0000.01017.84
8.2.80.0050.00319.60
8.2.70.0030.00517.75
8.2.60.0040.00417.80
8.2.50.0080.00018.07
8.2.40.0000.00818.05
8.2.30.0040.00417.93
8.2.20.0080.00017.92
8.2.10.0050.00217.99
8.2.00.0040.00418.11
8.1.300.0130.00618.36
8.1.290.0060.00330.84
8.1.280.0040.01425.92
8.1.270.0060.00322.00
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0050.00524.01
8.1.230.0120.00320.97
8.1.220.0050.00317.74
8.1.210.0040.00418.84
8.1.200.0110.00017.48
8.1.190.0000.00817.35
8.1.180.0000.00818.10
8.1.170.0030.00618.75
8.1.160.0000.00718.93
8.1.150.0040.00418.79
8.1.140.0000.00722.05
8.1.130.0030.00320.08
8.1.120.0060.00317.60
8.1.110.0040.00417.44
8.1.100.0060.00317.47
8.1.90.0040.00417.52
8.1.80.0000.00817.55
8.1.70.0000.00717.54
8.1.60.0040.00417.64
8.1.50.0060.00617.55
8.1.40.0060.00617.43
8.1.30.0040.00417.61
8.1.20.0140.00517.71
8.1.10.0120.00317.52
8.1.00.0110.00517.46
8.0.300.0000.00719.89
8.0.290.0000.00716.75
8.0.280.0070.00018.36
8.0.270.0000.00717.22
8.0.260.0000.00618.41
8.0.250.0030.00317.02
8.0.240.0070.00016.86
8.0.230.0070.00417.09
8.0.220.0000.00916.95
8.0.210.0070.00017.01
8.0.200.0030.00316.94
8.0.190.0040.00416.95
8.0.180.0060.00316.93
8.0.170.0040.00417.01
8.0.160.0070.00016.92
8.0.150.0120.00316.89
8.0.140.0100.00316.90
8.0.130.0100.00416.01
8.0.120.0090.00416.93
8.0.110.0070.00616.87
8.0.100.0080.00816.88
8.0.90.0120.00316.96
8.0.80.0130.00516.95
8.0.70.0130.00416.84
8.0.60.0110.00516.90
8.0.50.0130.00316.89
8.0.30.0150.00516.95
8.0.20.0140.00517.09
8.0.10.0130.00517.06
8.0.00.0100.00616.97
7.4.330.0000.00515.55
7.4.320.0000.00716.71
7.4.300.0030.00316.75
7.4.290.0030.00316.60
7.4.280.0030.00316.69
7.4.270.0120.00816.70
7.4.260.0140.00316.69
7.4.250.0110.00616.68
7.4.240.0030.00416.69
7.4.230.0040.00416.68
7.4.220.0020.00716.66
7.4.210.0090.00616.59
7.4.200.0120.00316.70
7.4.190.0140.00516.76
7.4.180.0170.00416.73
7.4.160.0120.00416.61
7.4.150.0150.00416.70
7.4.140.0110.00617.32
7.4.130.0090.00916.55
7.4.120.0100.00816.53
7.4.110.0130.00416.53
7.4.100.0120.00616.57
7.4.90.0110.00516.64
7.4.80.0080.01117.15
7.4.70.0100.00916.57
7.4.60.0110.00716.58
7.4.50.0110.00616.55
7.4.40.0130.00616.53
7.4.30.0160.00416.52
7.4.20.0120.00716.50
7.4.10.0150.00416.54
7.4.00.0120.00716.14
7.3.330.0110.00515.46
7.3.320.0110.00515.50
7.3.310.0120.00416.21
7.3.300.0100.00616.27
7.3.290.0100.00616.27
7.3.280.0110.00716.28
7.3.270.0160.00316.18
7.3.260.0130.00516.37
7.3.250.0150.00416.28
7.3.240.0130.00616.44
7.3.230.0140.00416.31
7.3.220.0140.00416.15
7.3.210.0110.00816.32
7.3.200.0140.00416.35
7.3.190.0160.00316.26
7.3.180.0120.00716.34
7.3.170.0100.00816.31
7.3.160.0140.00516.21
7.3.150.0140.00416.20
7.3.140.0140.00416.20
7.3.130.0140.00516.19
7.3.120.0140.00416.34
7.3.110.0150.00416.22
7.3.100.0130.00516.18
7.3.90.0100.00816.58
7.3.80.0160.00316.37
7.3.70.0140.00516.29
7.3.60.0130.00616.41
7.3.50.0160.00416.42
7.3.40.0150.00416.34
7.3.30.0110.00816.34
7.3.20.0120.00617.69
7.3.10.0130.00417.47
7.3.00.0130.00617.56
7.2.340.0170.00416.49
7.2.330.0140.00816.45
7.2.320.0160.00616.55
7.2.310.0140.00716.58
7.2.300.0120.00716.58
7.2.290.0150.00616.53
7.2.280.0180.00416.50
7.2.270.0180.00316.47
7.2.260.0150.00516.51
7.2.250.0150.00416.44
7.2.240.0130.00816.58
7.2.230.0120.01016.54
7.2.220.0160.00416.38
7.2.210.0180.00316.43
7.2.200.0160.00616.58
7.2.190.0160.00516.56
7.2.180.0160.00516.65
7.2.170.0140.00616.61
7.2.160.0150.00516.58
7.2.150.0130.00817.96
7.2.140.0170.00517.96
7.2.130.0130.00717.91
7.2.120.0170.00517.23
7.2.110.0160.00617.24
7.2.100.0150.00817.21
7.2.90.0170.00717.26
7.2.80.0160.00417.22
7.2.70.0180.00817.26
7.2.60.0170.00817.25
7.2.50.0170.00717.28
7.2.40.0190.00417.33
7.2.30.0160.00617.25
7.2.20.0480.00517.28
7.2.10.0170.00517.26
7.2.00.0150.00817.18
7.1.330.0160.00416.90
7.1.320.0140.00716.95
7.1.310.0160.00516.91
7.1.300.0160.00516.92
7.1.290.0230.00416.97
7.1.280.0150.00416.94
7.1.270.0150.00516.97
7.1.260.0160.00416.87
7.1.250.0130.00516.69
7.1.240.0190.00516.29
7.1.230.0110.00916.29
7.1.220.0150.00716.22
7.1.210.0160.00516.30
7.1.200.0220.00716.26
7.1.190.0200.00616.31
7.1.180.0210.00316.32
7.1.170.0190.00816.19
7.1.160.0180.00616.22
7.1.150.0180.00616.34
7.1.140.0150.00716.34
7.1.130.0190.00916.32
7.1.120.0200.00616.32
7.1.110.0180.00516.37
7.1.100.0170.00516.44
7.1.90.0170.00616.26
7.1.80.0170.00616.37
7.1.70.0180.00616.27
7.1.60.0200.00616.34
7.1.50.0170.00416.34
7.1.40.0190.00516.42
7.1.30.0190.00616.40
7.1.20.0180.00516.27
7.1.10.0210.00516.39
7.1.00.0190.00516.29
7.0.330.0160.00416.58
7.0.320.0150.00516.60
7.0.310.0130.00816.57
7.0.300.0150.00416.63
7.0.290.0150.00516.65
7.0.280.0140.00516.55
7.0.270.0160.00316.50
7.0.260.0160.00316.62
7.0.250.0170.00316.67
7.0.240.0130.00716.60
7.0.230.0190.00216.64
7.0.220.0150.00616.61
7.0.210.0160.00416.55
7.0.200.0130.00616.61
7.0.190.0160.00416.61
7.0.180.0160.00516.67
7.0.170.0180.00516.61
7.0.160.0160.00416.66
7.0.150.0180.00316.58
7.0.140.0170.00516.59
7.0.130.0160.00516.68
7.0.120.0170.00616.78
7.0.110.0150.00716.60
7.0.100.0210.00116.61
7.0.90.0160.00516.58
7.0.80.0150.00616.53
7.0.70.0150.00616.61
7.0.60.0170.00516.58
7.0.50.0150.00616.48
7.0.40.0170.00516.61
7.0.30.0170.00516.56
7.0.20.0190.00216.54
7.0.10.0170.00416.57
7.0.00.0170.00516.55
5.6.400.0150.00515.83
5.6.390.0150.00515.86
5.6.380.0140.00615.49
5.6.370.0170.00315.73
5.6.360.0160.00415.71
5.6.350.0150.00415.80
5.6.340.0130.00615.79
5.6.330.0140.00615.72
5.6.320.0150.00515.73
5.6.310.0160.00415.71
5.6.300.0160.00515.67
5.6.290.0130.00715.80
5.6.280.0190.00515.78
5.6.270.0180.00415.78
5.6.260.0150.00515.82
5.6.250.0140.00815.83
5.6.240.0130.00815.79
5.6.230.0150.00615.91
5.6.220.0150.00615.90
5.6.210.0170.00515.88
5.6.200.0150.00615.97
5.6.190.0150.00815.98
5.6.180.0190.00415.88
5.6.170.0180.00415.99
5.6.160.0140.00815.93
5.6.150.0150.00715.98
5.6.140.0150.00716.00
5.6.130.0170.00615.88
5.6.120.0160.00515.86
5.6.110.0120.00815.84
5.6.100.0150.00615.95
5.6.90.0150.00615.73
5.6.80.0120.00815.78
5.6.70.0130.00615.83
5.6.60.0120.01015.83
5.6.50.0160.00615.74
5.6.40.0160.00415.84
5.6.30.0150.00615.84
5.6.20.0130.00715.69
5.6.10.0120.00715.64
5.6.00.0150.00715.73

preferences:
38.43 ms | 403 KiB | 5 Q