3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(0); class A { public function foo() { static::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.00618.43
8.3.50.0180.00321.02
8.3.40.0100.00718.94
8.3.30.0140.00018.62
8.3.20.0000.00820.34
8.3.10.0050.00321.95
8.3.00.0000.00819.79
8.2.180.0110.00718.63
8.2.170.0140.00022.96
8.2.160.0100.00320.57
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0030.00617.38
8.2.110.0090.00021.11
8.2.100.0070.00717.75
8.2.90.0040.00819.05
8.2.80.0030.00617.97
8.2.70.0050.00317.50
8.2.60.0050.00317.93
8.2.50.0030.00618.07
8.2.40.0110.00019.41
8.2.30.0000.00720.63
8.2.20.0070.00017.69
8.2.10.0040.00417.88
8.2.00.0030.00518.05
8.1.280.0140.00725.92
8.1.270.0040.01522.11
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00722.69
8.1.230.0040.00817.42
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0030.00617.10
8.1.190.0080.00017.23
8.1.180.0050.00318.10
8.1.170.0130.00518.34
8.1.160.0000.00721.86
8.1.150.0000.00718.77
8.1.140.0000.00817.27
8.1.130.0000.00717.63
8.1.120.0000.00717.41
8.1.110.0040.00417.43
8.1.100.0040.00417.36
8.1.90.0050.00417.40
8.1.80.0060.00317.28
8.1.70.0030.00317.39
8.1.60.0040.00417.49
8.1.50.0050.00317.52
8.1.40.0040.00417.48
8.1.30.0040.00417.65
8.1.20.0000.00817.57
8.1.10.0000.00817.48
8.1.00.0000.00717.39
8.0.300.0000.00718.77
8.0.290.0030.00516.75
8.0.280.0070.00018.43
8.0.270.0070.00017.12
8.0.260.0030.00317.22
8.0.250.0040.00416.86
8.0.240.0000.00716.93
8.0.230.0000.00716.96
8.0.220.0070.00016.88
8.0.210.0000.00716.88
8.0.200.0080.00016.89
8.0.190.0040.00416.96
8.0.180.0000.00716.81
8.0.170.0000.00716.94
8.0.160.0040.00416.97
8.0.150.0040.00416.88
8.0.140.0070.00016.84
8.0.130.0060.00013.35
8.0.120.0030.00516.76
8.0.110.0070.00016.75
8.0.100.0000.00716.77
8.0.90.0000.00716.97
8.0.80.0030.01416.89
8.0.70.0030.00616.95
8.0.60.0040.00416.74
8.0.50.0050.00216.72
8.0.30.0130.00617.16
8.0.20.0090.01017.40
8.0.10.0030.00516.97
8.0.00.0090.00916.75
7.4.330.0050.00015.11
7.4.320.0000.00716.44
7.4.300.0030.00316.60
7.4.290.0000.00716.57
7.4.280.0030.00616.45
7.4.270.0050.00216.59
7.4.260.0040.00416.52
7.4.250.0070.00016.48
7.4.240.0050.00216.50
7.4.230.0080.00016.49
7.4.220.0130.01016.36
7.4.210.0060.01316.53
7.4.200.0000.00816.70
7.4.160.0070.00716.52
7.4.150.0130.00317.40
7.4.140.0070.01217.86
7.4.130.0100.00716.54
7.4.120.0070.01116.53
7.4.110.0070.01016.74
7.4.100.0060.01616.53
7.4.90.0070.01016.43
7.4.80.0130.01019.39
7.4.70.0060.01116.59
7.4.60.0060.01316.44
7.4.50.0040.00416.66
7.4.40.0100.00716.31
7.4.30.0080.01116.57
7.4.00.0050.01015.00
7.3.330.0020.00513.26
7.3.320.0030.00313.16
7.3.310.0030.00316.35
7.3.300.0030.00316.19
7.3.290.0120.00516.30
7.3.280.0130.00816.29
7.3.270.0090.00917.40
7.3.260.0090.00916.60
7.3.250.0160.00316.38
7.3.240.0100.00716.52
7.3.230.0090.00916.39
7.3.210.0070.01016.34
7.3.200.0130.00916.30
7.3.190.0080.00816.27
7.3.180.0070.01416.23
7.3.170.0030.01216.39
7.3.160.0140.00316.33
7.3.120.0060.01314.80
7.3.110.0090.00414.90
7.3.100.0060.01014.75
7.3.90.0140.00014.99
7.3.80.0030.00714.50
7.3.70.0080.00614.77
7.3.60.0140.00014.82
7.3.50.0120.00314.73
7.3.40.0130.00314.55
7.3.30.0040.00714.82
7.3.20.0030.01216.54
7.3.10.0060.00716.54
7.3.00.0100.00716.38
7.2.330.0070.01116.70
7.2.320.0120.00616.75
7.2.310.0110.00716.34
7.2.300.0080.00816.39
7.2.290.0070.01016.74
7.2.250.0070.01315.13
7.2.240.0110.00715.01
7.2.230.0060.01215.01
7.2.220.0030.00614.74
7.2.210.0080.00615.20
7.2.200.0030.01015.16
7.2.190.0060.01014.98
7.2.180.0030.01414.89
7.2.170.0070.01115.06
7.2.130.0070.00716.82
7.2.120.0000.01316.37
7.2.110.0030.01016.44
7.2.100.0110.01116.76
7.2.90.0070.01116.48
7.2.80.0060.00616.44
7.2.70.0120.00016.54
7.2.60.0140.00916.88
7.2.50.0160.00016.28
7.2.40.0090.00916.80
7.2.30.0120.00616.48
7.2.20.0190.01016.71
7.2.10.0120.00316.71
7.2.00.0060.00918.28
7.1.330.0030.01315.41
7.1.320.0030.00615.77
7.1.310.0100.00315.80
7.1.300.0030.01015.75
7.1.290.0120.00615.61
7.1.280.0080.00615.79
7.1.270.0000.01115.51
7.1.260.0110.00415.62
7.1.250.0050.00915.41
7.1.200.0070.00715.71
7.1.100.0030.00717.95
7.1.70.0030.01716.78
7.1.60.0080.00319.27
7.1.50.0270.00634.44
7.1.00.0030.07322.50
7.0.200.0030.00516.61
7.0.60.0100.07719.88
7.0.50.0100.08017.85
7.0.40.0100.08020.23
7.0.30.0170.05320.09
7.0.20.0300.06720.06
7.0.10.0030.09320.30
7.0.00.0070.07720.23
5.6.280.0030.03021.05
5.6.210.0100.07320.71
5.6.200.0130.07318.25
5.6.190.0070.06320.61
5.6.180.0030.08320.42
5.6.170.0200.09020.48
5.6.160.0070.07720.50
5.6.150.0070.06318.18
5.6.140.0100.07018.14
5.6.130.0070.06718.28
5.6.120.0130.08721.12
5.6.110.0070.05320.98
5.6.100.0100.08320.97
5.6.90.0070.07721.10
5.6.80.0100.04720.39
5.5.350.0030.07020.42
5.5.340.0200.06318.04
5.5.330.0100.07720.27
5.5.320.0200.07320.25
5.5.310.0200.06720.21
5.5.300.0130.07317.95
5.5.290.0030.04017.93
5.5.280.0100.05020.69
5.5.270.0030.04720.75
5.5.260.0130.06020.75
5.5.250.0170.05720.62
5.5.240.0370.06320.16
5.4.450.0500.07319.43
5.4.440.0730.07319.66
5.4.430.0900.05319.61
5.4.420.0730.05719.55
5.4.410.0600.05719.42
5.4.400.0770.04718.84
5.4.390.0700.05719.26
5.4.380.0630.06019.27
5.4.370.0770.08019.12
5.4.360.0870.04719.02
5.4.350.0700.05319.02
5.4.340.0800.04319.29
5.4.320.0630.05019.29
5.4.310.0670.05019.20
5.4.300.0800.05019.02
5.4.290.0730.05318.84
5.4.280.0830.06319.25
5.4.270.0730.06019.14
5.4.260.1000.06719.25
5.4.250.0670.05319.05
5.4.240.0700.05719.05
5.4.230.0730.04719.05
5.4.220.0600.06319.05
5.4.210.0570.06019.05
5.4.200.0800.04718.82
5.4.190.0630.05319.13
5.4.180.0830.04719.37
5.4.170.0630.05019.02
5.4.160.0800.07318.85
5.4.150.0730.08019.09
5.4.140.0600.08016.57
5.4.130.0630.05016.58
5.4.120.0600.05016.58
5.4.110.0400.06316.65
5.4.100.0630.06316.65
5.4.90.0770.05016.57
5.4.80.0800.04716.55
5.4.70.0070.06716.23
5.4.60.0030.07316.16
5.4.50.0070.07316.42
5.4.40.0170.03316.53
5.4.30.0270.04716.34
5.4.20.0200.03716.55

preferences:
48.51 ms | 401 KiB | 5 Q