3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(0); class A { public function foo() { self::bar(); } public function bar() { echo "A::bar"; } } class B { public function something() { A::foo(); } public function bar() { echo "B::bar"; } } $b = new B; $b->something();

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.0120.00918.55
8.3.50.0100.01021.19
8.3.40.0180.00018.84
8.3.30.0110.00418.86
8.3.20.0040.00420.30
8.3.10.0000.00721.73
8.3.00.0080.00018.04
8.2.180.0110.00718.19
8.2.170.0110.00422.96
8.2.160.0110.00320.56
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00017.50
8.2.110.0050.00520.99
8.2.100.0090.00617.84
8.2.90.0080.00017.63
8.2.80.0050.00318.91
8.2.70.0000.00817.38
8.2.60.0080.00017.78
8.2.50.0050.00318.07
8.2.40.0040.00419.31
8.2.30.0030.00520.65
8.2.20.0080.00017.61
8.2.10.0000.00717.95
8.2.00.0040.00417.90
8.1.280.0170.00325.92
8.1.270.0050.00322.15
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0060.00321.27
8.1.230.0030.00818.98
8.1.220.0030.00617.74
8.1.210.0080.00018.77
8.1.200.0090.00317.47
8.1.190.0030.00617.35
8.1.180.0080.00018.10
8.1.170.0080.00318.59
8.1.160.0050.00221.94
8.1.150.0040.00418.84
8.1.140.0050.00317.27
8.1.130.0080.00017.64
8.1.120.0000.00717.31
8.1.110.0040.00417.46
8.1.100.0000.00817.26
8.1.90.0060.00417.45
8.1.80.0050.00317.37
8.1.70.0030.00317.42
8.1.60.0000.00817.57
8.1.50.0070.00017.54
8.1.40.0040.00417.43
8.1.30.0040.00417.49
8.1.20.0040.00417.68
8.1.10.0040.00417.58
8.1.00.0000.00917.44
8.0.300.0050.00218.77
8.0.290.0040.00416.63
8.0.280.0030.00318.39
8.0.270.0080.00017.19
8.0.260.0040.00417.24
8.0.250.0000.00716.98
8.0.240.0030.00316.96
8.0.230.0070.00016.89
8.0.220.0030.00516.91
8.0.210.0040.00416.89
8.0.200.0030.00316.95
8.0.190.0060.00316.98
8.0.180.0040.00416.93
8.0.170.0040.00416.90
8.0.160.0000.00716.82
8.0.150.0040.00416.86
8.0.140.0040.00416.84
8.0.130.0030.00313.26
8.0.120.0000.00816.82
8.0.110.0070.00016.87
8.0.100.0030.00316.79
8.0.90.0000.00816.92
8.0.80.0070.01116.90
8.0.70.0070.00016.77
8.0.60.0040.00416.77
8.0.50.0000.00716.83
8.0.30.0100.00917.22
8.0.20.0140.00917.40
8.0.10.0030.00316.98
8.0.00.0070.01116.89
7.4.330.0000.00515.09
7.4.320.0000.00716.43
7.4.300.0030.00316.60
7.4.290.0040.00416.43
7.4.280.0030.00616.50
7.4.270.0000.00616.59
7.4.260.0030.00316.59
7.4.250.0030.00316.61
7.4.240.0020.00516.57
7.4.230.0070.00016.42
7.4.220.0170.01016.58
7.4.210.0070.01016.47
7.4.200.0030.00316.42
7.4.160.0170.00016.58
7.4.150.0070.01017.40
7.4.140.0110.01017.86
7.4.130.0070.01016.55
7.4.120.0090.00916.42
7.4.110.0110.01116.43
7.4.100.0070.01016.50
7.4.90.0100.00716.39
7.4.80.0170.00719.39
7.4.70.0130.00916.57
7.4.60.0070.01116.47
7.4.50.0040.00416.35
7.4.40.0100.00616.45
7.4.30.0100.01016.36
7.4.00.0090.00815.03
7.3.330.0050.00313.39
7.3.320.0050.00013.29
7.3.310.0000.00616.25
7.3.300.0030.00316.29
7.3.290.0110.00416.32
7.3.280.0070.00916.32
7.3.270.0070.01017.40
7.3.260.0180.00716.60
7.3.250.0140.00416.41
7.3.240.0030.01416.43
7.3.230.0110.00716.45
7.3.210.0090.01416.46
7.3.200.0060.01016.36
7.3.190.0130.00616.33
7.3.180.0060.00916.30
7.3.170.0080.00816.46
7.3.160.0130.00316.52
7.3.120.0070.01114.74
7.3.110.0070.01014.57
7.3.100.0000.01414.73
7.3.90.0030.01314.64
7.3.80.0080.00814.36
7.3.70.0060.00914.64
7.3.60.0090.00314.77
7.3.50.0040.00814.70
7.3.40.0040.01114.83
7.3.30.0000.01414.63
7.3.20.0030.00716.53
7.3.10.0100.00316.47
7.3.00.0030.01316.61
7.2.330.0070.01016.54
7.2.320.0130.00716.62
7.2.310.0120.00416.38
7.2.300.0030.01316.63
7.2.290.0130.00316.75
7.2.250.0060.01314.57
7.2.240.0100.01014.84
7.2.230.0130.00614.68
7.2.220.0060.00915.15
7.2.210.0070.00714.43
7.2.200.0090.00614.89
7.2.190.0100.00314.72
7.2.180.0110.00714.64
7.2.170.0100.00314.85
7.1.330.0030.01015.54
7.1.320.0100.00315.43
7.1.310.0000.00915.41
7.1.300.0130.00015.66
7.1.290.0040.01115.63
7.1.280.0100.00315.38
7.1.270.0140.00015.30
7.1.260.0070.00715.47
7.1.70.0030.00517.09
7.1.60.0000.01219.27
7.1.50.0170.00734.83
7.1.00.0000.08022.43
7.0.200.0000.01016.77
7.0.60.0100.08019.98
7.0.50.0000.04317.91
7.0.40.0130.07720.04
7.0.30.0230.04020.23
7.0.20.0270.07020.10
7.0.10.0100.03720.09
7.0.00.0070.07720.25
5.6.280.0030.06720.91
5.6.210.0100.06720.68
5.6.200.0070.08318.29
5.6.190.0070.08320.57
5.6.180.0300.04020.63
5.6.170.0330.08020.55
5.6.160.0070.05020.47
5.6.150.0070.06718.18
5.6.140.0000.04718.17
5.6.130.0000.04718.15
5.6.120.0130.08021.12
5.6.110.0130.07320.99
5.6.100.0030.04721.11
5.6.90.0070.04321.13
5.6.80.0030.06320.54
5.5.350.0000.07320.39
5.5.340.0100.05317.97
5.5.330.0070.06020.21
5.5.320.0200.05020.34
5.5.310.0330.06020.32
5.5.300.0070.05017.98
5.5.290.0030.08317.98
5.5.280.0030.08020.80
5.5.270.0070.04020.84
5.5.260.0000.05320.87
5.5.250.0030.04020.79
5.5.240.0200.07720.05
5.4.450.0200.06019.63
5.4.440.0370.06319.34
5.4.430.0270.05719.70
5.4.420.0170.06719.58
5.4.410.0170.06719.40
5.4.400.0330.05019.14
5.4.390.0300.06318.98
5.4.380.0370.05719.29
5.4.370.0300.08318.87
5.4.360.0230.07719.14
5.4.350.0330.06318.89
5.4.340.0170.07319.30
5.4.320.0100.06018.98
5.4.310.0270.06719.06
5.4.300.0300.07019.23
5.4.290.0300.07018.86
5.4.280.0330.06319.14
5.4.270.0430.04718.84
5.4.260.0200.07719.28
5.4.250.0230.07019.11
5.4.240.0300.06319.27
5.4.230.0230.07018.87
5.4.220.0300.06718.97
5.4.210.0200.05719.30
5.4.200.0170.06019.29
5.4.190.0170.06019.29
5.4.180.0330.04319.05
5.4.170.0230.05019.13
5.4.160.0300.04719.35
5.4.150.0230.05719.36
5.4.140.0200.07316.54
5.4.130.0230.06716.75
5.4.120.0230.07016.33
5.4.110.0270.05016.48
5.4.100.0170.05716.51
5.4.90.0270.04316.65
5.4.80.0230.04316.61
5.4.70.0070.05716.41
5.4.60.0000.06016.56
5.4.50.0000.07316.16
5.4.40.0200.06316.49
5.4.30.0300.06716.38
5.4.20.0330.05016.51

preferences:
48.88 ms | 401 KiB | 5 Q