3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ContextException extends RuntimeException { protected $context = array(); public function __construct($message='', $context=array(), $code=0, $previous=null) { $this->context = $context; parent::__construct($message, $code, $previous); } /** * Returns an array of variables that existed when exception occured. * @return array Array of variable name=>value pairs. */ public function getContext(){ return $this->context; } } $cheese = true; throw new ContextException('Something went wrong.', get_defined_vars(), E_NOTICE);

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.00016.63
8.3.50.0130.00517.51
8.3.40.0070.00719.09
8.3.30.0120.00918.66
8.3.20.0050.00318.73
8.3.10.0000.00820.48
8.3.00.0040.00419.38
8.2.180.0100.00618.50
8.2.170.0140.00022.96
8.2.160.0090.00621.25
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0080.00026.16
8.2.120.0080.00019.23
8.2.110.0060.00321.11
8.2.100.0040.00817.91
8.2.90.0050.00520.82
8.2.80.0060.00317.93
8.2.70.0000.00817.50
8.2.60.0030.00517.68
8.2.50.0040.00418.07
8.2.40.0000.00818.22
8.2.30.0000.00717.93
8.2.20.0000.00817.57
8.2.10.0080.00017.80
8.2.00.0000.00717.72
8.1.280.0000.01525.92
8.1.270.0070.00024.66
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0100.00022.33
8.1.230.0040.00821.09
8.1.220.0060.00317.74
8.1.210.0040.00418.94
8.1.200.0040.00417.35
8.1.190.0000.00817.55
8.1.180.0030.00618.10
8.1.170.0040.00418.82
8.1.160.0040.00418.95
8.1.150.0020.00518.67
8.1.140.0050.00217.51
8.1.130.0000.00717.82
8.1.120.0070.00017.29
8.1.110.0000.00817.48
8.1.100.0030.00517.35
8.1.90.0040.00417.53
8.1.80.0030.00317.36
8.1.70.0070.00017.36
8.1.60.0050.00317.50
8.1.50.0040.00417.47
8.1.40.0000.00717.46
8.1.30.0070.00017.58
8.1.20.0000.00817.56
8.1.10.0030.00617.57
8.1.00.0040.00417.52
8.0.300.0040.00419.75
8.0.290.0040.00416.75
8.0.280.0000.00718.47
8.0.270.0070.00017.27
8.0.260.0060.00016.72
8.0.250.0100.00016.64
8.0.240.0030.00316.98
8.0.230.0000.00716.85
8.0.220.0030.00316.82
8.0.210.0000.00716.73
8.0.200.0030.00316.86
8.0.190.0060.00316.98
8.0.180.0050.00316.86
8.0.170.0000.00816.78
8.0.160.0040.00416.93
8.0.150.0000.00916.99
8.0.140.0070.00316.87
8.0.130.0030.00313.34
8.0.120.0040.00416.79
8.0.110.0030.00316.81
8.0.100.0040.00416.80
8.0.90.0040.00416.97
8.0.80.0000.01616.88
8.0.70.0080.00016.94
8.0.60.0050.00216.93
8.0.50.0040.00416.83
8.0.30.0100.01017.08
8.0.20.0090.00917.18
8.0.10.0050.00317.13
8.0.00.0150.00816.73
7.4.330.0000.00513.06
7.4.320.0030.00316.52
7.4.300.0030.00316.45
7.4.290.0040.00416.45
7.4.280.0040.00416.51
7.4.270.0000.00716.40
7.4.260.0070.00013.39
7.4.250.0000.01016.46
7.4.240.0070.00016.40
7.4.230.0000.00716.63
7.4.220.0140.01116.57
7.4.210.0090.00816.56
7.4.200.0030.00316.66
7.4.190.0000.00716.55
7.4.160.0120.00416.43
7.4.150.0070.01616.60
7.4.140.0060.01216.58
7.4.130.0130.00516.53
7.4.120.0070.01016.49
7.4.110.0070.01316.37
7.4.100.0110.00716.45
7.4.90.0110.00716.50
7.4.80.0130.01019.39
7.4.70.0120.01216.45
7.4.60.0090.00916.48
7.4.50.0050.00016.58
7.4.40.0130.00316.56
7.4.30.0180.00016.71
7.4.00.0060.00915.12
7.3.330.0030.00313.34
7.3.320.0030.00313.31
7.3.310.0080.00016.36
7.3.300.0020.00516.38
7.3.290.0090.00616.37
7.3.280.0040.01116.33
7.3.270.0150.00316.64
7.3.260.0090.00816.39
7.3.250.0030.01516.48
7.3.240.0130.00316.50
7.3.230.0060.01016.52
7.3.210.0070.01016.38
7.3.200.0030.01216.44
7.3.190.0090.01216.38
7.3.180.0040.01116.37
7.3.170.0100.01016.50
7.3.160.0090.00916.36
7.3.120.0100.00714.91
7.3.10.0090.00316.63
7.3.00.0040.01016.65
7.2.330.0100.00716.62
7.2.320.0060.01216.74
7.2.310.0130.00616.83
7.2.300.0040.01416.74
7.2.290.0110.00616.66
7.2.130.0020.01016.90
7.2.120.0070.00516.70
7.2.110.0040.01016.79
7.2.100.0060.00916.82
7.2.90.0100.00716.88
7.2.80.0110.00516.73
7.2.70.0090.01116.87
7.2.60.0060.00816.97
7.2.50.0060.00916.87
7.2.40.0040.00716.90
7.2.30.0110.00516.83
7.2.20.0090.00716.95
7.2.10.0050.00716.86
7.2.00.0070.00316.79
7.1.250.0060.00815.82
7.1.200.0070.00415.57
7.1.100.0300.01318.25
7.1.70.0030.00616.95
7.1.60.0130.01019.40
7.1.50.0100.01016.71
7.1.00.0100.07022.31
7.0.200.0000.00716.70
7.0.140.0030.07322.15
7.0.120.0000.07022.03
7.0.110.0100.04720.08
7.0.100.0030.05019.98
7.0.90.0200.07319.95
7.0.80.0100.04319.98
7.0.70.0100.06319.93
7.0.60.0200.05319.91
7.0.50.0100.06319.98
7.0.40.0100.03719.79
7.0.30.0070.08019.85
7.0.20.0130.07019.87
7.0.10.0030.07719.71
7.0.00.0100.06719.75
5.6.280.0000.07321.13
5.6.260.0070.04720.75
5.6.250.0200.07020.75
5.6.240.0170.04020.70
5.6.230.0130.06320.65
5.6.220.0030.07720.69
5.6.210.0030.05020.56
5.6.200.0130.06320.63
5.6.190.0170.07720.69
5.6.180.0030.08720.60
5.6.170.0070.04720.66
5.6.160.0070.04720.68
5.6.150.0100.07020.59
5.6.140.0030.07320.71
5.6.130.0000.04720.61
5.6.120.0000.04720.63
5.6.110.0000.04320.61
5.6.100.0070.04020.59
5.6.90.0000.04320.68
5.6.80.0000.03720.01
5.6.70.0030.04320.00
5.6.60.0000.04019.99
5.6.50.0030.04019.95
5.6.40.0100.03319.98
5.6.30.0130.06320.22
5.6.20.0070.03719.98
5.6.10.0000.05020.04
5.6.00.0000.05320.01
5.5.380.0100.07717.54
5.5.370.0100.08017.59
5.5.360.0170.03717.69
5.5.350.0000.08317.61
5.5.340.0130.06717.95
5.5.330.0070.04718.23
5.5.320.0030.08318.25
5.5.310.0130.07318.10
5.5.300.0130.05318.13
5.5.290.0030.05018.12
5.5.280.0070.04318.25
5.5.270.0130.03317.89
5.5.260.0030.05018.07
5.5.250.0030.04017.91
5.5.240.0030.03717.31
5.5.230.0030.03717.48
5.5.220.0030.06017.30
5.5.210.0070.03317.48
5.5.200.0100.03017.49
5.5.190.0000.04017.27
5.5.180.0000.04017.59
5.5.160.0100.02717.26
5.5.150.0030.04017.60
5.5.140.0000.04017.57
5.5.130.0170.02317.58
5.5.120.0070.03317.60
5.5.110.0070.03317.46
5.5.100.0000.04017.34
5.5.90.0070.03317.35
5.5.80.0100.03317.34
5.5.70.0100.03017.46
5.5.60.0030.03717.37
5.5.50.0100.03017.32
5.5.40.0070.03017.15
5.5.30.0030.04317.32
5.5.20.0000.03717.29
5.5.10.0030.03717.45
5.5.00.0070.06317.14
5.4.450.0070.04319.55
5.4.440.0000.04319.41
5.4.430.0030.04319.41
5.4.420.0070.03719.33
5.4.410.0070.03319.20
5.4.400.0070.03719.14
5.4.390.0030.04019.16
5.4.380.0000.04019.32
5.4.370.0030.03719.11
5.4.360.0030.05719.18
5.4.350.0000.04018.97
5.4.340.0030.05019.09
5.4.320.0100.02719.01
5.4.310.0030.03719.23
5.4.300.0030.03719.31
5.4.290.0030.03319.14
5.4.280.0070.03319.09
5.4.270.0030.03719.11
5.4.260.0030.03319.14
5.4.250.0000.03719.00
5.4.240.0000.04019.01
5.4.230.0000.04019.03
5.4.220.0100.03019.33
5.4.210.0100.04019.01
5.4.200.0000.05719.22
5.4.190.0000.03719.00
5.4.180.0000.04018.94
5.4.170.0100.03319.25
5.4.160.0070.03319.31
5.4.150.0070.04319.08
5.4.140.0000.06016.45
5.4.130.0030.03716.60
5.4.120.0030.07316.52
5.4.110.0070.07016.47
5.4.100.0000.03716.66
5.4.90.0070.06716.52
5.4.80.0030.06716.69
5.4.70.0030.03316.64
5.4.60.0030.06716.48
5.4.50.0000.08016.63
5.4.40.0030.05716.24
5.4.30.0070.04016.38
5.4.20.0130.06316.55
5.4.10.0030.06316.48
5.4.00.0070.04716.09
5.3.290.0030.04314.54
5.3.280.0000.06014.62
5.3.270.0030.03314.75
5.3.260.0100.03714.76
5.3.250.0030.07314.61
5.3.240.0070.05314.57
5.3.230.0070.07714.46
5.3.220.0030.07714.72
5.3.210.0030.06314.44
5.3.200.0000.04014.45
5.3.190.0030.03714.65
5.3.180.0030.04314.59
5.3.170.0100.05014.61
5.3.160.0030.08014.59
5.3.150.0000.03714.43
5.3.140.0170.02014.60
5.3.130.0030.04314.78
5.3.120.0030.03014.57
5.3.110.0030.07714.69
5.3.100.0030.04714.18
5.3.90.0030.05014.05
5.3.80.0100.05314.11
5.3.70.0000.07714.06
5.3.60.0100.02713.86
5.3.50.0070.04713.97
5.3.40.0030.06313.93
5.3.30.0030.07314.05
5.3.20.0130.02313.79
5.3.10.0070.06713.80
5.3.00.0000.05013.50
5.2.170.0070.05711.91
5.2.160.0100.05311.91
5.2.150.0000.06311.91
5.2.140.0000.05311.91
5.2.130.0030.06711.91
5.2.120.0030.06011.91
5.2.110.0000.06711.91
5.2.100.0070.06011.91
5.2.90.0000.03711.91
5.2.80.0070.06711.91
5.2.70.0030.05011.91
5.2.60.0100.05311.91
5.2.50.0030.07011.91
5.2.40.0030.03011.91
5.2.30.0070.06011.91
5.2.20.0030.06011.91
5.2.10.0000.06711.91
5.2.00.0000.04711.91
5.1.60.0030.03011.91
5.1.50.0070.04011.91
5.1.40.0100.03711.91
5.1.30.0070.05311.91
5.1.20.0070.05011.91
5.1.10.0030.06011.91
5.1.00.0030.03311.91
5.0.50.0030.02311.91
5.0.40.0030.02011.91
5.0.30.0030.06311.91
5.0.20.0070.03311.91
5.0.10.0030.02011.91
5.0.00.0030.06311.91
4.4.90.0070.03311.91
4.4.80.0070.03311.91
4.4.70.0030.03311.91
4.4.60.0100.02711.91
4.4.50.0100.01011.91
4.4.40.0000.02711.91
4.4.30.0070.01311.91
4.4.20.0030.02711.91
4.4.10.0030.03311.91
4.4.00.0030.04011.91
4.3.110.0030.01711.91
4.3.100.0100.02011.91
4.3.90.0030.01711.91
4.3.80.0030.04311.91
4.3.70.0000.01711.91
4.3.60.0030.02311.91
4.3.50.0000.02011.91
4.3.40.0030.02311.91
4.3.30.0000.03311.91
4.3.20.0000.01711.91
4.3.10.0000.01311.91
4.3.00.0000.01311.91

preferences:
52.46 ms | 401 KiB | 5 Q