3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public $baz = 'baz'; public static $qux = 'qux'; public static function foobar() { echo 'foobar' . PHP_EOL; } public function foo() { echo 'foo' . PHP_EOL; return $this; } public function bar() { $this::foo()->foo()::foo(); $this::foobar(); $this->foo()::foo(); $this->foobar(); } } $a = new A(); $a->bar();

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.0090.00916.38
8.3.50.0060.00920.08
8.3.40.0040.01118.84
8.3.30.0070.00718.67
8.3.20.0000.00821.90
8.3.10.0080.00023.66
8.3.00.0050.00323.71
8.2.180.0110.01116.75
8.2.170.0110.00422.96
8.2.160.0070.00720.44
8.2.150.0000.00824.18
8.2.140.0030.00624.66
8.2.130.0040.00418.09
8.2.120.0070.00026.35
8.2.110.0060.00321.02
8.2.100.0090.00317.66
8.2.90.0040.00417.97
8.2.80.0000.00918.03
8.2.70.0000.00917.50
8.2.60.0030.00517.63
8.2.50.0060.00317.61
8.2.40.0050.00317.93
8.2.30.0000.00819.28
8.2.20.0000.00818.08
8.2.10.0050.00220.63
8.2.00.0040.00419.34
8.1.280.0120.00925.92
8.1.270.0070.00719.00
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0050.00522.48
8.1.230.0110.00021.10
8.1.220.0080.00017.74
8.1.210.0090.00018.84
8.1.200.0030.00617.23
8.1.190.0080.00017.22
8.1.180.0060.00318.10
8.1.170.0000.00717.62
8.1.160.0040.00418.82
8.1.150.0000.00718.83
8.1.140.0040.00422.13
8.1.130.0070.00020.07
8.1.120.0040.00417.30
8.1.110.0040.00417.37
8.1.100.0070.00017.38
8.1.90.0000.00717.38
8.1.80.0030.00517.29
8.1.70.0040.00417.42
8.1.60.0060.00317.54
8.1.50.0090.00017.52
8.1.40.0050.00217.53
8.1.30.0060.00317.50
8.1.20.0050.00317.71
8.1.10.0000.00717.59
8.1.00.0090.00017.61
8.0.300.0000.00820.04
8.0.290.0000.00716.63
8.0.280.0070.00018.34
8.0.270.0000.00717.30
8.0.260.0000.00618.36
8.0.250.0030.00316.80
8.0.240.0000.00816.81
8.0.230.0030.00316.80
8.0.220.0030.00616.85
8.0.210.0070.00016.84
8.0.200.0000.00616.79
8.0.190.0080.00016.86
8.0.180.0050.00316.76
8.0.170.0040.00416.86
8.0.160.0030.00316.86
8.0.150.0050.00216.76
8.0.140.0080.00016.77
8.0.130.0030.00313.32
8.0.120.0000.00716.78
8.0.110.0000.00716.84
8.0.100.0030.00316.70
8.0.90.0000.00816.75
8.0.80.0100.00616.88
8.0.70.0000.00816.70
8.0.60.0000.00716.76
8.0.50.0040.00416.77
8.0.30.0070.01117.10
8.0.20.0130.00717.40
8.0.10.0090.00016.82
8.0.00.0050.01216.84
7.4.330.0020.00216.84
7.4.320.0000.00616.60
7.4.300.0040.00416.52
7.4.290.0050.00316.60
7.4.280.0040.00416.59
7.4.270.0030.00316.45
7.4.260.0000.00716.56
7.4.250.0090.00016.48
7.4.240.0000.00816.50
7.4.230.0070.00016.61
7.4.220.0040.00416.42
7.4.210.0080.00916.60
7.4.200.0000.00716.58
7.4.160.0070.00816.49
7.4.140.0090.01117.86
7.4.130.0100.01416.57
7.4.120.0100.01016.38
7.4.110.0030.01416.65
7.4.100.0060.01316.34
7.4.90.0120.00616.38
7.4.80.0070.01319.39
7.4.70.0090.00616.44
7.4.60.0140.00816.64
7.4.50.0090.00616.61
7.4.40.0070.01016.43
7.4.00.0090.00914.88
7.3.330.0020.00213.31
7.3.320.0050.00013.19
7.3.310.0030.00316.25
7.3.300.0060.00016.11
7.3.290.0030.00316.25
7.3.280.0090.00616.24
7.3.260.0110.00716.29
7.3.240.0090.00716.27
7.3.230.0070.01016.29
7.3.210.0110.01116.28
7.3.200.0040.01216.44
7.3.190.0150.00616.31
7.3.180.0040.01116.51
7.3.170.0090.01216.29
7.3.160.0120.00416.38
7.3.10.0030.01116.50
7.3.00.0230.00515.90
7.2.330.0070.01116.41
7.2.320.0130.00316.34
7.2.310.0170.00716.33
7.2.300.0120.00916.80
7.2.290.0100.00716.86
7.2.130.0090.00816.34
7.2.120.0070.00716.23
7.2.110.0070.00816.25
7.2.100.0100.00616.23
7.2.90.0080.00816.17
7.2.80.0070.00816.11
7.2.70.0060.00916.38
7.2.60.0180.00916.39
7.2.50.0110.01016.48
7.2.40.0370.00816.48
7.2.30.0270.00816.30
7.2.20.0050.00916.40
7.2.10.0150.00616.42
7.2.00.0280.00616.32
7.1.250.0100.00515.22
7.0.330.0090.00614.52
5.6.380.0060.00613.86

preferences:
74.03 ms | 401 KiB | 5 Q