3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * Debug Class */ namespace bobcad; class debug { public $runtime_checkpoints; public function __construct() { $this->runtime_checkpoint('Begin Theme Generation'); } public function output() { print_r($_SERVER); } public function runtime_checkpoint($name = '') { $this->runtime_checkpoints[] = array( 'name' => (string) $name, 'time' => microtime(TRUE) ); } public function print_js($html_id) { $checkpoints = $this->runtime_checkpoints; $first = array_shift($checkpoints); $debug_info_array = array($first['name'].': '.$first['time']); $previous_time = $first['time']; foreach ($checkpoints as $checkpoint) { $debug_info_array[] = sprintf( '%1$s: %2$s (+%3$s)', $checkpoint['name'], ($first['time'] - $checkpoint['time']), ($previous_time - $checkpoint['time']) ); $previous_time = $checkpoint['time']; } $debug_info = implode('; ', $debug_info_array); ?> <script type="text/javascript"> document.getElementById("<?php echo $html_id; ?>").setAttribute("title", "<?php echo addslashes($debug_info); ?>"); </script> <?php } public function _on_shutdown() { $this->runtime_checkpoint('Begin Theme Generation'); $this->print_js('copyright'); } } $test = new \bobcad\debug; $test->_on_shutdown();

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.0.110.0000.00716.76
8.0.100.0070.00016.86
8.0.90.0000.00816.73
8.0.80.0100.00716.80
8.0.70.0040.00416.80
8.0.60.0040.00416.86
8.0.50.0040.00416.78
8.0.30.0070.01117.24
8.0.20.0100.00917.40
8.0.10.0040.00416.92
8.0.00.0090.00916.79
7.4.240.0020.00516.62
7.4.230.0000.00716.63
7.4.220.0160.00316.48
7.4.210.0070.00716.49
7.4.200.0070.00016.33
7.4.160.0120.00616.48
7.4.150.0090.00917.40
7.4.140.0160.00517.86
7.4.130.0120.00716.43
7.4.120.0090.00916.63
7.4.110.0070.01716.59
7.4.100.0120.00616.54
7.4.90.0090.00916.54
7.4.80.0070.01119.39
7.4.70.0030.01416.48
7.4.60.0080.00816.48
7.4.50.0000.00516.54
7.4.40.0160.00316.53
7.4.30.0100.00716.45
7.4.10.0110.00715.21
7.4.00.0050.01014.92
7.3.300.0030.00316.39
7.3.290.0080.00616.35
7.3.280.0070.00916.36
7.3.270.0090.00917.40
7.3.260.0120.01216.74
7.3.250.0100.01016.53
7.3.240.0130.00716.63
7.3.230.0110.00716.67
7.3.210.0070.01016.43
7.3.200.0120.00419.39
7.3.190.0120.00416.30
7.3.180.0100.00716.66
7.3.170.0070.01016.46
7.3.160.0100.01016.42
7.3.130.0080.00815.12
7.3.120.0070.01114.75
7.3.110.0090.00914.89
7.3.100.0060.01014.94
7.3.90.0070.00814.71
7.3.80.0010.01014.78
7.3.70.0060.00814.76
7.3.60.0070.00614.92
7.3.50.0010.01414.90
7.3.40.0050.00614.92
7.3.30.0060.00614.88
7.3.20.0070.00816.52
7.3.10.0100.00516.59
7.3.00.0090.00616.47
7.2.330.0130.00716.73
7.2.320.0070.01116.80
7.2.310.0130.00316.96
7.2.300.0100.00716.79
7.2.290.0060.01216.90
7.2.260.0070.01114.89
7.2.250.0030.01315.20
7.2.240.0080.01015.23
7.2.230.0040.01015.06
7.2.220.0080.01115.14
7.2.210.0090.00715.13
7.2.200.0020.01115.18
7.2.190.0060.00915.01
7.2.180.0050.00815.03
7.2.170.0050.01014.98
7.2.160.0020.01314.97
7.2.150.0040.01116.97
7.2.140.0100.00416.83
7.2.130.0100.00616.78
7.2.120.0100.00716.76
7.2.110.0090.00716.73
7.2.100.0080.00816.81
7.2.90.0080.00616.70
7.2.80.0100.00516.76
7.2.70.0040.01116.82
7.2.60.0080.00716.83
7.2.50.0090.00717.03
7.2.40.0080.00716.90
7.2.30.0080.00716.92
7.2.20.0090.00916.95
7.2.10.0050.01016.88
7.2.00.0060.00916.84
7.1.330.0070.00915.90
7.1.320.0100.00515.72
7.1.310.0080.00715.64
7.1.300.0110.00415.83
7.1.290.0010.00715.74
7.1.280.0040.00615.75
7.1.270.0050.00915.75
7.1.260.0070.00515.80
7.1.250.0070.00815.75
7.1.240.0080.00715.96
7.1.230.0030.01215.86
7.1.220.0030.00815.88
7.1.210.0040.00815.65
7.1.200.0060.00815.82
7.1.190.0040.01015.81
7.1.180.0090.00615.73
7.1.170.0060.00615.71
7.1.160.0060.00615.85
7.1.150.0060.00615.88
7.1.140.0090.00515.83
7.1.130.0030.00815.79
7.1.120.0050.00715.86
7.1.110.0090.00315.71
7.1.100.0030.00615.80
7.1.90.0020.01115.66
7.1.80.0090.00615.87
7.1.70.0020.01016.26
7.1.60.0050.01317.20
7.1.50.0070.01116.35
7.1.40.0040.00915.60
7.1.30.0060.00515.75
7.1.20.0060.00315.80
7.1.10.0060.00715.80
7.1.00.0080.02618.15
7.0.330.0030.01115.52
7.0.320.0060.00615.41
7.0.310.0100.00315.37
7.0.300.0030.00715.28
7.0.290.0060.00715.52
7.0.280.0030.00915.40
7.0.270.0050.00715.43
7.0.260.0050.00615.47
7.0.250.0050.00815.51
7.0.240.0050.00715.54
7.0.230.0060.00615.54
7.0.220.0050.01015.34
7.0.210.0050.00715.42
7.0.200.0230.00615.19
7.0.190.0030.00715.23
7.0.180.0030.00915.48
7.0.170.0050.00815.38
7.0.160.0050.00715.54
7.0.150.0040.00815.38
7.0.140.0040.00515.38
7.0.130.0070.00415.25
7.0.120.0030.01015.60
7.0.110.0040.01015.44
7.0.100.0050.01115.35
7.0.90.0050.00915.50
7.0.80.0060.00515.51
7.0.70.0000.01015.33
7.0.60.0070.02716.99
7.0.50.0030.02416.20
7.0.40.0070.03515.66
7.0.30.0140.03115.80
7.0.20.0110.03115.67
7.0.10.0060.01715.65
7.0.00.0070.02815.76
5.6.400.0020.00814.45
5.6.390.0100.00314.29
5.6.380.0090.00614.57
5.6.370.0020.01214.71
5.6.360.0040.00914.59
5.6.350.0070.00514.54
5.6.340.0020.01214.64
5.6.330.0070.00714.42
5.6.320.0090.00514.67
5.6.310.0050.00814.62
5.6.300.0090.00414.72
5.6.290.0050.00614.68
5.6.280.0070.02716.63
5.6.270.0060.01114.46
5.6.260.0100.00514.49
5.6.250.0040.01014.51
5.6.240.0120.00014.58
5.6.230.0080.00614.38
5.6.220.0030.01214.44
5.6.210.0070.02916.55
5.6.200.0030.02115.68
5.6.190.0050.03616.50
5.6.180.0180.01816.54
5.6.170.0060.02916.39
5.6.160.0110.02716.44
5.6.150.0050.03315.73
5.6.140.0030.03315.87
5.6.130.0080.03015.78
5.6.120.0070.01916.63
5.6.110.0070.01616.78
5.6.100.0070.03316.69
5.6.90.0090.02716.70
5.6.80.0060.02216.47
5.6.70.0050.00514.48
5.6.60.0070.00714.38
5.6.50.0030.00814.35
5.6.40.0050.00914.34
5.6.30.0060.00514.32
5.6.20.0060.01014.51
5.6.10.0000.00914.45
5.6.00.0050.01114.46
5.5.380.0070.00714.48
5.5.370.0030.00814.50
5.5.360.0060.00614.37
5.5.350.0090.03416.43
5.5.340.0040.03415.65
5.5.330.0060.02016.36
5.5.320.0110.03316.47
5.5.310.0100.03416.41
5.5.300.0030.02115.70
5.5.290.0060.03215.63
5.5.280.0120.02716.71
5.5.270.0020.02116.36
5.5.260.0060.03516.60
5.5.250.0050.02716.44
5.5.240.0050.03016.30
5.5.230.0060.00614.47
5.5.220.0060.00714.53
5.5.210.0070.00514.28
5.5.200.0020.00714.21
5.5.190.0050.00514.31
5.5.180.0040.00714.23
5.5.170.0070.00614.27
5.5.160.0050.00914.18
5.5.150.0040.00714.35
5.5.140.0050.00614.38
5.5.130.0010.00714.19
5.5.120.0010.01014.50
5.5.110.0050.00814.40
5.5.100.0030.00714.42
5.5.90.0030.00514.22
5.5.80.0010.00914.35
5.5.70.0060.00814.26
5.5.60.0040.00614.49
5.5.50.0070.00714.31
5.5.40.0060.00814.50
5.5.30.0060.00514.52
5.5.20.0050.01014.28
5.5.10.0020.00914.17
5.5.00.0030.01014.21
5.4.450.0120.02614.01
5.4.440.0350.01913.92
5.4.430.0080.02013.99
5.4.420.0080.02213.95
5.4.410.0090.02213.92
5.4.400.0060.03013.91
5.4.390.0070.02013.85
5.4.380.0090.02113.82
5.4.370.0080.02813.80
5.4.360.0120.01813.69
5.4.350.0060.02013.81
5.4.340.0090.02013.92
5.4.330.0050.00710.94
5.4.320.0070.02713.87
5.4.310.0040.02313.86
5.4.300.0010.02413.92
5.4.290.0110.01813.79
5.4.280.0100.01813.74
5.4.270.0030.02413.63
5.4.260.0070.02013.65
5.4.250.0070.02113.79
5.4.240.0100.01913.72
5.4.230.0080.02513.68
5.4.220.0070.02313.69
5.4.210.0070.02013.72
5.4.200.0090.01512.96
5.4.190.0050.02213.74
5.4.180.0080.01913.52
5.4.170.0030.03113.74
5.4.160.0120.02313.93
5.4.150.0050.02813.64
5.4.140.0110.02312.86
5.4.130.0040.02112.91
5.4.120.0080.01812.83
5.4.110.0020.02312.96
5.4.100.0020.02412.85
5.4.90.0060.02013.00
5.4.80.0080.01912.83
5.4.70.0030.02612.89
5.4.60.0070.02013.04
5.4.50.0060.02212.86
5.4.40.0030.02813.03
5.4.30.0040.02112.83
5.4.20.0060.02112.94
5.4.10.0050.02112.83
5.4.00.0080.01912.92
5.3.290.0100.06014.67
5.3.280.0070.05714.59
5.3.270.0070.08014.59
5.3.260.0100.05314.54
5.3.250.0070.06714.54
5.3.240.0200.04714.75
5.3.230.0030.06014.68
5.3.220.0030.05714.55
5.3.210.0070.05714.65
5.3.200.0170.04714.54
5.3.190.0130.04714.76
5.3.180.0070.05314.66
5.3.170.0170.04314.81
5.3.160.0070.05714.71
5.3.150.0130.05014.67
5.3.140.0100.07314.49
5.3.130.0170.04714.73
5.3.120.0100.06314.73
5.3.110.0000.06314.63
5.3.100.0100.05014.09
5.3.90.0130.04714.02
5.3.80.0200.04314.08
5.3.70.0070.05714.06
5.3.60.0070.05314.22
5.3.50.0070.07314.04
5.3.40.0070.05313.93
5.3.30.0130.05314.11
5.3.20.0030.05713.78
5.3.10.0000.05713.70
5.3.00.0130.04713.66
5.2.170.0030.05311.07
5.2.160.0070.04011.23
5.2.150.0170.03310.90
5.2.140.0030.04310.94
5.2.130.0030.04010.94
5.2.120.0000.04710.96
5.2.110.0070.04011.03
5.2.100.0070.04010.95
5.2.90.0100.03711.04
5.2.80.0070.04711.18
5.2.70.0070.06010.99
5.2.60.0100.04010.90
5.2.50.0170.03310.77
5.2.40.0030.04310.83
5.2.30.0070.04310.82
5.2.20.0070.04011.05
5.2.10.0070.04010.85
5.2.00.0070.04010.66
5.1.60.0170.0239.93
5.1.50.0070.03310.08
5.1.40.0030.03710.03
5.1.30.0030.03710.32
5.1.20.0070.03710.37
5.1.10.0070.03710.11
5.1.00.0130.0309.96
5.0.50.0070.0308.64
5.0.40.0130.0238.29
5.0.30.0070.0408.16
5.0.20.0100.0238.20
5.0.10.0000.0338.32
5.0.00.0030.0508.14
4.4.90.0070.0205.82
4.4.80.0100.0175.82
4.4.70.0030.0235.75
4.4.60.0000.0275.89
4.4.50.0000.0235.91
4.4.40.0100.0405.84
4.4.30.0130.0135.77
4.4.20.0030.0235.85
4.4.10.0070.0305.96
4.4.00.0000.0405.79
4.3.110.0130.0275.75
4.3.100.0070.0275.66
4.3.90.0100.0205.63
4.3.80.0000.0405.83
4.3.70.0100.0175.75
4.3.60.0070.0205.76
4.3.50.0000.0275.82
4.3.40.0030.0335.60
4.3.30.0000.0234.53
4.3.20.0000.0234.55
4.3.10.0030.0204.35
4.3.00.0030.0307.09

preferences:
43.62 ms | 400 KiB | 5 Q