3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * @author Lisachenko Alexander <https://twitter.com/lisachenko> */ class ChuckNorrisException extends Exception { public function __construct($message, array $trace = array(), $code = 0, Exception $previous = null) { parent::__construct($message, 0, $previous); $this->file = 'Real Life'; $setter = function(array $newTrace = array()) { /** @var $this Exception */ $this->trace = $newTrace; }; $setter->bindTo($this, 'Exception')->__invoke($trace); } } throw new ChuckNorrisException("Hello", array( array('file' => 'Chuck Norris, level', 'line' => 99, 'class' => 'own you ', 'function' => 'with uppercut!') ));

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.0070.00716.63
8.3.50.0100.00821.99
8.3.40.0070.00718.88
8.3.30.0070.00719.25
8.3.20.0140.00320.16
8.3.10.0140.00023.65
8.3.00.0000.00919.68
8.2.180.0070.01116.88
8.2.170.0170.00322.96
8.2.160.0160.00620.35
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0100.00726.16
8.2.120.0080.00019.54
8.2.110.0070.00320.94
8.2.100.0000.01217.91
8.2.90.0050.00318.28
8.2.80.0030.00517.97
8.2.70.0050.00317.75
8.2.60.0050.00517.91
8.2.50.0060.00318.07
8.2.40.0040.00418.09
8.2.30.0100.00018.27
8.2.20.0000.00817.65
8.2.10.0040.00418.14
8.2.00.0030.00617.80
8.1.280.0130.00725.92
8.1.270.0090.00023.91
8.1.260.0080.00026.35
8.1.250.0030.00528.09
8.1.240.0090.00019.09
8.1.230.0110.00021.04
8.1.220.0030.00517.74
8.1.210.0050.00318.96
8.1.200.0030.00717.48
8.1.190.0000.00817.25
8.1.180.0000.00918.10
8.1.170.0060.00318.49
8.1.160.0000.00821.99
8.1.150.0070.00018.78
8.1.140.0040.00417.44
8.1.130.0000.00817.73
8.1.120.0000.00717.54
8.1.110.0040.00417.52
8.1.100.0070.00017.45
8.1.90.0030.00317.52
8.1.80.0040.00417.37
8.1.70.0040.00417.43
8.1.60.0080.00017.57
8.1.50.0000.00717.61
8.1.40.0000.00817.53
8.1.30.0080.00017.69
8.1.20.0080.00017.69
8.1.10.0040.00417.64
8.1.00.0000.00717.45
8.0.300.0070.00020.18
8.0.290.0040.00416.75
8.0.280.0000.00718.30
8.0.270.0000.00716.82
8.0.260.0030.00317.13
8.0.250.0000.00716.99
8.0.240.0070.00016.84
8.0.230.0000.00816.84
8.0.220.0000.00716.91
8.0.210.0000.00716.91
8.0.200.0030.00317.05
8.0.190.0000.00716.96
8.0.180.0000.00816.91
8.0.170.0050.00316.91
8.0.160.0030.00317.07
8.0.150.0030.00316.91
8.0.140.0050.00316.96
8.0.130.0000.00513.39
8.0.120.0040.00416.96
8.0.110.0050.00317.03
8.0.100.0040.00417.00
8.0.90.0040.00416.92
8.0.80.0100.01317.01
8.0.70.0000.00716.85
8.0.60.0040.00416.75
8.0.50.0040.00416.85
8.0.30.0140.01117.05
8.0.20.0170.01017.25
8.0.10.0280.00717.08
8.0.00.0090.01316.88
7.4.330.0050.00015.20
7.4.320.0000.00616.62
7.4.300.0030.00316.66
7.4.290.0030.00316.63
7.4.280.0050.00316.56
7.4.270.0000.00716.64
7.4.260.0000.00716.63
7.4.250.0050.00316.55
7.4.240.0000.00716.56
7.4.230.0030.00316.71
7.4.220.0100.00716.64
7.4.210.0030.01116.58
7.4.200.0030.00316.50
7.4.160.0200.00916.54
7.4.150.0190.01216.99
7.4.140.0150.00817.38
7.4.130.0120.01116.51
7.4.120.0150.00916.64
7.4.110.0240.00516.56
7.4.100.0180.00416.48
7.4.90.0200.00516.51
7.4.80.0130.01217.99
7.4.70.0180.00416.54
7.4.60.0120.01416.41
7.4.50.0110.00816.37
7.4.40.0200.00716.47
7.4.30.0130.01016.50
7.4.20.0200.00816.48
7.4.10.0200.00315.78
7.4.00.0110.00815.36
7.3.330.0000.00513.23
7.3.320.0050.00013.41
7.3.310.0000.00716.49
7.3.300.0040.00416.40
7.3.290.0040.01116.39
7.3.280.0080.00816.36
7.3.270.0180.00916.90
7.3.260.0140.01116.36
7.3.250.0150.01016.40
7.3.240.0170.00616.46
7.3.230.0140.00716.38
7.3.220.0280.00316.32
7.3.210.0160.00816.40
7.3.200.0090.01217.87
7.3.190.0150.01216.38
7.3.180.0180.00816.50
7.3.170.0130.00816.50
7.3.160.0170.00716.41
7.3.150.0310.00316.43
7.3.140.0160.01116.40
7.3.130.0120.01215.51
7.3.120.0100.01015.23
7.3.110.0130.00815.30
7.3.100.0130.00715.23
7.3.90.0100.00815.15
7.3.80.0130.00615.23
7.3.70.0090.00715.24
7.3.60.0100.00715.30
7.3.50.0090.00815.11
7.3.40.0090.00915.17
7.3.30.0130.00715.13
7.3.20.0110.00416.58
7.3.10.0120.00816.33
7.3.00.0140.00716.61
7.2.340.0170.00916.32
7.2.330.0140.01116.42
7.2.320.0190.00916.37
7.2.310.0100.01416.44
7.2.300.0140.01016.47
7.2.290.0130.01016.37
7.2.280.0240.00616.23
7.2.270.0200.01216.34
7.2.260.0180.00815.62
7.2.250.0090.01215.24
7.2.240.0110.01015.29
7.2.230.0130.00715.25
7.2.220.0110.00715.33
7.2.210.0100.00815.35
7.2.200.0100.00815.28
7.2.190.0120.00715.34
7.2.180.0100.01015.29
7.2.170.0070.01115.21
7.2.160.0100.01215.75
7.2.150.0180.00216.76
7.2.140.0140.00716.72
7.2.130.0190.00616.81
7.2.120.0120.00716.69
7.2.110.0090.01016.53
7.2.100.0140.00916.73
7.2.90.0130.01116.78
7.2.80.0070.01216.64
7.2.70.0090.00916.64
7.2.60.0140.00716.75
7.2.50.0110.00716.60
7.2.40.0090.01116.48
7.2.30.0130.00916.69
7.2.20.0170.01216.61
7.2.10.0060.01216.49
7.2.00.0100.01017.18
7.1.330.0070.01115.60
7.1.320.0100.00815.81
7.1.310.0110.00615.58
7.1.300.0080.00415.62
7.1.290.0080.00815.72
7.1.280.0110.00915.71
7.1.270.0080.00715.59
7.1.260.0060.00915.65
7.1.250.0130.00615.54
7.1.240.0080.00815.67
7.1.230.0120.00915.72
7.1.220.0140.00815.62
7.1.210.0150.01015.58
7.1.200.0170.00615.65
7.1.190.0040.01615.58
7.1.180.0110.01315.63
7.1.170.0160.00615.59
7.1.160.0130.00715.52
7.1.150.0150.00815.48
7.1.140.0120.00915.71
7.1.130.0120.01115.60
7.1.120.0120.00915.67
7.1.110.0070.01515.59
7.1.100.0130.00716.45
7.1.90.0130.00815.46
7.1.80.0170.00315.69
7.1.70.0110.00915.92
7.1.60.0110.00816.98
7.1.50.0100.01016.08
7.1.40.0150.01115.67
7.1.30.0160.00715.66
7.1.20.0130.01015.65
7.1.10.0140.00615.63
7.1.00.0080.03317.87
7.0.330.0160.00515.14
7.0.320.0130.00515.43
7.0.310.0120.00615.38
7.0.300.0130.00815.39
7.0.290.0100.01315.26
7.0.280.0140.00815.36
7.0.270.0410.00815.34
7.0.260.0140.00915.37
7.0.250.0100.01415.45
7.0.240.0150.00715.38
7.0.230.0110.01215.37
7.0.220.0140.00915.29
7.0.210.0110.01115.32
7.0.200.0060.01015.77
7.0.190.0120.01015.33
7.0.180.0200.01015.35
7.0.170.0310.01115.41
7.0.160.0110.01315.37
7.0.150.0160.00815.35
7.0.140.0130.03117.58
7.0.130.0160.00115.28
7.0.120.0200.01015.35
7.0.110.0090.01215.43
7.0.100.0110.01115.36
7.0.90.0120.00915.35
7.0.80.0150.00715.23
7.0.70.0100.02617.44
7.0.60.0100.01817.44
7.0.50.0100.03517.63
7.0.40.0140.02816.20
7.0.30.0110.02116.26
7.0.20.0090.03216.22
7.0.10.0350.03416.18
7.0.00.0140.02916.27
5.6.400.0130.00715.28
5.6.390.0120.00915.00
5.6.380.0150.00815.18
5.6.370.0150.00415.15
5.6.360.0130.01315.22
5.6.350.0150.00715.06
5.6.340.0100.01115.09
5.6.330.0110.01315.32
5.6.320.0110.01015.21
5.6.310.0090.01614.95
5.6.300.0150.00615.27
5.6.290.0180.00515.25
5.6.280.0090.03217.06
5.6.270.0170.00715.34
5.6.260.0150.00615.27
5.6.250.0120.00915.12
5.6.240.0160.00715.14
5.6.230.0090.01115.19
5.6.220.0160.01616.99
5.6.210.0080.02217.01
5.6.200.0090.02217.06
5.6.190.0120.03317.15
5.6.180.0080.03217.07
5.6.170.0120.03217.09
5.6.160.0090.03017.12
5.6.150.0100.02917.05
5.6.140.0140.02917.12
5.6.130.0110.03417.04
5.6.120.0090.02417.06
5.6.110.0070.03817.20
5.6.100.0080.02817.11
5.6.90.0140.01817.14
5.6.80.0110.02916.90
5.6.70.0080.02216.93
5.6.60.0080.03516.90
5.6.50.0080.02916.95
5.6.40.0140.03116.90
5.6.30.0080.03416.89
5.6.20.0100.01916.82
5.6.10.0100.03016.80
5.6.00.0070.02716.92
5.5.380.0160.00615.13
5.5.370.0140.01215.08
5.5.360.0080.02016.88
5.5.350.0100.01816.97
5.5.340.0100.02017.08
5.5.330.0100.02716.87
5.5.320.0080.03516.95
5.5.310.0100.02217.03
5.5.300.0110.03016.97
5.5.290.0120.03017.04
5.5.280.0100.02017.08
5.5.270.0120.03316.81
5.5.260.0120.03216.88
5.5.250.0090.02417.01
5.5.240.0110.02916.85
5.5.230.0110.03316.81
5.5.220.0070.03516.79
5.5.210.0100.03416.67
5.5.200.0080.02116.65
5.5.190.0110.02916.63
5.5.180.0130.02116.81
5.5.170.0080.01415.12
5.5.160.0080.02516.82
5.5.150.0110.03116.60
5.5.140.0140.02416.71
5.5.130.0090.03316.63
5.5.120.0090.02916.68
5.5.110.0130.03216.68
5.5.100.0140.02716.76
5.5.90.0130.03116.77
5.5.80.0120.02916.79
5.5.70.0100.02416.81
5.5.60.0150.02716.68
5.5.50.0070.03016.75
5.5.40.0080.03116.77
5.5.30.0110.02816.79
5.5.20.0050.03616.78
5.5.10.0100.02416.71
5.5.00.0080.02816.72
5.4.450.0090.04816.12
5.4.440.0120.04116.02
5.4.430.0100.02316.11
5.4.420.0070.03816.11
5.4.410.0110.04015.90
5.4.400.0060.05015.77
5.4.390.0240.03215.90
5.4.380.0080.04615.76
5.4.370.0100.04215.92
5.4.360.0070.02615.86
5.4.350.0130.03815.92
5.4.340.0110.02715.95
5.4.330.0150.00912.75
5.4.320.0130.03715.99
5.4.310.0070.03015.99
5.4.300.0110.03115.93
5.4.290.0080.04315.96
5.4.280.0130.03615.81
5.4.270.0110.02915.96
5.4.260.0110.04615.82
5.4.250.0110.03015.87
5.4.240.0060.04615.84
5.4.230.0050.03215.78
5.4.220.0170.03415.78
5.4.210.0110.03415.86
5.4.200.0100.03515.67
5.4.190.0040.04915.78
5.4.180.0050.04915.74
5.4.170.0120.04015.83
5.4.160.0080.02815.63
5.4.150.0080.04015.82
5.4.140.0090.03614.61
5.4.130.0110.03014.52
5.4.120.0120.03714.49
5.4.110.0070.04014.64
5.4.100.0170.03514.53
5.4.90.0160.03514.55
5.4.80.0060.04514.62
5.4.70.0080.04314.62
5.4.60.0140.03614.64
5.4.50.0120.03914.53
5.4.40.0040.03614.47
5.4.30.0110.03914.52
5.4.20.0080.02614.60
5.4.10.0110.03114.51
5.4.00.0130.03714.23
5.3.290.0080.04813.89
5.3.280.0060.04613.82
5.3.270.0100.03413.92
5.3.260.0070.04413.92
5.3.250.0080.03713.93
5.3.240.0050.04513.75
5.3.230.0120.03913.85
5.3.220.0110.04213.80
5.3.210.0090.04613.83
5.3.200.0120.04213.85
5.3.190.0120.04413.83
5.3.180.0070.03813.84
5.3.170.0060.03513.91
5.3.160.0090.04213.95
5.3.150.0130.02713.94
5.3.140.0110.03713.87
5.3.130.0130.04213.79
5.3.120.0120.04313.81
5.3.110.0110.04313.88
5.3.100.0100.04013.67
5.3.90.0080.03413.59
5.3.80.0100.03413.53
5.3.70.0110.04013.48
5.3.60.0110.03513.56
5.3.50.0070.03913.51
5.3.40.0180.01713.41
5.3.30.0080.02313.43
5.3.20.0090.02713.28
5.3.10.0120.02813.26
5.3.00.0130.03113.27

preferences:
43.32 ms | 401 KiB | 5 Q