3v4l.org

run code in 300+ PHP versions simultaneously
<?php header("Cache-Control: max-age=301, must-revalidate, stale-while-revalidate=150, stale-if-error=60"); $env = "int";//getenv("SERVER_ENV"); $INSTRUCTOR_LOCATIONS = array( 'sandbox' => 'http://sandbox.bbc.co.uk:9000/', 'int' => 'http://crb-brb-instructor.int.api.bbci.co.uk/', 'test' => 'http://crb-brb-instructor.test.api.bbci.co.uk/', 'stage' => 'http://crb-brb-instructor.api.bbci.co.uk/', 'live' => 'http://crb-brb-instructor.api.bbci.co.uk/' ); $PLATFORMS = array('freeview', 'freesat'); $REGISTRATION_ENABLED_ON = array('sandbox', 'int', 'test', 'stage', 'live'); $instructorLocation = (isset($INSTRUCTOR_LOCATIONS[$env])) ? $INSTRUCTOR_LOCATIONS[$env] : 'http://config-error/'; $registrationEnabled = (in_array($env, $REGISTRATION_ENABLED_ON)) ? 'true' : 'false'; //$platformName = isset($_GET['platformName']) ? $_GET['platformName'] : ''; //$platform = in_array($platformName, $PLATFORMS) ? $platformName : 'freesat'; // Helper methods function printRCValue($tagName, $value) { print sprintf("@%s|%s|\n", $tagName, $value); } // Generate RC file response printRCValue('ServerEnvironment', $env); printRCValue('ServerLocation', "http://open.$env.bbc.co.uk/smartbridge/"); printRCValue('InstructorLocation', $instructorLocation); printRCValue('RegistrationEnabled', $registrationEnabled); //printRCValue('MakeAndModelServiceLocation', "http://open.int.bbc.co.uk/smartbridge/content-provider/platform/$platform/makeAndModel.rc?whoami=PANT14A01");

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.0110.00716.50
8.3.50.0120.00321.01
8.3.40.0140.00718.85
8.3.30.0110.00319.09
8.3.20.0080.00020.29
8.3.10.0050.00321.91
8.3.00.0090.00017.63
8.2.180.0120.00318.16
8.2.170.0140.00718.94
8.2.160.0040.01122.96
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0090.00021.18
8.2.110.0030.00621.06
8.2.100.0110.00017.72
8.2.90.0000.00818.94
8.2.80.0000.00817.97
8.2.70.0060.00317.63
8.2.60.0030.00517.93
8.2.50.0050.00318.07
8.2.40.0030.00619.88
8.2.30.0000.00718.05
8.2.20.0040.00417.90
8.2.10.0050.00218.11
8.2.00.0000.00818.16
8.1.280.0100.00325.92
8.1.270.0110.00720.29
8.1.260.0000.00726.35
8.1.250.0050.00228.09
8.1.240.0090.00022.27
8.1.230.0040.00720.78
8.1.220.0040.00417.79
8.1.210.0050.00318.77
8.1.200.0100.00017.23
8.1.190.0000.00817.11
8.1.180.0030.00518.10
8.1.170.0030.00518.57
8.1.160.0000.00821.94
8.1.150.0000.00818.92
8.1.140.0040.00417.43
8.1.130.0030.00317.87
8.1.120.0000.00717.45
8.1.110.0030.00517.40
8.1.100.0000.00717.43
8.1.90.0070.00017.44
8.1.80.0070.00017.37
8.1.70.0000.00717.41
8.1.60.0090.00017.57
8.1.50.0040.00417.54
8.1.40.0000.00717.54
8.1.30.0000.00917.57
8.1.20.0030.00617.71
8.1.10.0070.00317.53
8.1.00.0030.00617.55
8.0.300.0040.00418.77
8.0.290.0030.00516.63
8.0.280.0030.00318.45
8.0.270.0040.00416.74
8.0.260.0060.00017.30
8.0.250.0070.00017.01
8.0.240.0060.00317.02
8.0.230.0000.00716.90
8.0.220.0000.00716.95
8.0.210.0040.00416.82
8.0.200.0000.00716.95
8.0.190.0040.00416.88
8.0.180.0040.00416.86
8.0.170.0040.00416.93
8.0.160.0030.00316.91
8.0.150.0000.00716.76
8.0.140.0070.00016.88
8.0.130.0030.00313.29
8.0.120.0000.00816.80
8.0.110.0000.00816.88
8.0.100.0030.00616.81
8.0.90.0030.00317.00
8.0.80.0180.00416.90
8.0.70.0000.00717.00
8.0.60.0000.00817.01
8.0.50.0040.00416.77
8.0.30.0100.01117.34
8.0.20.0090.01017.40
8.0.10.0000.00816.87
8.0.00.0060.01116.88
7.4.330.0000.00615.04
7.4.320.0000.00816.39
7.4.300.0000.00616.65
7.4.290.0040.00416.63
7.4.280.0090.00016.47
7.4.270.0000.00716.46
7.4.260.0000.00716.67
7.4.250.0040.00416.61
7.4.240.0000.00716.55
7.4.230.0030.00316.54
7.4.220.0070.01116.70
7.4.210.0120.00416.59
7.4.200.0030.00516.45
7.4.160.0070.01016.61
7.4.150.0100.01317.40
7.4.140.0130.00917.86
7.4.130.0090.00916.55
7.4.120.0100.00816.57
7.4.110.0110.00816.53
7.4.100.0080.01116.56
7.4.90.0180.00016.29
7.4.80.0140.00319.39
7.4.70.0060.01016.52
7.4.60.0120.00316.58
7.4.50.0040.00416.82
7.4.40.0030.01316.52
7.4.30.0130.00316.65
7.4.10.0030.01614.71
7.4.00.0070.01114.85
7.3.330.0090.00013.47
7.3.320.0030.00313.22
7.3.310.0070.00016.34
7.3.300.0070.00016.23
7.3.290.0070.00016.27
7.3.280.0050.01316.41
7.3.270.0090.00917.40
7.3.260.0060.01216.37
7.3.250.0050.01216.45
7.3.240.0140.00416.27
7.3.230.0130.00316.73
7.3.210.0060.01616.47
7.3.200.0100.00719.39
7.3.190.0150.00016.52
7.3.180.0080.01316.69
7.3.170.0130.01016.32
7.3.160.0080.00816.37
7.3.130.0130.00314.88
7.3.120.0070.01214.83
7.3.110.0060.01214.71
7.3.100.0060.00614.71
7.3.90.0020.01314.94
7.3.80.0070.00414.98
7.3.70.0060.00914.85
7.3.60.0050.00914.74
7.3.50.0050.00714.73
7.3.40.0090.00614.82
7.3.30.0080.00714.76
7.3.20.0070.00416.64
7.3.10.0080.00516.55
7.3.00.0020.01416.68
7.2.330.0070.01016.63
7.2.320.0130.01016.37
7.2.310.0070.01016.75
7.2.300.0130.00316.65
7.2.290.0080.00816.53
7.2.260.0000.01614.82
7.2.250.0070.01215.12
7.2.240.0050.01015.02
7.2.230.0000.01215.08
7.2.220.0080.00814.81
7.2.210.0050.00915.07
7.2.200.0100.00814.83
7.2.190.0060.00715.10
7.2.180.0040.01114.99
7.2.170.0110.00515.02
7.2.160.0040.01214.87
7.2.150.0090.00616.93
7.2.140.0120.00316.66
7.2.130.0110.00316.53
7.2.120.0100.00716.88
7.2.110.0030.00616.56
7.2.100.0070.00716.57
7.2.90.0090.00616.97
7.2.80.0090.00616.82
7.2.70.0100.00716.77
7.2.60.0020.01216.72
7.2.50.0030.01416.68
7.2.40.0040.01116.93
7.2.30.0030.01016.64
7.2.20.0090.00616.91
7.2.10.0070.00716.97
7.2.00.0070.00418.22
7.1.330.0070.00715.62
7.1.320.0060.00815.54
7.1.310.0060.00815.72
7.1.300.0020.01015.78
7.1.290.0070.00715.70
7.1.280.0050.00915.75
7.1.270.0070.00315.79
7.1.260.0030.01215.47
7.1.250.0050.00515.82
7.1.240.0070.01015.66
7.1.230.0060.00615.93
7.1.220.0000.01215.81
7.1.210.0060.00615.79
7.1.200.0050.00715.73
7.1.190.0040.01115.73
7.1.180.0030.01015.75
7.1.170.0040.01115.64
7.1.160.0000.00915.80
7.1.150.0060.00315.79
7.1.140.0100.00715.73
7.1.130.0080.00415.75
7.1.120.0030.00615.79
7.1.110.0030.00515.52
7.1.100.0080.00516.94
7.1.90.0030.01315.93
7.1.80.0030.00615.91
7.1.70.0020.00616.38
7.1.60.0100.00317.57
7.1.50.0090.01116.39
7.1.40.0070.00715.73
7.1.30.0040.00815.71
7.1.20.0120.00315.84
7.1.10.0060.00615.70
7.1.00.0090.04019.04
7.0.330.0110.00415.59
7.0.320.0030.00715.29
7.0.310.0030.00915.09
7.0.300.0000.01215.37
7.0.290.0000.01715.54
7.0.280.0000.01315.28
7.0.270.0040.00815.41
7.0.260.0060.00315.35
7.0.250.0100.00615.39
7.0.240.0000.01615.55
7.0.230.0000.01115.38
7.0.220.0060.00315.50
7.0.210.0090.00615.36
7.0.200.0020.00715.89
7.0.190.0030.00715.56
7.0.180.0040.00415.29
7.0.170.0060.00615.48
7.0.160.0090.00915.33
7.0.150.0110.00315.36
7.0.140.0060.00615.42
7.0.130.0060.00915.25
7.0.120.0090.00015.65
7.0.110.0000.01115.41
7.0.100.0070.00715.32
7.0.90.0030.00615.38
7.0.80.0060.00915.51
7.0.70.0000.00915.17
7.0.60.0050.04117.58
7.0.50.0090.01816.71
7.0.40.0050.04016.86
7.0.30.0180.04316.67
7.0.20.0130.02816.82
7.0.10.0060.03516.63
7.0.00.0070.04416.69
5.6.400.0040.01514.11
5.6.390.0060.00914.63
5.6.380.0000.00814.28
5.6.370.0070.01014.20
5.6.360.0060.01014.47
5.6.350.0090.00314.25
5.6.340.0060.00614.39
5.6.330.0000.01314.15
5.6.320.0090.00614.18
5.6.310.0040.00914.47
5.6.300.0070.00714.50
5.6.290.0090.00614.45
5.6.280.0030.04317.75
5.6.270.0130.00314.47
5.6.260.0060.00914.10
5.6.250.0070.00714.40
5.6.240.0030.00614.05
5.6.230.0090.00614.23
5.6.220.0170.00014.68
5.6.210.0060.04117.75
5.6.200.0050.04816.26
5.6.190.0050.03217.65
5.6.180.0150.03617.39
5.6.170.0100.04017.43
5.6.160.0060.02817.46
5.6.150.0070.03316.18
5.6.140.0030.02116.34
5.6.130.0080.04216.19
5.6.120.0070.04617.86
5.6.110.0040.05117.65
5.6.100.0090.04117.66
5.6.90.0060.03217.75
5.6.80.0020.03517.27
5.6.70.2140.02317.34
5.6.60.0040.00414.26
5.6.50.0060.00314.14
5.6.40.0060.00814.25
5.6.30.0000.00914.08
5.6.20.0090.00614.36
5.6.10.0030.00614.48
5.6.00.0030.00914.50
5.5.380.0100.00014.20
5.5.370.0040.00714.43
5.5.360.0110.00414.45
5.5.350.0180.03817.39
5.5.340.0020.03416.36
5.5.330.0050.02717.25
5.5.320.0070.02817.33
5.5.310.0130.03417.24
5.5.300.0070.03916.07
5.5.290.0130.04016.30
5.5.280.0080.04517.41
5.5.270.0140.02617.55
5.5.260.0050.03817.44
5.5.250.0050.02517.32
5.5.240.0120.02017.11
5.5.230.0110.00314.24
5.5.220.0100.00314.34
5.5.210.0030.01013.96
5.5.200.0000.00914.32
5.5.190.0040.01114.43
5.5.180.0060.00314.32
5.5.170.0030.01314.18
5.5.160.0000.01014.38
5.5.150.0100.00614.35
5.5.140.0060.00314.37
5.5.130.0070.00714.00
5.5.120.0060.00314.02
5.5.110.0090.00614.15
5.5.100.0090.00614.13
5.5.90.0060.00913.98
5.5.80.0030.00714.32
5.5.70.0040.01114.02
5.5.60.0100.00314.43
5.5.50.0040.00714.31
5.5.40.0030.01114.00
5.5.30.0100.00614.33
5.5.20.0040.01114.24
5.5.10.0070.00714.13
5.5.00.0090.00614.17
5.4.450.0490.02015.34
5.4.440.0350.02415.34
5.4.430.0120.02015.39
5.4.420.0080.03015.31
5.4.410.0150.03715.07
5.4.400.0120.02714.67
5.4.390.0100.03414.86
5.4.380.0020.03614.88
5.4.370.0100.03014.87
5.4.360.0160.02214.77
5.4.350.0080.03014.75
5.4.340.0050.03514.85
5.4.330.0040.00710.84
5.4.320.0110.02815.10
5.4.310.0050.03315.00
5.4.300.0130.03514.88
5.4.290.0080.03014.76
5.4.280.0130.02214.65
5.4.270.0100.02715.05
5.4.260.0030.03014.88
5.4.250.0060.04214.91
5.4.240.0090.03614.82
5.4.230.0050.03414.91
5.4.220.0100.03314.85
5.4.210.0130.02714.97
5.4.200.0050.03213.83
5.4.190.0130.03715.03
5.4.180.0160.02914.71
5.4.170.0100.03014.79
5.4.160.0100.03014.77
5.4.150.0030.04115.05
5.4.140.0070.03513.59
5.4.130.0030.03113.63
5.4.120.0080.03813.63
5.4.110.0060.02613.67
5.4.100.0120.02513.66
5.4.90.0070.02913.59
5.4.80.0090.02613.82
5.4.70.0070.03013.80
5.4.60.0070.03613.63
5.4.50.0110.02513.63
5.4.40.0080.03013.47
5.4.30.0070.02913.72
5.4.20.0070.03213.69
5.4.10.0070.02713.71
5.4.00.0050.02613.49
5.3.290.0170.07014.84
5.3.280.0130.05014.72
5.3.270.0070.06314.71
5.3.260.0130.06014.81
5.3.250.0200.04314.66
5.3.240.0170.05714.64
5.3.230.0170.04714.64
5.3.220.0100.06014.63
5.3.210.0200.07014.63
5.3.200.0170.04714.77
5.3.190.0030.06314.79
5.3.180.0030.05714.59
5.3.170.0100.05014.57
5.3.160.0100.05014.54
5.3.150.0200.04014.59
5.3.140.0230.04014.77
5.3.130.0200.06314.65
5.3.120.0070.06014.59
5.3.110.0170.04714.65
5.3.100.0170.05714.09
5.3.90.0170.04314.12
5.3.80.0130.06714.02
5.3.70.0100.05014.12
5.3.60.0170.05714.23
5.3.50.0100.05014.07
5.3.40.0100.05714.16
5.3.30.0170.05714.04
5.3.20.0070.06713.79
5.3.10.0070.05313.74
5.3.00.0070.07713.64
5.2.170.0030.06311.17
5.2.160.0070.04311.19
5.2.150.0200.04711.20
5.2.140.0070.05711.14
5.2.130.0130.04311.12
5.2.120.0000.04711.11
5.2.110.0070.04011.13
5.2.100.0070.04011.23
5.2.90.0070.04011.32
5.2.80.0100.04011.20
5.2.70.0030.04711.22
5.2.60.0070.04311.13
5.2.50.0070.04311.13
5.2.40.0170.03711.10
5.2.30.0000.04710.96
5.2.20.0030.04311.01
5.2.10.0100.03710.89
5.2.00.0030.04310.85
5.1.60.0070.03310.20
5.1.50.0130.0309.98
5.1.40.0170.02310.00
5.1.30.0100.03710.31
5.1.20.0030.04010.36
5.1.10.0070.03710.07
5.1.00.0100.04310.21
5.0.50.0070.0278.77
5.0.40.0100.0238.55
5.0.30.0000.0508.32
5.0.20.0070.0308.44
5.0.10.0100.0238.39
5.0.00.0030.0478.21
4.4.90.0030.0275.91
4.4.80.0070.0305.90
4.4.70.0000.0275.90
4.4.60.0030.0305.93
4.4.50.0030.0235.91
4.4.40.0000.0405.91
4.4.30.0070.0205.89
4.4.20.0100.0175.98
4.4.10.0070.0206.02
4.4.00.0030.0335.91
4.3.110.0030.0235.94
4.3.100.0070.0205.81
4.3.90.0000.0235.89
4.3.80.0000.0375.84
4.3.70.0070.0235.84
4.3.60.0100.0235.84
4.3.50.0070.0205.84
4.3.40.0070.0305.81
4.3.30.0000.0234.61
4.3.20.0000.0234.55
4.3.10.0100.0234.52
4.3.00.0000.01715.86

preferences:
69.17 ms | 401 KiB | 5 Q