3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = null; class A extends DateTime { public function __construct($d, $a) { global $a; $a = $this; parent::__construct($d, $a); throw new Exception("what?"); } public function __destruct() { echo "called\n"; } } try { $x = new A(10, 20); } catch(Exception $e) { } var_dump($a);

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.00718.55
8.3.50.0080.01221.27
8.3.40.0120.00318.79
8.3.30.0070.00718.84
8.3.20.0040.00418.91
8.3.10.0040.00421.26
8.3.00.0040.00421.87
8.2.180.0070.00716.75
8.2.170.0110.00422.96
8.2.160.0140.00020.33
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0060.00619.30
8.2.110.0100.00020.52
8.2.100.0070.00417.91
8.2.90.0040.00419.04
8.2.80.0000.00817.97
8.2.70.0000.00817.63
8.2.60.0080.00017.92
8.2.50.0040.00418.07
8.2.40.0070.00018.22
8.2.30.0020.00521.30
8.2.20.0000.00717.72
8.2.10.0060.00317.80
8.2.00.0070.00417.68
8.1.280.0090.00625.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0090.00022.27
8.1.230.0090.00320.98
8.1.220.0040.00418.77
8.1.210.0030.00518.91
8.1.200.0030.00617.35
8.1.190.0030.00519.18
8.1.180.0000.00818.10
8.1.170.0040.00418.50
8.1.160.0030.00518.84
8.1.150.0030.00718.49
8.1.140.0050.00217.39
8.1.130.0020.00517.84
8.1.120.0000.00717.32
8.1.110.0000.00917.45
8.1.100.0080.00017.40
8.1.90.0070.00017.46
8.1.80.0000.00717.37
8.1.70.0000.00717.31
8.1.60.0090.00017.62
8.1.50.0070.00017.45
8.1.40.0000.00817.54
8.1.30.0040.00417.65
8.1.20.0030.00517.62
8.1.10.0060.00317.63
8.1.00.0030.00517.40
8.0.300.0110.00019.90
8.0.290.0070.00017.04
8.0.280.0050.00318.27
8.0.270.0000.00717.12
8.0.260.0070.00016.95
8.0.250.0000.00716.94
8.0.240.0000.01017.04
8.0.230.0070.00017.07
8.0.220.0030.00316.86
8.0.210.0000.01016.83
8.0.200.0040.00416.92
8.0.190.0000.00917.04
8.0.180.0040.00417.01
8.0.170.0040.00416.82
8.0.160.0040.00416.99
8.0.150.0040.00416.88
8.0.140.0040.00416.89
8.0.130.0030.00313.48
8.0.120.0050.00316.95
8.0.110.0040.00416.79
8.0.100.0030.00316.98
8.0.90.0080.00016.86
8.0.80.0110.00717.03
8.0.70.0030.00516.98
8.0.60.0000.00916.90
8.0.50.0000.00716.84
8.0.30.0070.01317.20
8.0.20.0120.00917.40
8.0.10.0000.00816.99
8.0.00.0150.00616.76
7.4.330.0060.00016.85
7.4.320.0000.00716.36
7.4.300.0000.00616.63
7.4.290.0070.00016.57
7.4.280.0030.00616.46
7.4.270.0030.00316.63
7.4.260.0060.00013.28
7.4.250.0000.00716.37
7.4.240.0030.00316.53
7.4.230.0000.00716.66
7.4.220.0090.00916.41
7.4.210.0080.00816.55
7.4.200.0040.00416.63
7.4.190.0030.00316.57
7.4.160.0130.00916.59
7.4.150.0190.00617.40
7.4.140.0120.00917.86
7.4.130.0110.00616.57
7.4.120.0060.01116.58
7.4.110.0090.00916.37
7.4.100.0110.00716.60
7.4.90.0150.00916.41
7.4.80.0070.01019.39
7.4.70.0120.00916.75
7.4.60.0060.00916.44
7.4.50.0000.00616.55
7.4.40.0030.01422.77
7.4.30.0100.00716.52
7.4.00.0100.00415.07
7.3.330.0050.00013.20
7.3.320.0070.00713.21
7.3.310.0000.00716.23
7.3.300.0070.00016.23
7.3.290.0110.01016.28
7.3.280.0050.01216.34
7.3.270.0090.00917.40
7.3.260.0120.00718.24
7.3.250.0130.01016.36
7.3.240.0110.00616.44
7.3.230.0080.00816.39
7.3.210.0140.00716.51
7.3.200.0090.00919.39
7.3.190.0040.01816.31
7.3.180.0100.00716.53
7.3.170.0100.00716.36
7.3.160.0130.00316.53
7.3.120.0070.00714.91
7.3.110.0070.00714.70
7.3.100.0040.01214.86
7.3.90.0060.00615.02
7.3.80.0090.00314.57
7.3.70.0030.00614.50
7.3.60.0070.00714.88
7.3.50.0070.00714.91
7.3.40.0040.01214.85
7.3.30.0070.00714.88
7.3.20.0040.01116.64
7.3.10.0080.00616.28
7.3.00.0100.00716.56
7.2.330.0070.01016.86
7.2.320.0060.01116.64
7.2.310.0120.00916.52
7.2.300.0100.00716.80
7.2.290.0100.00816.65
7.2.250.0040.01214.89
7.2.240.0100.01014.82
7.2.230.0000.01014.58
7.2.220.0090.00314.79
7.2.210.0070.00314.69
7.2.200.0090.00315.09
7.2.190.0090.00315.02
7.2.180.0060.00614.84
7.2.170.0000.01514.96
7.2.130.0120.00616.46
7.2.120.0120.00616.57
7.2.110.0120.00916.50
7.2.100.0070.00716.35
7.2.90.0090.00416.23
7.2.80.0090.00316.69
7.2.70.0140.00716.47
7.2.60.0110.00416.86
7.2.50.0040.01116.29
7.2.40.0120.00616.60
7.2.30.0180.00616.64
7.2.20.0100.00516.36
7.2.10.0170.00716.27
7.2.00.0110.00918.01
7.1.330.0080.00815.74
7.1.320.0030.01015.82
7.1.310.0100.00315.57
7.1.300.0070.01015.81
7.1.290.0040.00915.79
7.1.280.0060.00315.88
7.1.270.0060.00315.86
7.1.260.0030.01015.83
7.1.250.0060.00915.60
7.1.200.0060.00615.83
7.1.100.0000.01118.16
7.1.70.0030.01017.07
7.1.60.0070.01319.40
7.1.50.0160.00916.88
7.1.00.0070.03322.35
7.0.200.0090.00416.68
7.0.140.0000.07322.00
7.0.70.0000.08321.90
7.0.60.0030.08721.70
7.0.50.0030.08022.10
7.0.40.0070.08020.04
7.0.30.0070.08020.17
7.0.20.0030.04020.11
7.0.10.0030.04020.07
7.0.00.0000.04320.16
5.6.280.0100.07021.07
5.6.220.0000.05720.61
5.6.210.0070.06720.41
5.6.200.0100.07721.06
5.6.190.0070.07721.04
5.6.180.0000.08020.96
5.6.170.0030.04021.05
5.6.160.0000.04321.09
5.6.150.0030.04721.05
5.6.140.0070.02721.09
5.6.130.0000.04321.07
5.6.120.0000.03720.96
5.6.110.0030.03321.01
5.6.100.0030.04020.98
5.6.90.0030.05320.92
5.6.80.0000.03320.44
5.6.70.0000.04320.42
5.6.60.0030.03020.48
5.6.50.0030.03320.40
5.6.40.0000.04320.41
5.6.30.0030.03020.40
5.6.20.0070.02720.48
5.6.10.0070.02720.31
5.6.00.0030.03020.39
5.5.360.0030.08320.45
5.5.350.0030.08020.37
5.5.340.0030.08020.93
5.5.330.0100.08020.92
5.5.320.0030.08320.93
5.5.310.0030.06720.83
5.5.300.0030.04320.80
5.5.290.0100.03320.92
5.5.280.0000.03320.84
5.5.270.0030.03320.83
5.5.260.0030.05720.87
5.5.250.0000.03320.69
5.5.240.0000.05020.29
5.5.230.0000.03320.27
5.5.220.0000.03320.29
5.5.210.0070.02720.23
5.5.200.0030.03020.27
5.5.190.0030.03720.23
5.5.180.0070.03720.18
5.5.160.0000.03319.99
5.5.150.0000.03320.20
5.5.140.0000.03320.19
5.5.130.0000.03319.99
5.5.120.0030.04020.07
5.5.110.0000.03320.07
5.5.100.0000.03319.93
5.5.90.0000.05720.08
5.5.80.0030.03719.98
5.5.70.0200.06720.09
5.5.60.0130.07020.16
5.5.50.0070.04320.00
5.5.40.0100.07020.11
5.5.30.0030.04020.13
5.5.20.0000.07320.13
5.5.10.0100.06720.01
5.5.00.0070.05020.05
5.4.450.0000.03319.44
5.4.440.0030.03019.53
5.4.430.0000.04019.22
5.4.420.0070.03719.34
5.4.410.0030.03019.23
5.4.400.0000.03019.18
5.4.390.0000.03319.20
5.4.380.0000.03019.05
5.4.370.0030.03719.03
5.4.360.0000.03318.87
5.4.350.0000.03319.14
5.4.340.0000.03319.01
5.4.320.0070.02719.21
5.4.310.0000.03019.07
5.4.300.0070.03319.03
5.4.290.0070.02319.16
5.4.280.0030.04018.88
5.4.270.0000.03719.03
5.4.260.0070.02718.88
5.4.250.0030.05319.02
5.4.240.0030.07319.12
5.4.230.0070.05719.01
5.4.220.0030.04019.01
5.4.210.0000.06319.04
5.4.200.0030.08318.86
5.4.190.0070.06319.11
5.4.180.0000.08019.17
5.4.170.0030.05719.15
5.4.160.0000.07719.18
5.4.150.0000.08718.86
5.4.140.0100.06716.40
5.4.130.0070.07316.49
5.4.120.0070.07016.37
5.4.110.0070.03716.43
5.4.100.0030.04716.53
5.4.90.0000.05716.47
5.4.80.0030.06316.29
5.4.70.0070.06316.37
5.4.60.0030.07316.48
5.4.50.0070.06016.31
5.4.40.0070.07316.41
5.4.30.0100.05316.27
5.4.20.0100.05716.27
5.4.10.0000.05316.36
5.4.00.0030.04315.82
5.3.290.0000.03014.70
5.3.280.0030.07014.59
5.3.270.0000.06014.61
5.3.260.0030.06014.66
5.3.250.0070.05314.59
5.3.240.0070.07314.68
5.3.230.0030.06014.64
5.3.220.0000.07014.63
5.3.210.0030.05314.59
5.3.200.0000.03714.53
5.3.190.0030.07314.61
5.3.180.0100.06714.64
5.3.170.0030.07314.56
5.3.160.0000.07314.57
5.3.150.0030.05314.52
5.3.140.0070.05014.63
5.3.130.0030.07714.64
5.3.120.0100.06014.57
5.3.110.0070.05714.51
5.3.100.0100.06714.11
5.3.90.0030.06714.00
5.3.80.0000.06014.05
5.3.70.0000.07714.09
5.3.60.0030.06713.98
5.3.50.0030.05713.88
5.3.40.0000.06313.93
5.3.30.0000.05313.92
5.3.20.0000.07313.79
5.3.10.0030.06313.73
5.3.00.0000.05013.73
5.2.170.0000.06711.08
5.2.160.0070.05011.05
5.2.150.0030.04011.24
5.2.140.0030.06311.21
5.2.130.0000.06011.16
5.2.120.0070.05711.16
5.2.110.0070.04311.22
5.2.100.0070.04711.16
5.2.90.0030.05011.01
5.2.80.0030.05710.99
5.2.70.0000.05011.17
5.2.60.0000.04311.06
5.2.50.0000.04011.16
5.2.40.0000.04711.02
5.2.30.0030.02711.03
5.2.20.0100.04310.89
5.2.10.0030.05710.96
5.2.00.0070.06010.65
5.1.60.0030.02310.36
5.1.50.0030.02310.36
5.1.40.0030.05010.36
5.1.30.0030.05710.36
5.1.20.0000.06010.41
5.1.10.0000.05710.36
5.1.00.0000.04710.36
5.0.50.0000.05010.36
5.0.40.0000.04010.36
5.0.30.0070.05710.36
5.0.20.0000.04310.36
5.0.10.0000.03310.36
5.0.00.0030.06710.36
4.4.90.0030.03710.36
4.4.80.0030.01710.36
4.4.70.0030.02310.36
4.4.60.0030.03010.36
4.4.50.0030.03310.36
4.4.40.0030.05310.36
4.4.30.0030.03310.36
4.4.20.0030.03010.36
4.4.10.0030.02710.36
4.4.00.0100.04010.36
4.3.110.0000.03010.36
4.3.100.0000.03310.36
4.3.90.0030.02310.36
4.3.80.0000.05010.36
4.3.70.0030.03310.36
4.3.60.0000.03010.36
4.3.50.0000.03310.36
4.3.40.0000.05010.36
4.3.30.0000.03310.36
4.3.20.0030.03010.36
4.3.10.0030.03310.36
4.3.00.0000.03710.36

preferences:
35.12 ms | 401 KiB | 5 Q