3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = '<h2>Title of post</h2> 1 category <strong>task 1</strong> 1 category <strong>task 2</strong> 1 category <strong>task 3</strong>&nbsp;'; preg_match_all('#<\/h2>(.*?)<strong>#',$content,$matches); print_r($matches);

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.0120.00720.53
8.4.110.0160.00822.28
8.4.100.0040.00617.91
8.4.90.0150.00617.88
8.4.80.0140.00818.05
8.4.70.0130.00820.75
8.4.60.0130.00818.94
8.4.50.0120.00218.59
8.4.40.0140.00017.94
8.4.30.0130.00917.77
8.4.20.0150.00018.40
8.4.10.0000.00917.65
8.3.250.0070.01018.70
8.3.240.0110.00816.83
8.3.230.0150.00516.60
8.3.220.0100.00917.20
8.3.210.0090.01018.39
8.3.200.0030.00616.71
8.3.190.0110.00917.09
8.3.180.0100.00916.39
8.3.170.0030.01516.90
8.3.160.0120.00618.24
8.3.150.0150.00420.53
8.3.140.0060.00318.64
8.3.130.0050.01018.50
8.3.120.0060.00320.60
8.3.110.0220.00918.59
8.3.100.0230.00620.25
8.3.90.0300.00221.73
8.3.80.0270.00217.28
8.3.70.0280.00716.56
8.3.60.0270.00517.15
8.3.50.0200.00917.53
8.3.40.0220.00718.15
8.3.30.0180.01118.08
8.3.20.0160.00718.10
8.3.10.0180.00819.60
8.3.00.0130.00421.49
8.2.290.0070.01120.50
8.2.280.0100.00918.79
8.2.270.0100.01019.22
8.2.260.0090.00020.09
8.2.250.0100.01018.59
8.2.240.0080.00317.18
8.2.230.0260.00119.43
8.2.220.0150.00926.90
8.2.210.0140.00921.74
8.2.200.0170.00817.51
8.2.190.0210.00716.60
8.2.180.0190.00917.43
8.2.170.0240.00820.17
8.2.160.0230.00419.07
8.2.150.0150.00320.90
8.2.140.0120.00421.01
8.2.130.0220.00219.81
8.2.120.0190.00621.99
8.2.110.0190.00419.21
8.2.100.0230.00117.69
8.2.90.0150.00917.77
8.2.80.0200.00317.74
8.2.70.0140.00317.68
8.2.60.0130.00117.80
8.2.50.0230.00517.92
8.2.40.0140.00218.38
8.2.30.0130.00319.04
8.2.20.0150.00517.65
8.2.10.0140.00417.65
8.2.00.0140.00718.31
8.1.330.0110.00818.45
8.1.320.0140.00516.07
8.1.310.0000.00816.64
8.1.300.0080.00819.72
8.1.290.0160.00717.42
8.1.280.0160.01020.83
8.1.270.0110.00919.61
8.1.260.0160.00621.73
8.1.250.0220.00022.47
8.1.240.0100.00520.62
8.1.230.0140.00219.01
8.1.220.0080.00617.35
8.1.210.0060.00917.95
8.1.200.0120.00217.24
8.1.190.0080.00717.19
8.1.180.0110.00317.67
8.1.170.0090.00517.99
8.1.160.0100.00617.80
8.1.150.0080.00618.09
8.1.140.0100.00418.09
8.1.130.0100.00518.38
8.1.120.0070.00717.86
8.1.110.0110.00517.75
8.1.100.0120.00617.85
8.1.90.0110.00518.35
8.1.80.0080.00718.32
8.1.70.0110.00318.36
8.1.60.0140.00317.92
8.1.50.0110.00617.88
8.1.40.0110.00517.88
8.1.30.0110.00717.94
8.1.20.0100.00918.03
8.1.10.0140.00317.83
8.1.00.0110.00417.77
8.0.300.0080.00618.13
8.0.290.0070.00716.61
8.0.280.0100.00417.44
8.0.270.0120.00416.72
8.0.260.0110.00417.30
8.0.250.0100.00417.23
8.0.240.0060.00617.13
8.0.230.0110.00417.21
8.0.220.0130.00117.12
8.0.210.0110.00217.18
8.0.200.0120.00217.28
8.0.190.0080.00717.21
8.0.180.0110.00617.17
8.0.170.0080.00517.15
8.0.160.0100.00417.14
8.0.150.0090.00517.04
8.0.140.0090.00517.13
8.0.130.0080.00515.93
8.0.120.0080.00517.12
8.0.110.0100.00317.15
8.0.100.0080.00517.17
8.0.90.0070.00617.20
8.0.80.0140.00517.07
8.0.70.0100.00417.02
8.0.60.0090.00417.18
8.0.50.0070.00717.13
8.0.30.0100.00817.28
8.0.20.0140.00517.31
8.0.10.0070.00717.11
8.0.00.0080.01017.18
7.4.330.0100.00315.70
7.4.320.0090.00616.98
7.4.300.0090.00616.90
7.4.290.0100.00516.89
7.4.280.0120.00316.88
7.4.270.0120.00316.85
7.4.260.0110.00316.77
7.4.250.0120.00316.89
7.4.240.0120.00316.95
7.4.230.0110.00416.84
7.4.220.0100.00316.95
7.4.210.0110.00716.79
7.4.200.0100.00416.96
7.4.190.0100.00517.14
7.4.180.0100.00817.11
7.4.160.0150.00117.03
7.4.150.0070.00817.07
7.4.140.0090.00817.61
7.4.130.0040.01216.98
7.4.120.0110.00816.72
7.4.110.0090.00716.85
7.4.100.0060.01017.01
7.4.90.0090.00716.99
7.4.80.0110.00517.72
7.4.70.0120.00516.78
7.4.60.0110.00516.88
7.4.50.0080.00816.86
7.4.40.0170.00816.70
7.4.30.0170.00417.04
7.4.20.0110.00716.93
7.4.10.0110.00816.38
7.4.00.0100.00716.19
7.3.330.0090.00315.59
7.3.320.0090.00515.45
7.3.310.0120.00516.58
7.3.300.0130.00616.55
7.3.290.0120.00116.59
7.3.280.0110.00716.50
7.3.270.0230.00316.77
7.3.260.0110.00816.49
7.3.250.0180.00716.63
7.3.240.0120.00816.44
7.3.230.0190.00616.58
7.3.220.0190.00616.71
7.3.210.0190.00416.62
7.3.200.0150.00816.67
7.3.190.0160.00616.72
7.3.180.0140.00716.41
7.3.170.0200.00716.56
7.3.160.0160.00616.48
7.3.150.0190.00716.58
7.3.140.0220.00416.53
7.3.130.0180.00516.07
7.3.120.0100.01016.24
7.3.110.0150.00416.08
7.3.100.0120.00816.03
7.3.90.0100.00616.33
7.3.80.0140.00616.26
7.3.70.0120.00416.11
7.3.60.0080.00616.19
7.3.50.0110.01116.12
7.3.40.0140.00616.21
7.3.30.0110.00615.83
7.3.20.0690.00516.57
7.3.10.0690.00516.52
7.3.00.0740.00816.70
7.2.340.0190.00616.93
7.2.330.0150.00616.83
7.2.320.0160.00516.72
7.2.310.0140.01016.69
7.2.300.0160.00416.74
7.2.290.0130.00916.80
7.2.280.0190.00816.88
7.2.270.0200.00616.80
7.2.260.0140.00616.40
7.2.250.0080.01416.16
7.2.240.0170.00416.26
7.2.230.0120.00816.29
7.2.220.0130.00816.30
7.2.210.0150.00616.25
7.2.200.0110.00816.27
7.2.190.0120.00816.30
7.2.180.0150.00616.33
7.2.170.0120.00616.27
7.2.160.0110.00716.08
7.2.150.0600.00816.81
7.2.140.0660.00616.78
7.2.130.0810.00416.91
7.2.120.0640.00616.78
7.2.110.0510.00916.77
7.2.100.0780.00516.70
7.2.90.0550.00716.86
7.2.80.0490.00616.43
7.2.70.0510.00616.47
7.2.60.0740.00516.44
7.2.50.0550.00716.44
7.2.40.0480.00616.53
7.2.30.0520.00816.49
7.2.20.0510.00716.51
7.2.10.0560.00716.50
7.2.00.0540.00716.51
7.1.330.0200.00315.75
7.1.320.0120.01015.93
7.1.310.0200.00415.86
7.1.300.0190.00515.92
7.1.290.0160.00615.81
7.1.280.0170.00615.95
7.1.270.0720.00615.37
7.1.260.1020.00515.26
7.1.250.0890.00415.42
7.1.240.0900.00415.35
7.1.230.0740.00815.51
7.1.220.1010.00415.36
7.1.210.0910.00615.39
7.1.200.0770.00515.06
7.1.190.0610.00615.08
7.1.180.0760.00815.03
7.1.170.0540.00914.97
7.1.160.0640.00715.14
7.1.150.0640.00815.04
7.1.140.0670.00615.14
7.1.130.0600.00915.15
7.1.120.0660.00515.08
7.1.110.0640.00615.22
7.1.100.0650.00615.08
7.1.90.0430.00915.18
7.1.80.0420.00615.22
7.1.70.0430.00915.01
7.1.60.0470.00818.79
7.1.50.0470.00618.72
7.1.40.0490.00918.73
7.1.30.0470.00818.71
7.1.20.0450.01118.71
7.1.10.0440.00815.19
7.1.00.0420.00615.12
7.0.330.0850.00715.04
7.0.320.0150.00815.56
7.0.310.0200.00315.58
7.0.300.0150.00715.55
7.0.290.0230.00115.67
7.0.280.0150.01115.60
7.0.270.0140.01115.53
7.0.260.0150.00815.63
7.0.250.0230.00615.49
7.0.240.0180.00615.72
7.0.230.0180.00415.52
7.0.220.0140.01115.64
7.0.210.0210.00215.65
7.0.200.0130.01015.60
7.0.190.0140.00815.63
7.0.180.0200.00415.61
7.0.170.0090.01115.65
7.0.160.0140.00615.47
7.0.150.0170.00615.60
7.0.140.0170.00615.55
7.0.130.0160.00615.80
7.0.120.0120.00915.58
7.0.110.0130.00815.65
7.0.100.0170.00615.45
7.0.90.0160.00615.58
7.0.80.0120.01015.47
7.0.70.0220.00415.39
7.0.60.0160.00715.57
7.0.50.0140.00715.47
7.0.40.0160.01015.66
7.0.30.0140.00815.48
7.0.20.0110.01215.43
7.0.10.0160.00515.70
7.0.00.0130.00915.48
5.6.400.0180.00415.16
5.6.390.0170.00515.26
5.6.380.0160.00515.25
5.6.370.0150.00715.50
5.6.360.0180.00515.46
5.6.350.0240.00215.64
5.6.340.0190.00715.48
5.6.330.0150.00715.58
5.6.320.0180.00915.54
5.6.310.0130.00915.68
5.6.300.0170.00615.53
5.6.290.0150.00915.60
5.6.280.0150.00615.61
5.6.270.0190.00315.36
5.6.260.0170.00615.50
5.6.250.0130.01015.48
5.6.240.0160.00715.50
5.6.230.0110.00615.48
5.6.220.0080.00715.56
5.6.210.0110.00515.66
5.6.200.0140.00415.67
5.6.190.0180.00315.62
5.6.180.0140.00715.55
5.6.170.0160.00515.59
5.6.160.0180.00515.72
5.6.150.0150.00715.61
5.6.140.0180.00415.68
5.6.130.0160.00815.62
5.6.120.0140.00715.66
5.6.110.0120.01015.57
5.6.100.0140.00715.54
5.6.90.0170.00715.48
5.6.80.0190.00315.43
5.6.70.0160.00415.59
5.6.60.0150.00615.63
5.6.50.0110.01115.52
5.6.40.0180.00515.37
5.6.30.0190.00515.43
5.6.20.0140.00615.40
5.6.10.0130.00815.51
5.6.00.0160.00615.42

preferences:
34.37 ms | 403 KiB | 5 Q