3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Main { public function __construct() { Second::test2(); echo(' '); Second::test(); echo(' '); $this->test(); echo(' '); self::test(); echo(' '); } public function test() { echo('test'); } } class Second extends Main { public function test2() { echo('test2'); } } $php = new Main; $obj = new Second; $obj->test2(); echo(' '); $obj->test();

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.00418.55
8.3.50.0130.00522.05
8.3.40.0120.00318.88
8.3.30.0070.01118.62
8.3.20.0080.00020.30
8.3.10.0060.00323.65
8.3.00.0030.00619.13
8.2.180.0040.01116.75
8.2.170.0150.00322.96
8.2.160.0100.00320.53
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00417.38
8.2.120.0080.00026.35
8.2.110.0070.00320.79
8.2.100.0040.00817.91
8.2.90.0000.00917.92
8.2.80.0030.00617.97
8.2.70.0080.00017.75
8.2.60.0070.00017.93
8.2.50.0050.00318.07
8.2.40.0000.00819.28
8.2.30.0000.00720.61
8.2.20.0040.00417.69
8.2.10.0090.00017.88
8.2.00.0040.00418.05
8.1.280.0000.01525.92
8.1.270.0080.00023.99
8.1.260.0060.00328.09
8.1.250.0070.00028.09
8.1.240.0060.00322.47
8.1.230.0030.00820.98
8.1.220.0080.00017.74
8.1.210.0040.00418.97
8.1.200.0000.01017.35
8.1.190.0080.00017.10
8.1.180.0040.00418.10
8.1.170.0000.00718.66
8.1.160.0000.00721.96
8.1.150.0070.00018.76
8.1.140.0050.00319.47
8.1.130.0070.00017.58
8.1.120.0030.00317.34
8.1.110.0000.01017.19
8.1.100.0040.00417.33
8.1.90.0070.00017.23
8.1.80.0040.00417.38
8.1.70.0000.00717.19
8.1.60.0030.00517.41
8.1.50.0060.00317.46
8.1.40.0060.00317.38
8.1.30.0000.00817.49
8.1.20.0000.00717.52
8.1.10.0000.00817.46
8.1.00.0000.00817.43
8.0.300.0040.00419.86
8.0.290.0040.00416.63
8.0.280.0070.00018.30
8.0.270.0040.00417.12
8.0.260.0030.00318.26
8.0.250.0080.00016.86
8.0.240.0050.00316.85
8.0.230.0000.00716.91
8.0.220.0040.00416.80
8.0.210.0000.00716.86
8.0.200.0000.00616.85
8.0.190.0040.00416.84
8.0.180.0000.00716.93
8.0.170.0040.00416.79
8.0.160.0070.00016.79
8.0.150.0040.00416.87
8.0.140.0000.00816.83
8.0.130.0000.00613.42
8.0.120.0080.00016.90
8.0.110.0050.00216.95
8.0.100.0000.00816.91
8.0.90.0000.00816.78
8.0.80.0110.01016.94
8.0.70.0000.00816.87
8.0.60.0000.00716.96
8.0.50.0040.00416.96
8.0.30.0110.00716.92
8.0.20.0140.00717.40
8.0.10.0040.00417.07
8.0.00.0100.00716.71
7.4.330.0050.00016.77
7.4.320.0030.00316.44
7.4.300.0000.00716.66
7.4.290.0070.00016.50
7.4.280.0030.00616.50
7.4.270.0060.00016.61
7.4.260.0030.00316.46
7.4.250.0030.00516.61
7.4.240.0030.00416.59
7.4.230.0030.00316.55
7.4.220.0060.01216.55
7.4.210.0060.01016.61
7.4.200.0000.00716.66
7.4.160.0120.00416.36
7.4.150.0090.00917.40
7.4.140.0060.01417.86
7.4.130.0100.00716.63
7.4.120.0070.01216.73
7.4.110.0090.00916.59
7.4.100.0100.00716.51
7.4.90.0070.01116.49
7.4.80.0100.01019.39
7.4.70.0070.01016.34
7.4.60.0070.01016.66
7.4.50.0110.00416.50
7.4.40.0030.01316.71
7.4.30.0080.00816.63
7.4.00.0020.01114.68
7.3.330.0050.00013.24
7.3.320.0030.00313.13
7.3.310.0030.00316.34
7.3.300.0000.00716.19
7.3.290.0070.01116.30
7.3.280.0140.00516.31
7.3.270.0100.00717.40
7.3.260.0080.00816.52
7.3.250.0120.00816.39
7.3.240.0100.00716.41
7.3.230.0140.00316.39
7.3.210.0130.00316.50
7.3.200.0120.00616.28
7.3.190.0130.00716.39
7.3.180.0170.00016.32
7.3.170.0070.01116.38
7.3.160.0080.00816.37
7.3.120.0090.00314.51
7.3.110.0090.00914.57
7.3.100.0100.00314.85
7.3.90.0120.00315.00
7.3.80.0070.00714.87
7.3.70.0110.00414.81
7.3.60.0120.00614.42
7.3.50.0030.01014.84
7.3.40.0030.00714.76
7.3.30.0030.01014.75
7.3.20.0110.00416.65
7.3.10.0070.00716.33
7.3.00.0060.00616.34
7.2.330.0070.01016.43
7.2.320.0090.00816.49
7.2.310.0110.00916.56
7.2.300.0100.01316.57
7.2.290.0190.00016.71
7.2.250.0070.01115.14
7.2.240.0000.01514.98
7.2.230.0030.01314.95
7.2.220.0110.00014.99
7.2.210.0040.01115.19
7.2.200.0000.01514.59
7.2.190.0030.00714.71
7.2.180.0040.01214.99
7.2.170.0080.00615.13
7.2.60.0040.01116.96
7.2.00.0030.01219.61
7.1.330.0030.01015.47
7.1.320.0060.00615.71
7.1.310.0090.00615.71
7.1.300.0080.00815.82
7.1.290.0000.01115.62
7.1.280.0100.00315.42
7.1.270.0030.01315.33
7.1.260.0070.01015.60
7.1.200.0030.00615.63
7.1.100.0070.00418.20
7.1.70.0050.00517.06
7.1.60.0160.00619.36
7.1.50.0060.01516.70
7.1.00.0000.08022.33
7.0.200.0000.00816.40
7.0.60.0130.04019.98
7.0.50.0100.08017.84
7.0.40.0000.09020.24
7.0.30.0330.06320.27
7.0.20.0400.06320.41
7.0.10.0070.05320.20
7.0.00.0100.07320.22
5.6.280.0070.03721.05
5.6.210.0100.03320.77
5.6.200.0070.04018.18
5.6.190.0070.08020.52
5.6.180.0370.05320.61
5.6.170.0270.03720.56
5.6.160.0000.08720.44
5.6.150.0070.08318.19
5.6.140.0030.08318.18
5.6.130.0030.06018.29
5.6.120.0070.04020.90
5.6.110.0030.04321.09
5.6.100.0030.06720.98
5.6.90.0070.07021.01
5.6.80.0100.07720.45
5.5.350.0030.08020.32
5.5.340.0030.08317.95
5.5.330.0130.08020.44
5.5.320.0070.04320.51
5.5.310.0170.04720.24
5.5.300.0070.03317.92
5.5.290.0270.03717.97
5.5.280.0100.03720.80
5.5.270.0130.07320.96
5.5.260.0130.07720.87
5.5.250.0130.07020.68
5.5.240.0370.05720.19

preferences:
68.95 ms | 401 KiB | 5 Q