3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = <<<'AHA' abc [code lang='javascript'] var a = 2.5; [/code] bcd [code lang='php'] $this->foo(); [/code] cde [code lang='html'] <p clas = 'bar'><span>hello world</span></p> [/code] def AHA; $r='/((^|\[\/code\]).*?(\[code[^\]]*?\]|$))/s'; preg_match_all($r, $str, $a); print_r($a[0]);

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.0120.00918.30
8.3.50.0170.00316.45
8.3.40.0150.00618.68
8.3.30.0000.01418.79
8.3.20.0000.00720.34
8.3.10.0080.00021.60
8.3.00.0080.00017.75
8.2.180.0070.01416.75
8.2.170.0090.00922.96
8.2.160.0000.01519.16
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00822.38
8.2.120.0080.00026.35
8.2.110.0060.00319.31
8.2.100.0160.00417.86
8.2.90.0050.00319.28
8.2.80.0030.00617.97
8.2.70.0060.00317.63
8.2.60.0000.00817.80
8.2.50.0090.00018.07
8.2.40.0040.00418.29
8.2.30.0000.00718.00
8.2.20.0000.00717.90
8.2.10.0030.00618.07
8.2.00.0040.00417.98
8.1.270.0040.00423.92
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0040.00422.24
8.1.230.0140.00017.56
8.1.220.0060.00317.74
8.1.210.0030.00518.77
8.1.200.0060.00317.48
8.1.190.0060.00317.35
8.1.180.0080.00018.10
8.1.170.0090.00218.50
8.1.160.0030.00618.87
8.1.150.0000.00718.89
8.1.140.0000.00719.50
8.1.130.0040.00417.68
8.1.120.0000.00817.46
8.1.110.0030.00517.44
8.1.100.0000.00717.57
8.1.90.0040.00417.63
8.1.80.0000.00717.54
8.1.70.0080.00017.57
8.1.60.0030.00517.57
8.1.50.0040.00417.60
8.1.40.0040.00417.52
8.1.30.0080.00017.71
8.1.20.0000.00817.70
8.1.10.0080.00017.64
8.1.00.0000.00817.57
8.0.300.0080.00018.77
8.0.290.0080.00016.75
8.0.280.0050.00218.34
8.0.270.0070.00017.14
8.0.260.0000.00617.22
8.0.250.0030.00316.99
8.0.240.0000.00716.95
8.0.230.0070.00317.12
8.0.220.0070.00017.03
8.0.210.0000.00817.08
8.0.200.0060.00316.98
8.0.190.0040.00417.09
8.0.180.0040.00417.10
8.0.170.0040.00417.03
8.0.160.0070.00017.10
8.0.150.0030.00616.88
8.0.140.0090.00016.93
8.0.130.0000.00513.44
8.0.120.0040.00417.01
8.0.110.0040.00417.04
8.0.100.0040.00416.99
8.0.90.0000.00816.84
8.0.80.0100.00617.00
8.0.70.0000.00717.04
8.0.60.0070.00017.04
8.0.50.0040.00416.84
8.0.30.0110.00817.18
8.0.20.0110.00817.41
8.0.10.0040.00416.95
8.0.00.0000.01617.05
7.4.330.0050.00015.08
7.4.320.0000.00616.57
7.4.300.0030.00316.78
7.4.290.0030.00316.55
7.4.280.0000.00816.73
7.4.270.0030.00316.68
7.4.260.0030.00716.64
7.4.250.0030.00316.72
7.4.240.0040.00416.68
7.4.230.0000.00816.87
7.4.220.0120.00616.61
7.4.210.0030.01716.62
7.4.200.0040.00416.84
7.4.160.0140.00316.69
7.4.150.0130.00617.40
7.4.140.0140.00717.86
7.4.130.0070.01016.69
7.4.120.0110.00616.65
7.4.110.0070.01016.64
7.4.100.0080.00916.63
7.4.90.0110.00516.66
7.4.80.0150.00419.39
7.4.70.0120.00616.86
7.4.60.0100.01016.46
7.4.50.0060.00916.65
7.4.40.0070.01016.49
7.4.30.0090.00916.59
7.4.10.0040.00815.04
7.4.00.0110.00515.02
7.3.330.0000.00613.39
7.3.320.0050.00013.24
7.3.310.0000.00716.35
7.3.300.0060.00016.46
7.3.290.0110.00516.45
7.3.280.0090.01016.40
7.3.270.0040.01317.40
7.3.260.0160.00116.53
7.3.250.0070.01216.50
7.3.240.0090.00916.57
7.3.230.0000.01716.43
7.3.210.0120.00416.75
7.3.200.0170.00316.43
7.3.190.0130.00816.39
7.3.180.0130.00416.61
7.3.170.0130.00916.53
7.3.160.0030.01316.39
7.3.130.0120.00615.14
7.3.120.0070.01015.19
7.3.110.0170.00314.91
7.3.100.0060.01015.08
7.3.90.0060.01214.57
7.3.80.0060.00914.91
7.3.70.0150.00014.92
7.3.60.0090.00615.08
7.3.50.0060.00314.98
7.3.40.0110.00414.91
7.3.30.0110.00314.81
7.3.20.0000.01316.50
7.3.10.0080.00816.59
7.3.00.0030.01116.66
7.2.330.0150.00916.85
7.2.320.0110.00716.59
7.2.310.0120.00616.68
7.2.300.0060.01316.71
7.2.290.0140.00616.72
7.2.260.0070.00915.23
7.2.250.0150.00415.26
7.2.240.0110.00415.22
7.2.230.0090.00614.74
7.2.220.0090.00915.15
7.2.210.0090.00615.16
7.2.200.0070.01014.83
7.2.190.0080.00814.82
7.2.180.0080.00415.10
7.2.170.0030.00615.04
7.2.160.0070.00415.11
7.2.150.0030.00817.04
7.2.140.0090.00317.07
7.2.130.0080.00716.89
7.2.120.0090.00716.91
7.2.110.0060.01216.78
7.2.100.0080.00716.66
7.2.90.0100.00616.83
7.2.80.0090.00916.88
7.2.70.0030.01416.96
7.2.60.0070.00816.80
7.2.50.0060.01016.87
7.2.40.0090.00716.97
7.2.30.0090.00616.84
7.2.20.0070.00816.80
7.2.10.0060.01116.93
7.2.00.0080.00617.63
7.1.330.0040.01215.81
7.1.320.0090.00915.85
7.1.310.0040.01115.84
7.1.300.0040.01415.71
7.1.290.0030.00916.04
7.1.280.0030.00615.73
7.1.270.0050.00515.95
7.1.260.0060.00615.95
7.1.250.0090.00615.93
7.1.240.0080.00415.98
7.1.230.0060.00915.90
7.1.220.0030.01115.80
7.1.210.0040.01015.86
7.1.200.0060.00815.91
7.1.190.0100.00515.83
7.1.180.0040.01115.78
7.1.170.0060.01015.72
7.1.160.0080.00715.81
7.1.150.0090.00315.89
7.1.140.0030.01215.86
7.1.130.0050.00915.85
7.1.120.0030.00815.61
7.1.110.0050.01015.95
7.1.100.0050.00715.91
7.1.90.0070.00715.86
7.1.80.0090.00515.79
7.1.70.0060.00816.32
7.1.60.0050.00917.22
7.1.50.0090.00515.94
7.1.40.0090.00815.84
7.1.30.0060.00415.95
7.1.20.0020.00915.92
7.1.10.0050.01015.79
7.1.00.0050.03118.02
7.0.330.0030.01015.39
7.0.320.0040.00815.34
7.0.310.0070.00615.47
7.0.300.0040.00915.41
7.0.290.0090.00415.54
7.0.280.0080.00615.50
7.0.270.0100.00215.39
7.0.260.0100.00515.56
7.0.250.0090.00515.43
7.0.240.0090.00715.52
7.0.230.0040.01215.56
7.0.220.0070.00615.19
7.0.210.0090.00915.24
7.0.200.0100.00815.30
7.0.190.0050.01015.44
7.0.180.0080.00615.44
7.0.170.0050.01015.42
7.0.160.0060.00615.33
7.0.150.0070.00715.63
7.0.140.0050.00915.40
7.0.130.0080.00715.58
7.0.120.0060.01115.42
7.0.110.0080.00815.30
7.0.100.0080.00815.53
7.0.90.0070.01115.37
7.0.80.0110.02117.05
7.0.70.0400.02416.92
7.0.60.0420.02516.89
7.0.50.0430.02717.22
7.0.40.0420.02215.72
7.0.30.0440.02315.77
7.0.20.0370.02615.64
7.0.10.0420.02315.80
7.0.00.0410.02215.77
5.6.400.0100.00314.39
5.6.390.0070.00714.50
5.6.380.0060.00814.09
5.6.370.0090.00214.44
5.6.360.0030.01114.36
5.6.350.0110.00514.37
5.6.340.0060.00914.36
5.6.330.0110.00314.28
5.6.320.0080.00714.44
5.6.310.0080.00614.19
5.6.300.0080.00614.29
5.6.290.0070.00814.39
5.6.280.0030.03216.44
5.6.270.0090.00814.36
5.6.260.0090.00814.28
5.6.250.0040.01214.03
5.6.240.0080.00614.15
5.6.230.0230.02616.39
5.6.220.0360.02416.30
5.6.210.0370.02416.24
5.6.200.0320.02916.51
5.6.190.0330.02416.57
5.6.180.0360.02116.53
5.6.170.0360.02216.44
5.6.160.0350.02316.61
5.6.150.0350.02416.46
5.6.140.0370.02316.46
5.6.130.0400.02116.55
5.6.120.0110.02316.50
5.6.110.0170.02516.56
5.6.100.0350.02416.52
5.6.90.0370.02216.50
5.6.80.0390.02216.15
5.6.70.0330.02116.18
5.6.60.0330.02716.36
5.6.50.0300.02616.13
5.6.40.0340.02316.25
5.6.30.0330.02516.14
5.6.20.0370.02116.30
5.6.10.0340.02316.17
5.6.00.0320.02616.21
5.5.380.0070.00712.63
5.5.370.0090.02315.14
5.5.360.0330.02215.18
5.5.350.0400.01915.20
5.5.340.0410.01915.29
5.5.330.0330.02215.33
5.5.320.0320.02715.29
5.5.310.0340.02715.40
5.5.300.0310.02615.51
5.5.290.0370.02115.38
5.5.280.0050.02715.39
5.5.270.0300.03115.43
5.5.260.0370.02115.46
5.5.250.0280.02715.43
5.5.240.0340.02215.22
5.5.230.0390.02215.06
5.5.220.0330.02314.99
5.5.210.0340.02315.21
5.5.200.0350.02015.13
5.5.190.0330.02515.14
5.5.180.0360.02215.18
5.5.170.0050.00612.47
5.5.160.0300.02515.16
5.5.150.0330.02215.09
5.5.140.0320.02315.13
5.5.130.0310.02315.03
5.5.120.0300.02515.11
5.5.110.0300.02415.19
5.5.100.0350.01915.17
5.5.90.0280.02715.03
5.5.80.0270.02915.09
5.5.70.0320.02315.12
5.5.60.0330.02214.91
5.5.50.0340.02015.11
5.5.40.0300.02515.09
5.5.30.0350.02415.12
5.5.20.0340.02515.08
5.5.10.0380.03114.95
5.5.00.0380.02014.96

preferences:
60.51 ms | 401 KiB | 5 Q