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($matches, $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.0170.00318.43
8.3.50.0130.00821.14
8.3.40.0110.00319.02
8.3.30.0120.00418.93
8.3.20.0080.00018.90
8.3.10.0030.00521.21
8.3.00.0060.00323.61
8.2.180.0090.01218.58
8.2.170.0150.00322.96
8.2.160.0110.00421.23
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0060.00319.77
8.2.110.0100.00020.40
8.2.100.0040.00817.81
8.2.90.0040.00419.23
8.2.80.0040.00417.97
8.2.70.0000.00917.75
8.2.60.0080.00017.91
8.2.50.0000.01018.07
8.2.40.0030.00518.34
8.2.30.0040.00419.58
8.2.20.0060.00317.80
8.2.10.0040.00417.84
8.2.00.0020.00517.89
8.1.280.0110.00425.92
8.1.270.0040.00423.99
8.1.260.0000.00826.35
8.1.250.0070.00428.09
8.1.240.0030.00622.47
8.1.230.0070.00420.96
8.1.220.0030.00518.77
8.1.210.0060.00318.77
8.1.200.0060.00317.35
8.1.190.0000.00717.40
8.1.180.0000.00818.10
8.1.170.0040.00418.67
8.1.160.0000.00718.93
8.1.150.0000.00718.68
8.1.140.0060.00317.49
8.1.130.0030.00317.77
8.1.120.0060.00317.54
8.1.110.0060.00317.44
8.1.100.0000.00817.62
8.1.90.0020.00517.50
8.1.80.0000.00717.62
8.1.70.0070.00017.50
8.1.60.0030.00617.58
8.1.50.0000.00817.56
8.1.40.0040.00417.62
8.1.30.0000.00817.60
8.1.20.0000.00817.73
8.1.10.0000.00717.75
8.1.00.0060.00317.66
8.0.300.0050.00419.63
8.0.290.0000.00716.93
8.0.280.0000.00818.29
8.0.270.0000.00717.14
8.0.260.0000.00716.91
8.0.250.0050.00217.10
8.0.240.0050.00316.93
8.0.230.0030.00317.00
8.0.220.0000.00716.88
8.0.210.0030.00516.97
8.0.200.0000.00717.05
8.0.190.0050.00316.95
8.0.180.0040.00416.89
8.0.170.0040.00417.01
8.0.160.0040.00416.89
8.0.150.0000.00716.96
8.0.140.0000.00716.88
8.0.130.0000.00513.36
8.0.120.0050.00316.83
8.0.110.0060.00317.09
8.0.100.0040.00417.01
8.0.90.0050.00216.88
8.0.80.0080.00816.96
8.0.70.0000.00716.79
8.0.60.0040.00416.83
8.0.50.0070.00016.83
8.0.30.0080.01317.17
8.0.20.0100.00817.40
8.0.10.0000.00817.16
8.0.00.0080.01316.75
7.4.330.0030.00315.03
7.4.320.0050.00316.66
7.4.300.0040.00416.74
7.4.290.0040.00416.68
7.4.280.0030.00316.63
7.4.270.0000.00716.61
7.4.260.0030.00313.39
7.4.250.0050.00316.73
7.4.240.0000.00716.77
7.4.230.0070.00016.65
7.4.220.0100.00916.75
7.4.210.0060.01016.67
7.4.200.0000.00716.77
7.4.190.0000.00716.84
7.4.160.0080.01116.77
7.4.150.0070.01017.40
7.4.140.0130.00717.86
7.4.130.0060.01316.52
7.4.120.0080.01016.60
7.4.110.0050.01316.67
7.4.100.0030.01516.73
7.4.90.0030.01516.64
7.4.80.0100.00619.39
7.4.70.0090.00916.70
7.4.60.0070.01516.88
7.4.50.0030.00616.54
7.4.40.0110.00322.52
7.4.30.0090.00916.66
7.4.10.0080.00815.10
7.4.00.0080.01015.05
7.3.330.0060.00013.24
7.3.320.0060.00013.08
7.3.310.0060.00016.37
7.3.300.0000.00716.27
7.3.290.0070.00716.52
7.3.280.0090.00816.41
7.3.270.0060.01117.40
7.3.260.0100.01318.24
7.3.250.0040.01516.49
7.3.240.0130.00316.50
7.3.230.0110.00816.71
7.3.210.0070.01416.32
7.3.200.0100.00719.39
7.3.190.0160.00616.63
7.3.180.0100.00716.63
7.3.170.0110.00716.72
7.3.160.0000.01616.56
7.3.130.0070.01114.89
7.3.120.0090.00914.89
7.3.110.0100.00715.08
7.3.100.0040.01214.89
7.3.90.0070.00814.91
7.3.80.0060.00614.91
7.3.70.0070.00615.02
7.3.60.0080.00714.89
7.3.50.0050.00814.87
7.3.40.0040.00814.90
7.3.30.0070.00714.84
7.3.20.0060.00916.77
7.3.10.0070.00916.57
7.3.00.0040.00916.69
7.2.330.0110.00616.82
7.2.320.0150.00616.80
7.2.310.0150.00716.55
7.2.300.0000.01616.85
7.2.290.0140.00716.82
7.2.260.0110.00815.26
7.2.250.0080.01015.10
7.2.240.0050.00915.13
7.2.230.0070.00915.08
7.2.220.0090.00815.04
7.2.210.0080.00715.10
7.2.200.0080.00715.10
7.2.190.0040.01215.05
7.2.180.0080.00715.09
7.2.170.0060.00615.22
7.2.160.0040.01214.97
7.2.150.0070.01117.02
7.2.140.0060.01016.99
7.2.130.0050.01016.91
7.2.120.0040.01116.90
7.2.110.0040.01116.99
7.2.100.0070.00716.96
7.2.90.0030.01116.92
7.2.80.0060.00717.04
7.2.70.0060.00717.10
7.2.60.0040.01016.98
7.2.50.0050.00816.94
7.2.40.0040.00916.98
7.2.30.0090.00416.93
7.2.20.0090.00716.83
7.2.10.0100.00517.03
7.2.00.0060.00817.41
7.1.330.0050.01015.88
7.1.320.0090.00815.93
7.1.310.0040.00916.05
7.1.300.0040.00915.86
7.1.290.0050.00815.88
7.1.280.0040.00815.90
7.1.270.0070.00915.90
7.1.260.0050.00715.98
7.1.250.0060.00915.91
7.1.240.0040.01315.85
7.1.230.0050.00815.93
7.1.220.0070.00516.04
7.1.210.0050.00915.97
7.1.200.0060.00815.97
7.1.190.0080.00615.88
7.1.180.0070.00915.97
7.1.170.0060.00715.88
7.1.160.0070.00715.96
7.1.150.0060.00715.97
7.1.140.0060.00815.92
7.1.130.0030.00916.05
7.1.120.0040.00915.90
7.1.110.0080.00515.94
7.1.100.0070.00716.36
7.1.90.0070.00715.98
7.1.80.0040.01015.94
7.1.70.0070.00516.20
7.1.60.0050.00716.54
7.1.50.0060.01016.14
7.1.40.0050.00815.89
7.1.30.0030.01115.77
7.1.20.0050.01115.93
7.1.10.0050.00815.88
7.1.00.0040.02117.26
7.0.330.0030.00815.46
7.0.320.0030.00915.50
7.0.310.0030.00915.37
7.0.300.0060.00715.39
7.0.290.0050.00715.45
7.0.280.0030.00915.50
7.0.270.0040.00815.39
7.0.260.0050.00615.31
7.0.250.0050.00815.52
7.0.240.0060.00815.60
7.0.230.0070.00615.44
7.0.220.0060.00615.35
7.0.210.0070.00515.40
7.0.200.0050.00815.73
7.0.190.0050.00815.55
7.0.180.0060.00915.42
7.0.170.0040.00815.51
7.0.160.0080.00615.52
7.0.150.0050.00815.47
7.0.140.0040.02016.85
7.0.130.0040.00915.45
7.0.120.0050.00715.50
7.0.110.0030.01015.60
7.0.100.0050.00915.58
7.0.90.0080.00815.43
7.0.80.0070.00615.45
7.0.70.0090.01416.75
7.0.60.0080.01816.72
7.0.50.0030.02316.90
7.0.40.0060.01714.83
7.0.30.0040.02314.79
7.0.20.0050.02314.77
7.0.10.0040.02414.91
7.0.00.0090.02014.83
5.6.400.0050.01014.30
5.6.390.0060.00714.19
5.6.380.0030.01114.35
5.6.370.0060.00714.53
5.6.360.0090.00414.39
5.6.350.0030.01014.38
5.6.340.0070.00814.40
5.6.330.0050.00914.38
5.6.320.0060.00914.21
5.6.310.0060.00714.30
5.6.300.0070.00814.47
5.6.290.0050.00814.51
5.6.280.0060.00914.39
5.6.270.0080.00614.48
5.6.260.0040.01014.27
5.6.250.0040.01214.37
5.6.240.0100.00414.28
5.6.230.0040.00914.33
5.6.220.0060.02315.71
5.6.210.0060.02115.63
5.6.200.0050.02215.77
5.6.190.0060.02115.66
5.6.180.0050.02315.70
5.6.170.0070.01915.75
5.6.160.0070.01815.68
5.6.150.0060.02315.78
5.6.140.0060.01415.72
5.6.130.0050.01715.67
5.6.120.0040.01315.77
5.6.110.0040.01515.66
5.6.100.0040.01615.67
5.6.90.0040.01615.59
5.6.80.0050.01315.45
5.6.70.0030.01215.48
5.6.60.0060.01415.43
5.6.50.0040.01315.49
5.6.40.0060.01115.56
5.6.30.0060.01115.47
5.6.20.0060.01115.43
5.6.10.0040.01115.61
5.6.00.0040.01315.46
5.5.380.0020.01013.54
5.5.370.0070.00613.50
5.5.360.0060.01814.91
5.5.350.0030.02714.79
5.5.340.0070.01415.08
5.5.330.0060.02114.93
5.5.320.0060.02215.00
5.5.310.0050.02114.98
5.5.300.0030.01915.09
5.5.290.0040.01614.98
5.5.280.0040.01414.97
5.5.270.0030.01414.97
5.5.260.0060.01215.14
5.5.250.0050.01414.89
5.5.240.0040.01414.76
5.5.230.0040.01514.78
5.5.220.0030.01614.80
5.5.210.0050.01414.72
5.5.200.0070.01014.79
5.5.190.0040.01714.82
5.5.180.0050.01314.79
5.5.170.0030.00713.30
5.5.160.0050.01114.87
5.5.150.0060.01414.87
5.5.140.0040.01314.73
5.5.130.0030.01614.85
5.5.120.0060.01214.84
5.5.110.0040.01214.82
5.5.100.0060.01314.74
5.5.90.0070.00914.67
5.5.80.0050.01214.77
5.5.70.0030.01414.79
5.5.60.0030.01314.67
5.5.50.0050.01114.84
5.5.40.0030.01214.80
5.5.30.0030.01514.65
5.5.20.0060.01114.63
5.5.10.0060.01114.67
5.5.00.0050.01414.69
5.4.450.0040.01212.66
5.4.440.0050.01212.76
5.4.430.0040.01212.67
5.4.420.0020.01412.62
5.4.410.0040.01112.77
5.4.400.0060.00912.64
5.4.390.0030.01312.65
5.4.380.0040.01012.66
5.4.370.0050.01112.64
5.4.360.0030.01312.60
5.4.350.0040.01112.59
5.4.340.0050.00912.63
5.4.330.0040.00610.98
5.4.320.0040.01112.59
5.4.310.0020.01112.64
5.4.300.0040.01012.56
5.4.290.0050.01012.61
5.4.280.0010.01412.65
5.4.270.0020.01112.49
5.4.260.0040.01012.52
5.4.250.0010.01212.63
5.4.240.0020.01212.66
5.4.230.0030.01112.52
5.4.220.0040.01112.57
5.4.210.0030.01312.56
5.4.200.0050.00912.67
5.4.190.0060.01112.63
5.4.180.0040.01112.65
5.4.170.0020.01212.65
5.4.160.0030.01312.59
5.4.150.0060.01012.58
5.4.140.0040.01111.99
5.4.130.0010.01712.09
5.4.120.0060.01612.10
5.4.110.0070.01512.05
5.4.100.0050.01612.12
5.4.90.0040.02012.00
5.4.80.0060.01812.06
5.4.70.0070.01211.93
5.4.60.0050.02012.15
5.4.50.0020.02212.08
5.4.40.0040.01712.05
5.4.30.0050.01812.05
5.4.20.0060.01712.02
5.4.10.0040.01912.00
5.4.00.0070.01711.94
5.3.290.0040.01011.51
5.3.280.0050.00911.42
5.3.270.0050.01111.49
5.3.260.0030.01211.43
5.3.250.0030.01411.48
5.3.240.0050.01311.36
5.3.230.0050.01311.43
5.3.220.0050.01811.38
5.3.210.0060.01511.43
5.3.200.0060.01711.40
5.3.190.0060.01311.40
5.3.180.0060.02011.44
5.3.170.0040.02011.46
5.3.160.0010.01511.47
5.3.150.0070.01511.44
5.3.140.0050.01811.44
5.3.130.0040.02011.40
5.3.120.0050.01711.43
5.3.110.0050.01911.40
5.3.100.0030.01911.32
5.3.90.0050.01811.34
5.3.80.0050.01911.25
5.3.70.0040.01511.20
5.3.60.0030.02011.30
5.3.50.0040.01811.25
5.3.40.0040.01711.17
5.3.30.0030.01911.28
5.3.20.0070.01611.19
5.3.10.0040.01911.12
5.3.00.0050.01611.15
5.2.170.0000.03411.09
5.2.160.0030.02511.09
5.2.150.0050.02511.17
5.2.140.0050.03211.08
5.2.130.0020.03411.13
5.2.120.0060.03211.13
5.2.110.0050.03211.13
5.2.100.0010.02011.15
5.2.90.0030.03211.16
5.2.80.0030.03511.13
5.2.70.0080.02011.16
5.2.60.0030.02811.03
5.2.50.0030.02811.08
5.2.40.0020.03011.07
5.2.30.0050.02811.05
5.2.20.0020.01611.06
5.2.10.0050.02811.04
5.2.00.0080.02210.87
5.1.60.0000.02910.59
5.1.50.0020.03110.59
5.1.40.0000.03310.55
5.1.30.0050.02310.79
5.1.20.0030.02110.77
5.1.10.0000.02810.61
5.1.00.0010.02610.56
5.0.50.0020.02210.50
5.0.40.0030.02310.50
5.0.30.0020.03410.50
5.0.20.0040.02210.50
5.0.10.0040.02210.50
5.0.00.0020.02010.50
4.4.90.0010.01810.50
4.4.80.0020.01010.50
4.4.70.0030.01510.50
4.4.60.0020.01510.50
4.4.50.0000.01710.50
4.4.40.0020.02310.50
4.4.30.0020.01910.50
4.4.20.0020.02010.50
4.4.10.0000.02010.50
4.4.00.0030.02810.50
4.3.110.0020.01710.50
4.3.100.0050.01710.50
4.3.90.0020.01910.50
4.3.80.0030.02310.50
4.3.70.0030.02010.50
4.3.60.0020.01910.50
4.3.50.0020.01610.50
4.3.40.0010.02810.50
4.3.30.0020.02010.50
4.3.20.0000.02210.50
4.3.10.0080.01610.50
4.3.00.0030.01810.50

preferences:
45.79 ms | 401 KiB | 5 Q