3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static function foo() { static::who(); } public static function who() { echo __CLASS__."\n"; } } class B extends A { public static function test() { A::foo(); parent::foo(); self::foo(); } public static function who() { echo __CLASS__."\n"; } } class C extends B { public static function who() { echo __CLASS__."\n"; } } C::test(); ?>

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.01118.43
8.3.50.0160.01021.14
8.3.40.0120.00819.46
8.3.30.0120.00819.38
8.3.20.0100.00421.21
8.3.10.0100.00721.62
8.3.00.0100.00919.99
8.2.180.0110.00418.18
8.2.170.0110.00920.16
8.2.160.0050.01220.77
8.2.150.0100.00720.77
8.2.140.0120.00321.82
8.2.130.0090.00822.30
8.2.120.0060.00919.58
8.2.110.0110.00620.20
8.2.100.0140.00418.72
8.2.90.0090.00718.77
8.2.80.0060.00918.81
8.2.70.0110.00618.20
8.2.60.0080.00818.58
8.2.50.0140.00218.83
8.2.40.0110.00618.51
8.2.30.0110.00618.78
8.2.20.0110.00518.32
8.2.10.0060.01018.26
8.2.00.0090.00918.17
8.1.280.0110.00725.92
8.1.270.0090.00922.72
8.1.260.0130.00623.49
8.1.250.0070.00724.09
8.1.240.0100.00619.63
8.1.230.0090.00918.13
8.1.220.0040.00918.40
8.1.210.0100.00818.49
8.1.200.0070.00918.09
8.1.190.0080.00618.02
8.1.180.0090.00418.13
8.1.170.0080.00518.58
8.1.160.0070.00618.52
8.1.150.0060.00718.54
8.1.140.0080.00618.07
8.1.130.0070.00618.28
8.1.120.0100.00418.06
8.1.110.0080.00718.02
8.1.100.0100.00318.93
8.1.90.0040.00917.94
8.1.80.0080.00618.89
8.1.70.0090.00518.21
8.1.60.0100.00518.31
8.1.50.0050.00718.19
8.1.40.0050.00818.21
8.1.30.0060.00718.43
8.1.20.0060.00619.20
8.1.10.0110.00318.21
8.1.00.0110.00318.15
8.0.300.0110.00618.14
8.0.290.0150.00717.33
8.0.280.0190.00518.08
8.0.270.0100.00817.90
8.0.260.0150.00717.38
8.0.250.0190.00317.52
8.0.240.0210.00317.37
8.0.230.0160.00417.59
8.0.220.0180.00517.31
8.0.210.0180.00617.44
8.0.200.0190.00617.37
8.0.190.0160.00917.52
8.0.180.0160.00617.43
8.0.170.0170.01117.37
8.0.160.0160.00817.50
8.0.150.0240.00417.40
8.0.140.0170.00817.38
8.0.130.0160.01016.29
8.0.120.0130.00517.09
8.0.110.0130.00417.02
8.0.100.0090.00817.07
8.0.90.0130.00517.03
8.0.80.0150.00516.99
8.0.70.0060.00817.04
8.0.60.0110.00817.03
8.0.50.0120.00617.04
8.0.30.0070.00817.06
8.0.20.0100.00817.24
8.0.10.0110.00517.16
8.0.00.0090.00717.57
7.4.330.0180.00417.11
7.4.320.0190.00517.02
7.4.300.0160.00817.12
7.4.290.0200.00416.97
7.4.280.0180.00817.14
7.4.270.0200.00817.17
7.4.260.0170.00615.95
7.4.250.0090.00816.71
7.4.240.0110.00516.79
7.4.230.0130.00316.79
7.4.220.0100.00716.81
7.4.210.0100.01016.59
7.4.200.0110.00816.77
7.4.190.0120.00616.79
7.4.180.0110.00716.99
7.4.160.0140.00416.71
7.4.150.0090.00716.94
7.4.140.0130.00517.03
7.4.130.0100.00716.66
7.4.120.0120.00716.63
7.4.110.0120.00916.71
7.4.100.0150.00516.70
7.4.90.0160.00416.62
7.4.80.0110.00817.21
7.4.70.0130.00616.62
7.4.60.0140.00616.72
7.4.50.0110.00716.69
7.4.40.0110.00617.78
7.4.30.0140.00516.80
7.4.20.0130.00716.67
7.4.10.0140.00816.72
7.4.00.0110.00816.24
7.3.330.0240.00615.87
7.3.320.0170.00915.71
7.3.310.0110.00816.41
7.3.300.0100.00816.69
7.3.290.0140.00516.52
7.3.280.0130.00516.42
7.3.270.0130.00516.68
7.3.260.0110.00917.23
7.3.250.0150.00516.47
7.3.240.0130.00716.50
7.3.230.0140.00616.56
7.3.220.0160.00516.49
7.3.210.0150.00416.51
7.3.200.0120.00716.97
7.3.190.0130.00616.44
7.3.180.0120.00816.33
7.3.170.0130.00416.62
7.3.160.0140.00516.45
7.3.150.0140.00516.54
7.3.140.0140.00316.50
7.3.130.0150.00416.45
7.3.120.0080.00815.90
7.3.110.0110.00516.01
7.3.100.0110.00615.92
7.3.90.0110.00716.15
7.3.80.0090.00815.77
7.3.70.0070.00815.98
7.3.60.0080.00815.77
7.3.50.0090.00715.73
7.3.40.0110.00615.78
7.3.30.0090.00815.77
7.3.20.0150.00716.76
7.3.10.0130.00416.77
7.3.00.0110.00716.76
7.2.340.0130.00616.56
7.2.330.0130.00716.60
7.2.320.0130.00816.51
7.2.310.0130.00716.55
7.2.300.0130.00616.55
7.2.290.0120.00616.55
7.2.280.0120.00616.67
7.2.270.0120.00616.54
7.2.260.0120.00716.54
7.2.250.0110.00816.27
7.2.240.0090.00816.03
7.2.230.0130.00516.07
7.2.220.0130.00616.10
7.2.210.0110.00815.70
7.2.200.0110.00715.84
7.2.190.0110.00715.76
7.2.180.0100.00815.82
7.2.170.0110.00815.83
7.2.160.0120.00616.01
7.2.150.0150.00816.92
7.2.140.0160.00616.91
7.2.130.0150.00716.94
7.2.120.0150.00617.04
7.2.110.0140.00717.04
7.2.100.0110.00816.96
7.2.90.0160.00816.93
7.2.80.0170.00517.01
7.2.70.0110.00816.96
7.2.60.0140.00616.95
7.2.50.0130.00816.97
7.2.40.0170.00517.03
7.2.30.0120.00817.05
7.2.20.0110.00816.97
7.2.10.0130.00417.04
7.2.00.0080.00717.33
7.1.330.0090.00616.45
7.1.320.0100.00716.40
7.1.310.0150.00615.82
7.1.300.0130.00615.83
7.1.290.0110.00715.73
7.1.280.0100.00615.86
7.1.270.0100.00816.11
7.1.260.0230.00715.87
7.1.250.0130.00615.86
7.1.240.0130.00615.89
7.1.230.0280.00515.91
7.1.220.0150.00715.90
7.1.210.0170.00716.02
7.1.200.0140.00615.87
7.1.190.0310.00415.89
7.1.180.0160.00615.93
7.1.170.0170.00715.87
7.1.160.0150.00716.16
7.1.150.0160.00515.86
7.1.140.0140.00715.87
7.1.130.0140.00515.85
7.1.120.0140.00515.81
7.1.110.0130.00715.78
7.1.100.0120.00716.09
7.1.90.0150.00715.83
7.1.80.0390.00615.94
7.1.70.0390.00615.84
7.1.60.0340.00717.89
7.1.50.0480.00717.96
7.1.40.0410.00817.72
7.1.30.0390.00617.81
7.1.20.0390.00617.84
7.1.10.0430.00615.83
7.1.00.0390.00615.87
7.0.330.0150.00615.55
7.0.320.0160.00315.75
7.0.310.0150.00615.59
7.0.300.0160.00615.55
7.0.290.0170.00415.64
7.0.280.0160.00715.60
7.0.270.0150.00515.61
7.0.260.0120.00715.64
7.0.250.0210.00515.67
7.0.240.0140.00715.71
7.0.230.0120.00815.67
7.0.220.0130.00715.65
7.0.210.0140.00615.78
7.0.200.0380.00515.61
7.0.190.0390.00715.68
7.0.180.0390.00715.57
7.0.170.0370.00615.68
7.0.160.0410.00715.50
7.0.150.0410.00715.51
7.0.140.0430.00915.60
7.0.130.0430.00615.60
7.0.120.0380.00515.63
7.0.110.0370.00615.81
7.0.100.0390.00715.68
7.0.90.0380.00615.53
7.0.80.0340.00415.57
7.0.70.0730.00415.66
7.0.60.0380.00615.58
7.0.50.0330.00815.56
7.0.40.0350.00615.50
7.0.30.0390.00715.52
7.0.20.0370.00515.52
7.0.10.0390.00515.51
7.0.00.0390.00515.51
5.6.400.0140.00615.53
5.6.390.0120.00715.52
5.6.380.0110.00815.54
5.6.370.0120.00615.60
5.6.360.0100.00615.55
5.6.350.0120.00515.56
5.6.340.0130.00515.54
5.6.330.0100.00815.63
5.6.320.0130.00615.55
5.6.310.0130.00615.51
5.6.300.0120.01816.70
5.6.290.0120.02016.73
5.6.280.0120.01816.78
5.6.270.0110.01516.78
5.6.260.0130.01516.73
5.6.250.0110.01916.69
5.6.240.0120.01716.68
5.6.230.0140.01416.81
5.6.220.0120.01416.73
5.6.210.0120.01916.83
5.6.200.0090.02016.86
5.6.190.0120.01916.84
5.6.180.0110.01916.80
5.6.170.0100.01916.79
5.6.160.0120.01816.75
5.6.150.0080.02116.79
5.6.140.0130.01616.75
5.6.130.0110.01816.73
5.6.120.0120.01616.77
5.6.110.0110.01716.73
5.6.100.0110.01816.66
5.6.90.0110.01816.77
5.6.80.0100.02016.54
5.6.70.0130.01616.68
5.6.60.0100.01916.62
5.6.50.0110.01416.59
5.6.40.0120.01916.62
5.6.30.0100.01816.67
5.6.20.0100.01816.61
5.6.10.0100.01716.58
5.6.00.0100.01716.53
5.5.380.0110.01715.96
5.5.370.0120.01615.96
5.5.360.0100.01915.87
5.5.350.0130.01415.88
5.5.340.0080.01716.10
5.5.330.0090.01916.00
5.5.320.0100.01816.01
5.5.310.0100.01815.97
5.5.300.0100.01716.03
5.5.290.0090.01716.04
5.5.280.0130.01615.98
5.5.270.0110.01715.97
5.5.260.0150.01615.91
5.5.250.0120.01716.10
5.5.240.0090.01915.95
5.5.230.0120.01715.99
5.5.220.0110.01615.87
5.5.210.0090.01715.93
5.5.200.0090.01815.84
5.5.190.0110.01815.77
5.5.180.0110.01715.73
5.5.170.0100.00715.33
5.5.160.0110.01715.83
5.5.150.0120.01615.75
5.5.140.0150.01715.79
5.5.130.0090.01915.68
5.5.120.0110.01715.78
5.5.110.0110.01615.72
5.5.100.0140.01415.84
5.5.90.0130.01315.81
5.5.80.0130.01615.94
5.5.70.0130.01415.91
5.5.60.0110.01815.86
5.5.50.0110.01715.86
5.5.40.0100.01715.83
5.5.30.0130.01815.86
5.5.20.0130.01615.92
5.5.10.0110.01615.84
5.5.00.0120.01615.88
5.4.450.0110.01514.60
5.4.440.0110.01514.51
5.4.430.0070.01814.60
5.4.420.0110.01514.48
5.4.410.0090.01714.48
5.4.400.0100.01514.45
5.4.390.0110.01414.47
5.4.380.0080.01514.50
5.4.370.0100.01414.46
5.4.360.0100.01514.45
5.4.350.0070.01914.45
5.4.340.0090.01614.51
5.4.330.0100.00413.16
5.4.320.0100.01714.48
5.4.310.0100.01514.52
5.4.300.0110.01414.51
5.4.290.0090.01414.40
5.4.280.0130.01214.44
5.4.270.0080.01414.44
5.4.260.0090.01414.42
5.4.250.0110.01314.46
5.4.240.0080.01614.45
5.4.230.0110.01514.39
5.4.220.0090.01514.38
5.4.210.0100.01714.39
5.4.200.0110.01714.31
5.4.190.0090.01414.35
5.4.180.0110.01314.36
5.4.170.0120.01414.39
5.4.160.0090.02014.36
5.4.150.0110.01614.39
5.4.140.0110.01413.86
5.4.130.0100.01313.92
5.4.120.0110.01313.81
5.4.110.0100.01413.84
5.4.100.0110.01313.85
5.4.90.0120.01313.84
5.4.80.0090.01913.90
5.4.70.0090.01913.87
5.4.60.0070.01513.86
5.4.50.0070.01713.84
5.4.40.0080.01413.88
5.4.30.0080.01613.90
5.4.20.0050.01713.84
5.4.10.0110.01313.84
5.4.00.0080.01313.72
5.3.290.0080.01513.67
5.3.280.0060.01813.67
5.3.270.0080.01613.72
5.3.260.0070.01513.67
5.3.250.0060.01613.71
5.3.240.0070.01313.69
5.3.230.0060.01413.68
5.3.220.0070.01613.63
5.3.210.0070.01513.63
5.3.200.0060.01413.63
5.3.190.0090.01413.66
5.3.180.0030.01913.77
5.3.170.0060.01713.74
5.3.160.0070.01613.73
5.3.150.0080.01413.75
5.3.140.0070.01613.64
5.3.130.0050.01713.71
5.3.120.0080.01313.69
5.3.110.0080.01613.74
5.3.100.0070.01813.64
5.3.90.0070.01413.65
5.3.80.0070.01313.56
5.3.70.0060.01513.59
5.3.60.0060.01413.60
5.3.50.0050.01413.57
5.3.40.0050.01513.54
5.3.30.0060.01613.59
5.3.20.0060.01613.54
5.3.10.0080.01413.48
5.3.00.0050.01713.48

preferences:
58.89 ms | 401 KiB | 5 Q