3v4l.org

run code in 300+ PHP versions simultaneously
<?php $class = 'Zend\Ha\Heee'; $matches = array(); preg_match('/(?P<namespace>.+\\\)?(?P<class>[^\\\]+$)/', $class, $matches); $class = (isset($matches['class'])) ? $matches['class'] : ''; $namespace = (isset($matches['namespace'])) ? $matches['namespace'] : ''; var_dump($class, $namespace);

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.0190.00316.75
8.3.50.0130.00922.00
8.3.40.0210.00018.90
8.3.30.0070.01019.09
8.3.20.0040.00420.20
8.3.10.0080.00023.58
8.3.00.0070.00417.47
8.2.180.0080.00818.66
8.2.170.0110.00422.96
8.2.160.0100.00320.45
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0040.01426.16
8.2.120.0040.00422.51
8.2.110.0060.00322.29
8.2.100.0040.00817.91
8.2.90.0030.00619.07
8.2.80.0050.00317.97
8.2.70.0060.00317.63
8.2.60.0030.00517.93
8.2.50.0050.00318.07
8.2.40.0040.00418.16
8.2.30.0080.00017.98
8.2.20.0050.00217.90
8.2.10.0080.00017.97
8.2.00.0060.00617.85
8.1.280.0090.00625.92
8.1.270.0080.00022.02
8.1.260.0120.00326.35
8.1.250.0030.00528.09
8.1.240.0030.00623.97
8.1.230.0120.00019.07
8.1.220.0000.00917.74
8.1.210.0080.00018.77
8.1.200.0060.00317.23
8.1.190.0040.00417.41
8.1.180.0060.00318.10
8.1.170.0050.00318.85
8.1.160.0030.00622.00
8.1.150.0050.00318.66
8.1.140.0060.00317.56
8.1.130.0030.00317.83
8.1.120.0030.00517.59
8.1.110.0000.00717.55
8.1.100.0000.00817.56
8.1.90.0050.00317.57
8.1.80.0050.00317.59
8.1.70.0030.00317.56
8.1.60.0000.00817.57
8.1.50.0030.00617.68
8.1.40.0040.00417.54
8.1.30.0000.00817.62
8.1.20.0000.00717.69
8.1.10.0040.00417.76
8.1.00.0050.00317.67
8.0.300.0070.00018.77
8.0.290.0060.00317.15
8.0.280.0040.00418.36
8.0.270.0000.00717.22
8.0.260.0000.00717.16
8.0.250.0070.00017.07
8.0.240.0030.00417.07
8.0.230.0080.00016.94
8.0.220.0030.00316.89
8.0.210.0050.00316.88
8.0.200.0030.00316.91
8.0.190.0080.00016.94
8.0.180.0000.00816.98
8.0.170.0040.00416.99
8.0.160.0070.00017.09
8.0.150.0000.01016.79
8.0.140.0040.00416.91
8.0.130.0000.00513.47
8.0.120.0040.00416.91
8.0.110.0050.00217.06
8.0.100.0040.00416.84
8.0.90.0040.00416.95
8.0.80.0120.00916.90
8.0.70.0000.00716.93
8.0.60.0000.00816.79
8.0.50.0080.00016.89
8.0.30.0150.00617.22
8.0.20.0100.01017.40
8.0.10.0040.00417.10
8.0.00.0130.00416.86
7.4.330.0000.00615.00
7.4.320.0060.00016.60
7.4.300.0000.00616.75
7.4.290.0000.00716.67
7.4.280.0040.00416.66
7.4.270.0000.00716.57
7.4.260.0000.00716.76
7.4.250.0040.00416.79
7.4.240.0020.00516.67
7.4.230.0000.00716.74
7.4.220.0060.01216.66
7.4.210.0090.00716.72
7.4.200.0070.00016.50
7.4.190.0040.00416.83
7.4.160.0070.01016.60
7.4.150.0120.00917.40
7.4.140.0080.00917.86
7.4.130.0080.00816.76
7.4.120.0070.01016.70
7.4.110.0100.00716.57
7.4.100.0120.00916.72
7.4.90.0120.00616.71
7.4.80.0130.00719.39
7.4.70.0110.00716.76
7.4.60.0030.01616.52
7.4.50.0000.00416.59
7.4.40.0100.00522.77
7.4.30.0140.00316.60
7.4.00.0070.00915.04
7.3.330.0060.00013.39
7.3.320.0000.00613.39
7.3.310.0030.00316.36
7.3.300.0030.00316.43
7.3.290.0080.01216.40
7.3.280.0110.00716.43
7.3.270.0110.00817.40
7.3.260.0140.01216.39
7.3.250.0140.00616.66
7.3.240.0100.01016.62
7.3.230.0130.00316.56
7.3.210.0070.01016.67
7.3.200.0060.01319.39
7.3.190.0040.01316.25
7.3.180.0090.00616.50
7.3.170.0060.00916.29
7.3.160.0090.01316.30
7.3.120.0030.01114.96
7.3.110.0090.00914.79
7.3.100.0060.00814.91
7.3.90.0000.00915.02
7.3.80.0060.00514.83
7.3.70.0040.00514.66
7.3.60.0030.01014.90
7.3.50.0080.00515.00
7.3.40.0030.01014.78
7.3.30.0090.00814.77
7.3.20.0030.01016.83
7.3.10.0110.00316.82
7.3.00.0090.00916.76
7.2.330.0040.01216.79
7.2.320.0090.01316.71
7.2.310.0130.00316.78
7.2.300.0120.01216.66
7.2.290.0120.01016.50
7.2.250.0060.01115.09
7.2.240.0070.01115.22
7.2.230.0090.00615.21
7.2.220.0080.00715.09
7.2.210.0010.01215.26
7.2.200.0040.00815.24
7.2.190.0050.01115.10
7.2.180.0070.01015.22
7.2.170.0100.00715.13
7.2.80.0030.01016.56
7.2.60.0100.00717.07
7.2.00.0030.01319.66
7.1.330.0050.00915.85
7.1.320.0050.00816.02
7.1.310.0050.01015.93
7.1.300.0060.01015.77
7.1.290.0030.00916.00
7.1.280.0040.01215.78
7.1.270.0100.00616.04
7.1.260.0040.00815.73
7.1.200.0070.00415.95
7.1.100.0030.01018.35
7.1.70.0030.01017.43
7.1.60.0170.00719.33
7.1.50.0160.01034.98
7.1.00.0000.08022.37
7.0.200.0120.00416.67
7.0.140.0070.07322.21
7.0.100.0270.05019.92
7.0.90.0100.04319.97
7.0.80.0130.05319.93
7.0.70.0270.07019.93
7.0.60.0170.03319.88
7.0.50.0100.08720.27
7.0.40.0070.07319.96
7.0.30.0030.08720.07
7.0.20.0100.04720.12
7.0.10.0170.04020.04
7.0.00.0100.07720.10
5.6.280.0100.06720.89
5.6.250.0130.05020.46
5.6.240.0070.05020.47
5.6.230.0030.07720.53
5.6.220.0130.05020.61
5.6.210.0200.07020.46
5.6.200.0030.05720.96
5.6.190.0070.05020.98
5.6.180.0270.06021.04
5.6.170.0130.06320.95
5.6.160.0000.05321.04
5.6.150.0130.07720.94
5.6.140.0100.04721.04
5.6.130.0130.07720.90
5.6.120.0070.05321.00
5.6.110.0130.07720.98
5.6.100.0030.07720.96
5.6.90.0170.07321.04
5.6.80.0130.07020.45
5.6.70.0100.07720.32
5.6.60.0030.05020.41
5.6.50.0030.05720.39
5.6.40.0030.05020.37
5.6.30.0070.04720.43
5.6.20.0100.06320.28
5.6.10.0170.04020.29
5.6.00.0030.07020.29
5.5.380.0070.07720.41
5.5.370.0100.06720.51
5.5.360.0000.08720.38
5.5.350.0130.04720.46
5.5.340.0070.05720.82
5.5.330.0100.06020.87
5.5.320.0100.08020.72
5.5.310.0070.06020.77
5.5.300.0170.07020.82
5.5.290.0030.07020.85
5.5.280.0000.05320.91
5.5.270.0170.05720.81
5.5.260.0070.07720.89
5.5.250.0030.08320.58
5.5.240.0070.07020.13
5.5.230.0100.04320.13
5.5.220.0130.05020.27
5.5.210.0000.04720.20
5.5.200.0130.04319.95
5.5.190.0100.06320.14
5.5.180.0200.06720.06
5.5.160.0000.07320.27
5.5.150.0030.04020.20
5.5.140.0000.04020.25
5.5.130.0000.04319.95
5.5.120.0230.02320.22
5.5.110.0030.04020.15
5.5.100.0000.04320.07
5.5.90.0130.03020.04
5.5.80.0030.04720.09
5.5.70.0030.03720.03
5.5.60.0170.02720.04
5.5.50.0000.04320.04
5.5.40.0070.03720.07
5.5.30.0070.04020.03
5.5.20.0030.04020.04
5.5.10.0100.04320.03
5.5.00.0030.04020.11
5.4.450.0100.05319.40
5.4.440.0000.04719.44
5.4.430.0030.04719.14
5.4.420.0070.04319.38
5.4.410.0100.07019.24
5.4.400.0030.08018.82
5.4.390.0030.08019.11
5.4.380.0030.04319.03
5.4.370.0030.04018.79
5.4.360.0100.07018.98
5.4.350.0030.05719.13
5.4.340.0130.06719.05
5.4.320.0070.04019.07
5.4.310.0030.03718.90
5.4.300.0000.03718.78
5.4.290.0130.02719.02
5.4.280.0030.04018.91
5.4.270.0000.04019.04
5.4.260.0030.03719.23
5.4.250.0030.03719.06
5.4.240.0030.03719.04
5.4.230.0000.04018.97
5.4.220.0030.04019.02
5.4.210.0000.04019.22
5.4.200.0070.03319.23
5.4.190.0070.03318.93
5.4.180.0030.03719.04
5.4.170.0000.06319.09
5.4.160.0000.04318.79
5.4.150.0000.04018.94
5.4.140.0070.04716.28
5.4.130.0030.03716.36
5.4.120.0100.03316.32
5.4.110.0070.04016.23
5.4.100.0000.04016.43
5.4.90.0000.03716.30
5.4.80.0030.03716.43
5.4.70.0100.03316.40
5.4.60.0100.04016.21
5.4.50.0070.04016.41
5.4.40.0000.03716.45
5.4.30.0070.03316.31
5.4.20.0030.03716.41
5.4.10.0030.03316.37
5.4.00.0030.03315.50
5.3.290.0000.04314.52
5.3.280.0070.03714.58
5.3.270.0000.04014.44
5.3.260.0070.06314.55
5.3.250.0030.03714.56
5.3.240.0000.04014.61
5.3.230.0000.04014.59
5.3.220.0070.04014.55
5.3.210.0070.03714.48
5.3.200.0070.03714.42
5.3.190.0070.03714.54
5.3.180.0000.04014.49
5.3.170.0070.03314.47
5.3.160.0030.03714.42
5.3.150.0030.03314.55
5.3.140.0000.04314.54
5.3.130.0030.03714.45
5.3.120.0000.04014.48
5.3.110.0070.03314.50
5.3.100.0070.03713.89
5.3.90.0000.04314.00
5.3.80.0000.04013.99
5.3.70.0030.03714.00
5.3.60.0030.04713.98
5.3.50.0000.04713.93
5.3.40.0000.04013.91
5.3.30.0030.03713.87
5.3.20.0070.03013.55
5.3.10.0000.03713.61
5.3.00.0000.04313.63
5.2.170.0100.02310.95
5.2.160.0000.03311.06
5.2.150.0070.02711.15
5.2.140.0100.04711.21
5.2.130.0000.03011.06
5.2.120.0030.02310.91
5.2.110.0000.03010.93
5.2.100.0000.03011.10
5.2.90.0030.02711.09
5.2.80.0000.04310.95
5.2.70.0000.03311.09
5.2.60.0000.02711.05
5.2.50.0030.03311.02
5.2.40.0030.06010.82
5.2.30.0030.04010.73
5.2.20.0070.04710.81
5.2.10.0070.03710.93
5.2.00.0030.02710.57
5.1.60.0000.0579.98
5.1.50.0070.02710.04
5.1.40.0000.0439.97
5.1.30.0000.03310.39
5.1.20.0030.05010.40
5.1.10.0070.05010.09
5.1.00.0100.03010.07
5.0.50.0130.0378.55
5.0.40.0000.0508.33
5.0.30.0030.0438.33
5.0.20.0100.0308.33
5.0.10.0030.0478.33
5.0.00.0070.0578.33
4.4.90.0030.0208.33
4.4.80.0030.0338.33
4.4.70.0070.0208.33
4.4.60.0030.0138.33
4.4.50.0070.0308.33
4.4.40.0000.0578.33
4.4.30.0030.0178.33
4.4.20.0000.0378.33
4.4.10.0030.0338.33
4.4.00.0100.0478.33
4.3.110.0030.0308.33
4.3.100.0000.0378.33
4.3.90.0000.0238.33
4.3.80.0030.0508.33
4.3.70.0000.0308.33
4.3.60.0000.0338.33
4.3.50.0000.0308.33
4.3.40.0000.0478.33
4.3.30.0100.0238.33
4.3.20.0000.0378.33
4.3.10.0030.0278.33
4.3.00.0000.0338.33

preferences:
42.58 ms | 401 KiB | 5 Q