3v4l.org

run code in 300+ PHP versions simultaneously
<?php class CI_Controller { public function __construct() { echo "CI_Controller constructor\n"; } } class Enforcement extends CI_Controller { public function __construct() { echo "Enforcement constructor\n"; parent::__construct(); $this->_validate(); } private static function _validate() { echo "validated\n"; } } new Enforcement;

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.00718.43
8.3.50.0080.01022.05
8.3.40.0180.00318.77
8.3.30.0130.00318.67
8.3.20.0080.00020.29
8.3.10.0070.00021.75
8.3.00.0040.00419.38
8.2.180.0100.01016.50
8.2.170.0030.01622.96
8.2.160.0100.00319.24
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00219.66
8.2.110.0050.00522.33
8.2.100.0110.00019.38
8.2.90.0040.00417.63
8.2.80.0090.00018.69
8.2.70.0050.00317.63
8.2.60.0040.00417.38
8.2.50.0040.00418.10
8.2.40.0000.00820.60
8.2.30.0000.00819.00
8.2.20.0070.00017.82
8.2.10.0070.00018.05
8.2.00.0030.00618.12
8.1.280.0000.01625.92
8.1.270.0040.00423.95
8.1.260.0030.01026.35
8.1.250.0000.00828.09
8.1.240.0060.00323.96
8.1.230.0040.00820.97
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0050.00317.11
8.1.190.0000.00817.10
8.1.180.0040.00418.10
8.1.170.0000.00818.54
8.1.160.0040.00418.63
8.1.150.0000.00720.05
8.1.140.0070.00019.36
8.1.130.0030.00318.95
8.1.120.0040.00417.37
8.1.110.0030.00517.32
8.1.100.0040.00417.27
8.1.90.0040.00417.34
8.1.80.0070.00017.23
8.1.70.0060.00017.34
8.1.60.0000.00717.37
8.1.50.0000.00717.33
8.1.40.0040.00417.34
8.1.30.0040.00417.58
8.1.20.0040.00417.49
8.1.10.0020.00517.55
8.1.00.0030.00517.31
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0070.00018.48
8.0.270.0000.00716.72
8.0.260.0040.00419.00
8.0.250.0060.00016.77
8.0.240.0000.00716.80
8.0.230.0080.00016.89
8.0.220.0070.00016.78
8.0.210.0000.00716.76
8.0.200.0030.00316.84
8.0.190.0040.00416.77
8.0.180.0030.00516.75
8.0.170.0050.00316.81
8.0.160.0030.00516.89
8.0.150.0050.00216.72
8.0.140.0000.00716.77
8.0.130.0030.00313.20
8.0.120.0100.00016.62
8.0.110.0030.00316.74
8.0.100.0030.00516.75
8.0.90.0050.00316.66
8.0.80.0030.01416.70
8.0.70.0030.00416.80
8.0.60.0000.00716.70
8.0.50.0000.00716.63
8.0.30.0120.00917.04
8.0.20.0120.00717.40
8.0.10.0040.00416.82
8.0.00.0160.00616.89
7.4.330.0000.00615.55
7.4.320.0070.00016.39
7.4.300.0030.00316.54
7.4.290.0000.00816.48
7.4.280.0040.00416.44
7.4.270.0000.00716.43
7.4.260.0000.00916.45
7.4.250.0040.00416.40
7.4.240.0000.00716.45
7.4.230.0000.00716.18
7.4.220.0110.00616.48
7.4.210.0050.01316.42
7.4.200.0030.00516.46
7.4.160.0090.00716.50
7.4.150.0040.01417.40
7.4.140.0100.01017.86
7.4.130.0120.01316.57
7.4.120.0160.00516.44
7.4.110.0090.00916.49
7.4.100.0110.01116.31
7.4.90.0120.00616.36
7.4.80.0100.00719.39
7.4.70.0090.01416.50
7.4.60.0060.01016.52
7.4.50.0000.01316.29
7.4.40.0120.00416.43
7.4.30.0030.01316.46
7.4.00.0080.00814.80
7.3.330.0000.00513.23
7.3.320.0000.00613.16
7.3.310.0040.00416.24
7.3.300.0000.00616.24
7.3.290.0030.00316.24
7.3.280.0090.00816.23
7.3.270.0180.00717.40
7.3.260.0150.00616.36
7.3.240.0100.00716.23
7.3.230.0100.00716.45
7.3.210.0100.00716.22
7.3.200.0100.00716.53
7.3.190.0170.00016.40
7.3.180.0120.00316.29
7.3.170.0070.01016.19
7.3.160.0120.00916.25
7.2.330.0030.01316.46
7.2.320.0090.00916.54
7.2.310.0090.00616.58
7.2.300.0130.01016.39
7.2.290.0130.00316.23
7.2.60.0100.01016.64
7.1.200.0000.01115.36
7.1.70.0030.01317.13
7.1.60.0040.00817.16
7.1.40.1070.01332.43
7.1.30.0670.01334.02
7.1.20.0130.01034.29
7.1.10.0070.01016.34
7.1.00.0700.01314.48
7.0.200.0000.01316.65
7.0.180.0630.01014.27
7.0.170.0000.01016.00
7.0.160.0000.01016.04
7.0.150.0070.01016.00
7.0.140.0900.00714.30
7.0.130.0500.01014.46
7.0.120.0770.01314.50
7.0.110.0030.00716.14
7.0.100.0570.01016.16
7.0.90.0000.01016.26
7.0.80.0030.01316.09
7.0.70.1000.00716.02
7.0.60.0070.00715.89
7.0.50.0000.01016.01
7.0.40.0030.01016.18
7.0.30.0070.00716.21
7.0.20.0000.01716.10
7.0.10.0030.01316.12
7.0.00.0070.01016.19

preferences:
55.16 ms | 401 KiB | 5 Q