3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private $b; static private function a() { return $b; } function method() { return A::a(); } } $a = new A(); var_dump($a->method());

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.70.0110.00416.75
8.3.60.0070.00718.55
8.3.50.0100.01122.05
8.3.40.0090.00618.67
8.3.30.0120.00318.80
8.3.20.0040.00420.33
8.3.10.0200.00023.53
8.3.00.0000.00819.07
8.2.190.0140.00716.58
8.2.180.0070.00716.34
8.2.170.0070.00722.96
8.2.160.0070.01322.30
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0030.00519.26
8.2.110.0070.00322.12
8.2.100.0030.00618.79
8.1.280.0100.00725.92
8.1.270.0060.00318.86
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00618.62
8.1.230.0060.00318.59
5.4.390.0270.05718.62
5.4.380.0300.05318.61
5.4.370.0270.05318.72
5.4.360.0300.05018.79
5.4.350.0200.06018.73
5.4.340.0330.04718.46
5.4.320.0500.04018.59
5.4.310.0270.05318.76
5.4.300.0230.05318.63
5.4.290.0170.06718.82
5.4.280.0270.05318.61
5.4.270.0300.05318.73
5.4.260.0270.05318.64
5.4.250.0230.05718.74
5.4.240.0300.05018.73
5.4.230.0200.06018.60
5.4.220.0270.05718.55
5.4.210.0370.04318.55
5.4.200.0300.04716.60
5.4.190.0170.05718.77
5.4.180.0270.06018.60
5.4.170.0200.06018.71
5.4.160.0270.05718.45
5.4.150.0330.04318.72
5.4.140.0330.04316.25
5.4.130.0230.05316.33
5.4.120.0370.04716.43
5.4.110.0200.05016.29
5.4.100.0130.06316.28
5.4.90.0270.06716.27
5.4.80.0230.04716.27
5.4.70.0330.04016.25
5.4.60.0370.04716.27
5.4.50.0330.05016.25
5.4.40.0330.04716.23
5.4.30.0330.04716.29
5.4.20.0230.05016.26
5.4.10.0200.05716.24
5.4.00.0300.04315.68
5.3.290.0200.06314.66
5.3.280.0300.05014.71
5.3.270.0370.04314.63
5.3.260.0270.05314.64
5.3.250.0230.05314.79
5.3.240.0370.05014.66
5.3.230.0300.06014.76
5.3.220.0230.05014.75
5.3.210.0300.07314.77
5.3.200.0330.07014.70
5.3.190.0330.04714.73
5.3.180.0330.04314.61
5.3.170.0370.05714.54
5.3.160.0270.04714.62
5.3.150.0270.05314.61
5.3.140.0270.05314.68
5.3.130.0230.05714.67
5.3.120.0230.05314.65
5.3.110.0170.06014.77
5.3.100.0130.06014.22
5.3.90.0230.05714.15
5.3.80.0300.04714.04
5.3.70.0270.05314.02
5.3.60.0170.06014.22
5.3.50.0330.04313.99
5.3.40.0330.04713.99
5.3.30.0270.05314.02
5.3.20.0170.06013.70
5.3.10.0300.04313.64
5.3.00.0270.05013.74
5.2.170.0200.04311.18
5.2.160.0130.04711.15
5.2.150.0300.03711.35
5.2.140.0230.05011.27
5.2.130.0300.03311.16
5.2.120.0170.04311.08
5.2.110.0170.05011.09
5.2.100.0330.03311.20
5.2.90.0170.04711.08
5.2.80.0170.04311.30
5.2.70.0230.04011.09
5.2.60.0200.04011.08
5.2.50.0230.03711.09
5.2.40.0200.04311.05
5.2.30.0200.04011.19
5.2.20.0130.04011.02
5.2.10.0170.03710.86
5.2.00.0100.04310.92
5.1.60.0200.02710.04
5.1.50.0100.03710.19
5.1.40.0130.03310.10
5.1.30.0170.03310.37
5.1.20.0200.04710.49
5.1.10.0230.04310.15
5.1.00.0130.05310.07
5.0.50.0100.0278.57
5.0.40.0100.0278.46
5.0.30.0100.0408.31
5.0.20.0130.0238.31
5.0.10.0130.0238.30
5.0.00.0100.0408.20
4.4.90.0030.0276.80
4.4.80.0130.0176.80
4.4.70.0070.0236.80
4.4.60.0100.0206.80
4.4.50.0100.0206.80
4.4.40.0030.0376.80
4.4.30.0130.0176.80
4.4.20.0070.0236.80
4.4.10.0130.0176.80
4.4.00.0100.0306.80
4.3.110.0030.0276.80
4.3.100.0100.0176.80
4.3.90.0100.0276.80
4.3.80.0100.0376.80
4.3.70.0130.0206.80
4.3.60.0130.0206.80
4.3.50.0000.0306.80
4.3.40.0070.0336.80
4.3.30.0000.0276.80
4.3.20.0030.0276.80
4.3.10.0000.0276.80
4.3.00.0000.0237.18

preferences:
16.8 ms | 401 KiB | 5 Q