3v4l.org

run code in 300+ PHP versions simultaneously
<?php class OtherClass extends MyClass { public static $my_static = 'static var'; public static function doubleColon() { echo parent::CONST_VALUE . "\n"; echo self::$my_static . "\n"; } } $classname = 'OtherClass'; echo $classname::doubleColon(); // As of PHP 5.3.0 OtherClass::doubleColon();

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.40.0040.01118.82
8.3.30.0100.01018.65
8.3.20.0070.00020.29
8.3.10.0070.00023.56
8.3.00.0140.00423.66
8.2.170.0130.00418.88
8.2.160.0100.00722.96
8.2.150.0000.00824.18
8.2.140.0070.01324.66
8.2.130.0040.00419.29
8.2.120.0120.00326.35
8.2.110.0030.00622.14
8.2.100.0040.00817.93
8.2.90.0040.00419.00
8.2.80.0080.00017.97
8.2.70.0040.00417.63
8.2.60.0000.00817.93
8.2.50.0050.00318.07
8.2.40.0000.00822.32
8.2.30.0040.00420.67
8.2.20.0040.00417.62
8.2.10.0040.00418.07
8.2.00.0000.00718.05
8.1.270.0090.00022.14
8.1.260.0090.00028.09
8.1.250.0040.00428.09
8.1.240.0060.00323.92
8.1.230.0040.00719.04
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0060.00317.35
8.1.190.0040.00417.23
8.1.180.0030.00518.10
8.1.170.0030.00618.51
8.1.160.0000.00720.63
8.1.150.0000.00718.84
8.1.140.0030.00519.48
8.1.130.0030.00317.56
8.1.120.0000.00717.34
8.1.110.0000.00717.30
8.1.100.0000.00717.34
8.1.90.0030.00417.30
8.1.80.0040.00417.40
8.1.70.0070.00017.38
8.1.60.0000.00817.57
8.1.50.0090.00017.37
8.1.40.0000.00817.45
8.1.30.0050.00317.63
8.1.20.0000.00717.59
8.1.10.0000.00717.50
8.1.00.0000.00817.42
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0030.00318.58
8.0.270.0070.00017.13
8.0.260.0030.00517.13
8.0.250.0070.00016.88
8.0.240.0030.00516.92
8.0.230.0000.00717.03
8.0.220.0000.00716.95
8.0.210.0040.00416.98
8.0.200.0000.00616.97
8.0.190.0050.00316.89
8.0.180.0050.00517.00
8.0.170.0040.00417.03
8.0.160.0040.00416.96
8.0.150.0040.00416.80
8.0.140.0000.00716.90
8.0.130.0000.00613.36
8.0.120.0080.00016.95
8.0.110.0000.00816.89
8.0.100.0000.00816.82
8.0.90.0030.00316.97
8.0.80.0090.00616.95
8.0.70.0020.00516.77
8.0.60.0080.00016.84
8.0.50.0000.00916.99
8.0.30.0110.00817.08
8.0.20.0110.00917.40
8.0.10.0000.00716.86
8.0.00.0120.00816.75
7.4.330.0040.00016.71
7.4.320.0000.00616.44
7.4.300.0040.00416.48
7.4.290.0070.00016.46
7.4.280.0040.00416.39
7.4.270.0080.00016.39
7.4.260.0030.00316.45
7.4.250.0040.00416.50
7.4.240.0030.00416.47
7.4.230.0030.00316.47
7.4.220.0130.00616.56
7.4.210.0050.00916.45
7.4.200.0000.00816.52
7.4.160.0060.01016.45
7.4.150.0070.01017.40
7.4.140.0090.01517.86
7.4.130.0060.01316.57
7.4.120.0030.01416.51
7.4.110.0070.01016.64
7.4.100.0060.01616.41
7.4.90.0120.00616.41
7.4.80.0030.01319.39
7.4.70.0100.00716.54
7.4.60.0080.00816.63
7.4.50.0120.00316.20
7.4.40.0110.00616.51
7.4.30.0070.01016.50
7.4.00.0080.00314.89
7.3.330.0030.00313.15
7.3.320.0050.00013.08
7.3.310.0070.00016.17
7.3.300.0030.00316.34
7.3.290.0000.00716.25
7.3.280.0110.00516.26
7.3.270.0130.01017.40
7.3.260.0150.00316.38
7.3.250.0090.00716.36
7.3.240.0100.00816.43
7.3.230.0060.01016.39
7.3.210.0060.01116.36
7.3.200.0100.01019.39
7.3.190.0090.00916.43
7.3.180.0130.00316.55
7.3.170.0030.01416.31
7.3.160.0030.01416.30
7.2.330.0070.01016.50
7.2.320.0190.00616.54
7.2.310.0060.00916.26
7.2.300.0120.00716.49
7.2.290.0130.00316.49
7.2.60.0000.01516.57
7.2.00.0000.01319.27
7.1.200.0040.00815.29
7.1.100.0080.00318.00
7.1.70.0000.01316.96
7.1.60.0070.01719.20
7.1.50.0040.01516.49
7.1.00.0070.07322.31
7.0.200.0130.00714.75
7.0.60.0000.03321.72
7.0.50.0200.07017.94
7.0.40.0070.06720.27
7.0.30.0370.07320.21
7.0.20.0230.05020.07
7.0.10.0100.03720.06
7.0.00.0070.04020.29
5.6.280.0030.03321.12
5.6.210.0100.05720.75
5.6.200.0030.08318.18
5.6.190.0000.09320.39
5.6.180.0230.08020.55
5.6.170.0270.07020.43
5.6.160.0070.04320.54
5.6.150.0000.06018.19
5.6.140.0030.07718.20
5.6.130.0130.08018.19
5.6.120.0030.04320.99
5.6.110.0030.05721.02
5.6.100.0130.07321.09
5.6.90.0070.06721.16
5.6.80.0100.07720.39
5.5.350.0200.06320.36
5.5.340.0130.06018.02
5.5.330.0100.06720.29
5.5.320.0600.06720.34
5.5.310.0330.07020.21
5.5.300.0100.07318.10
5.5.290.0070.07017.99
5.5.280.0000.06320.88
5.5.270.0070.09020.96
5.5.260.0100.03720.77
5.5.250.0170.06720.66
5.5.240.0230.06320.19

preferences:
46.51 ms | 400 KiB | 5 Q