3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $courseData['auth_url'] = 'http://learn.kognito.com/auth'; define('COURSE_PORTAL_URL', "https://dev-learn.kognito.com/auth"); $pattern = '/https?:\/\/learn[.]kognito[.]com\/auth/'; $replacement = COURSE_PORTAL_URL; $courseData['auth_url'] = preg_replace($pattern, $replacement, $courseData['auth_url'], 1); echo $courseData['auth_url'] . "?k=";
based on 0L3K3

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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.2.00.0060.00619.80
7.1.100.0050.01618.23
7.1.70.0040.00417.35
7.1.60.0090.01619.22
7.1.50.0080.00616.82
7.1.00.0030.07722.53
7.0.200.0000.00817.07
7.0.140.0100.06722.05
7.0.60.0070.07319.87
7.0.50.0070.06017.89
7.0.40.0000.06320.04
7.0.30.0270.03720.03
7.0.20.0300.06720.19
7.0.10.0130.08320.02
7.0.00.0030.05020.18
5.6.280.0070.07021.09
5.6.210.0100.03320.70
5.6.200.0100.03718.14
5.6.190.0130.07720.60
5.6.180.0000.06720.58
5.6.170.0200.04020.51
5.6.160.0070.08320.34
5.6.150.0070.04018.17
5.6.140.0030.04318.11
5.6.130.0000.08718.11
5.6.120.0130.07721.00
5.6.110.0070.07020.98
5.6.100.0130.07021.03
5.6.90.0100.03720.99
5.6.80.0070.05320.37
5.5.350.4270.04320.44
5.5.340.0130.05017.99
5.5.330.0130.07720.43
5.5.320.0170.04020.28
5.5.310.0330.06020.33
5.5.300.0070.04018.02
5.5.290.0100.04717.90
5.5.280.0030.04020.73
5.5.270.0130.07720.87
5.5.260.0030.04020.79
5.5.250.0070.09020.70
5.5.240.0100.08020.11
5.4.450.0430.04319.52
5.4.440.0870.06719.51
5.4.430.0370.05319.46
5.4.420.0900.07019.57
5.4.410.0100.06019.32
5.4.400.0800.05019.29
5.4.390.0870.05019.12
5.4.380.0200.06018.49
5.4.370.0230.05018.46
5.4.360.0170.06018.73
5.4.350.0230.05718.49
5.4.340.0270.04318.46
5.4.320.0200.05018.68
5.4.310.0330.04318.75
5.4.300.0270.05018.61
5.4.290.0270.05018.59
5.4.280.0270.05018.48
5.4.270.0300.06718.49
5.4.260.0200.07318.66
5.4.250.0270.07018.66
5.4.240.0130.06018.76
5.4.230.0300.04318.60
5.4.220.0230.05718.60
5.4.210.0300.04718.60
5.4.200.0300.04316.62
5.4.190.0230.05718.54
5.4.180.0230.05318.69
5.4.170.0200.05318.42
5.4.160.0200.05018.56
5.4.150.0300.04718.54
5.4.140.0100.07316.07
5.4.130.0200.05316.06
5.4.120.0200.04716.16
5.4.110.0200.04716.11
5.4.100.0400.05316.34
5.4.90.0370.05316.22
5.4.80.0130.07316.29
5.4.70.0200.07016.32
5.4.60.0200.06716.27
5.4.50.0100.06016.19
5.4.40.0200.05016.09
5.4.30.0170.05716.20
5.4.20.0170.05316.13
5.4.10.0130.05316.13
5.4.00.0230.04315.51
5.3.290.0300.04714.59
5.3.280.0100.06014.50
5.3.270.0100.06714.55
5.3.260.0270.04714.64
5.3.250.0100.06314.64
5.3.240.0230.05014.59
5.3.230.0200.07014.55
5.3.220.0270.05314.48
5.3.210.0230.05014.53
5.3.200.0230.05314.54
5.3.190.0270.05314.51
5.3.180.0170.05314.54
5.3.170.0070.06714.63
5.3.160.0270.05314.71
5.3.150.0100.05314.59
5.3.140.0200.04314.53
5.3.130.0170.05014.59
5.3.120.0230.05014.52
5.3.110.0270.04714.46
5.3.100.0330.04314.01
5.3.90.0200.05014.12
5.3.80.0200.05313.97
5.3.70.0230.06714.11
5.3.60.0170.07013.98
5.3.50.0170.06714.10
5.3.40.0230.04714.02
5.3.30.0230.05313.88
5.3.20.0130.05713.72
5.3.10.0200.07313.59
5.3.00.0270.05713.59
5.2.170.0200.04311.13
5.2.160.0200.03711.19
5.2.150.0230.03711.09
5.2.140.0170.04311.16
5.2.130.0130.04011.05
5.2.120.0200.04011.05
5.2.110.0230.03311.07
5.2.100.0200.04311.08
5.2.90.0200.04311.07
5.2.80.0230.04311.08
5.2.70.0300.03011.07
5.2.60.0170.04311.01
5.2.50.0170.04710.95
5.2.40.0130.04711.13
5.2.30.0200.04711.04
5.2.20.0130.04710.95
5.2.10.0230.04711.01
5.2.00.0200.05710.72
5.1.60.0270.03710.11
5.1.50.0200.04310.10
5.1.40.0200.0439.98
5.1.30.0100.06010.44
5.1.20.0200.04710.42
5.1.10.0230.03010.09
5.1.00.0130.03710.08
5.0.50.0200.0238.52
5.0.40.0200.0208.43
5.0.30.0070.0438.32
5.0.20.0100.0278.26
5.0.10.0130.0308.16
5.0.00.0100.0438.20
4.4.90.0130.0207.53
4.4.80.0070.0237.53
4.4.70.0130.0207.53
4.4.60.0130.0177.53
4.4.50.0030.0237.53
4.4.40.0100.0337.53
4.4.30.0000.0277.53
4.4.20.0070.0237.53
4.4.10.0030.0277.53
4.4.00.0070.0337.53
4.3.110.0100.0177.53
4.3.100.0070.0237.53
4.3.90.0100.0177.53
4.3.80.0130.0277.53
4.3.70.0130.0177.53
4.3.60.0030.0237.53
4.3.50.0100.0207.53
4.3.40.0030.0377.53
4.3.30.0000.0277.53
4.3.20.0000.0277.53
4.3.10.0000.0277.53
4.3.00.0070.02710.29