3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { private $baz = 1; public static function foo() { echo "foo\n"; } public function bar() { echo "bar\n"; $this->foo(); $this::foo(); self::foo(); static::foo(); parent::foo(); self::baz(); } public function baz() { printf("baz = %d\n", $this->baz); } } $test = new Test; $test->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.0070.01116.75
8.3.50.0120.00316.25
8.3.40.0110.00418.70
8.3.30.0090.00618.73
8.3.20.0020.00520.30
8.3.10.0030.00521.95
8.3.00.0000.00819.56
8.2.180.0070.00716.38
8.2.170.0040.01122.96
8.2.160.0060.00620.39
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0030.00617.50
8.2.110.0100.00020.52
8.2.100.0110.00017.75
8.2.90.0040.00418.95
8.2.80.0000.00817.97
8.2.70.0000.00817.38
8.2.60.0040.00417.80
8.2.50.0080.00418.07
8.2.40.0050.00321.13
8.2.30.0090.00019.59
8.2.20.0000.00817.44
8.2.10.0040.00417.99
8.2.00.0030.00317.96
8.1.270.0120.00020.38
8.1.260.0000.00826.35
8.1.250.0030.00628.09
8.1.240.0060.00323.84
8.1.230.0000.01117.42
8.1.220.0050.00317.74
8.1.210.0030.00518.77
8.1.200.0030.00617.11
8.1.190.0000.00816.88
8.1.180.0050.00318.10
8.1.170.0080.00018.55
8.1.160.0050.00322.17
8.1.150.0030.00618.86
8.1.140.0040.00417.23
8.1.130.0000.00717.61
8.1.120.0070.00017.25
8.1.110.0070.00017.32
8.1.100.0070.00017.34
8.1.90.0000.00717.22
8.1.80.0030.00517.21
8.1.70.0040.00417.29
8.1.60.0030.00717.50
8.1.50.0040.00417.40
8.1.40.0040.00417.27
8.1.30.0040.00417.54
8.1.20.0080.00017.49
8.1.10.0000.00817.32
8.1.00.0040.00417.18
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00718.32
8.0.270.0000.00717.05
8.0.260.0030.00317.03
8.0.250.0040.00416.77
8.0.240.0000.00716.87
8.0.230.0040.00416.83
8.0.220.0030.00316.82
8.0.210.0080.00016.77
8.0.200.0100.00016.77
8.0.190.0040.00416.79
8.0.180.0040.00416.82
8.0.170.0030.00616.88
8.0.160.0030.00516.94
8.0.150.0030.00516.68
8.0.140.0040.00416.74
8.0.130.0060.00013.26
8.0.120.0040.00416.84
8.0.110.0000.00716.75
8.0.100.0030.00516.75
8.0.90.0000.00716.70
8.0.80.0180.00316.85
8.0.70.0070.00016.69
8.0.60.0000.00716.73
8.0.50.0040.00416.86
8.0.30.0070.01316.91
8.0.20.0140.00817.40
8.0.10.0070.00016.74
8.0.00.0090.00916.70
7.4.330.0000.00515.08
7.4.320.0000.00716.52
7.4.300.0170.00016.60
7.4.290.0040.00416.63
7.4.280.0070.00316.50
7.4.270.0030.00316.62
7.4.260.0040.00416.48
7.4.250.0000.00916.43
7.4.240.0040.00416.61
7.4.230.0070.00016.35
7.4.220.0090.00916.55
7.4.210.0080.00616.54
7.4.200.0040.00416.32
7.4.160.0090.00916.52
7.4.150.0170.00717.40
7.4.140.0020.01717.86
7.4.130.0070.01316.44
7.4.120.0110.00816.47
7.4.110.0100.01416.54
7.4.100.0060.01216.55
7.4.90.0050.01416.59
7.4.80.0090.01019.39
7.4.70.0140.00316.50
7.4.60.0070.01016.48
7.4.50.0030.00516.59
7.4.40.0130.00316.47
7.4.30.0070.01016.51
7.4.00.0090.00614.99
7.3.330.0030.00313.23
7.3.320.0030.00313.21
7.3.310.0040.00416.38
7.3.300.0000.00616.38
7.3.290.0000.00716.38
7.3.280.0100.00716.40
7.3.270.0150.00417.40
7.3.260.0090.01316.58
7.3.250.0120.00716.33
7.3.240.0120.00416.41
7.3.230.0030.01316.48
7.3.210.0130.00916.42
7.3.200.0030.01316.31
7.3.190.0090.00916.40
7.3.180.0060.01116.60
7.3.170.0100.01116.57
7.3.160.0090.01216.47
7.3.10.0080.00516.07
7.3.00.0130.00016.48
7.2.330.0100.00716.60
7.2.320.0090.00916.30
7.2.310.0080.00816.59
7.2.300.0100.01016.32
7.2.290.0090.00916.64
7.2.130.0080.00816.34
7.2.120.0030.01216.40
7.2.110.0030.00716.18
7.2.100.0150.00016.70
7.2.90.0150.00616.59
7.2.80.0090.00316.71
7.2.70.0040.01116.58
7.2.60.0070.00516.70
7.2.50.0000.01216.54
7.2.40.0070.00716.29
7.2.30.0120.00816.51
7.2.20.0090.00316.33
7.2.10.0090.00616.71
7.2.00.0020.01217.95
7.1.250.0130.00615.38
7.1.200.0090.00615.73
7.1.100.0060.00318.09
7.1.70.0000.00817.07
7.1.60.0190.00620.03
7.1.50.0000.02416.46
7.1.00.0030.07722.33
7.0.200.0090.00616.38
7.0.60.0030.05319.98
7.0.50.0030.08317.77
7.0.40.0130.08319.96
7.0.30.0130.04320.11
7.0.20.0270.08020.24
7.0.10.0030.08720.15
7.0.00.0070.04720.06
5.6.280.0030.04021.05
5.6.210.0030.07320.48
5.6.200.0030.05718.15
5.6.190.0070.04320.33
5.6.180.3370.04020.58
5.6.170.0130.05320.40
5.6.160.0070.07320.45
5.6.150.0030.03718.25
5.6.140.0000.04018.14
5.6.130.0070.04018.29
5.6.120.0170.05321.00
5.6.110.0070.08721.03
5.6.100.0000.04320.98
5.6.90.0300.06321.13
5.6.80.0070.08020.47
5.6.70.4200.03720.48
5.5.350.0000.04720.41
5.5.340.0030.05017.98
5.5.330.0270.04020.25
5.5.320.3600.04320.52
5.5.310.0270.05020.32
5.5.300.0070.05017.97
5.5.290.0130.07317.92
5.5.280.0100.04020.88
5.5.270.0030.04320.89
5.5.260.0070.08720.86
5.5.250.0130.07020.68
5.5.240.0200.08020.16
5.4.450.0400.05019.34
5.4.440.0270.06719.16
5.4.430.0230.05719.47
5.4.420.0330.04319.47
5.4.410.0270.06319.34
5.4.400.0230.05719.10
5.4.390.0270.05018.98
5.4.380.0170.05719.10
5.4.370.0230.05719.30
5.4.360.0270.05318.87
5.4.350.0170.07019.29
5.4.340.0330.05319.25
5.4.320.0370.06018.87
5.4.310.0270.05019.38
5.4.300.0270.06019.13
5.4.290.0300.05319.05
5.4.280.0300.06719.05
5.4.270.0270.05019.00
5.4.260.0270.05019.12
5.4.250.0230.05719.29
5.4.240.0300.05018.88
5.4.230.0330.04719.36
5.4.220.0400.06019.27
5.4.210.0200.05719.28
5.4.200.0270.05019.00
5.4.190.0270.05019.13
5.4.180.0330.04719.00
5.4.170.0270.04719.24
5.4.160.0230.05719.23
5.4.150.0400.06319.23
5.4.140.0330.06016.36
5.4.130.0330.06016.45
5.4.120.0070.05716.39
5.4.110.0170.05316.19
5.4.100.0170.06016.52
5.4.90.0400.05716.42
5.4.80.0230.04716.61
5.4.70.0070.04016.54
5.4.60.0130.04016.48
5.4.50.0030.05316.51
5.4.40.0170.03316.34
5.4.30.0270.03316.38
5.4.20.0430.05716.49

preferences:
70.68 ms | 400 KiB | 5 Q