3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Beer { const NAME = 'Beer!'; public static function printed(){ echo 'static Beer:NAME = '. static::NAME . PHP_EOL; } } class Ale extends Beer { const NAME = 'Ale!'; public static function printed(){ forward_static_call(array('parent','printed')); call_user_func(array('parent','printed')); forward_static_call(array(parent::class,'printed')); call_user_func(array(parent::class,'printed')); forward_static_call(array('Beer','printed')); call_user_func(array('Beer','printed')); } } Ale::printed();

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.0090.01218.28
8.3.50.0120.00721.16
8.3.40.0140.00318.96
8.3.30.0040.01118.84
8.3.20.0040.00420.38
8.3.10.0080.00021.96
8.3.00.0000.00823.61
8.2.180.0170.00716.63
8.2.170.0150.00622.96
8.2.160.0070.00720.34
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0000.00819.70
8.2.120.0080.00026.35
8.2.110.0000.00922.20
8.2.100.0080.00417.93
8.2.90.0030.00519.22
8.2.80.0000.00817.97
8.2.70.0100.00017.50
8.2.60.0000.00817.80
8.2.50.0050.00318.07
8.2.40.0040.00422.45
8.2.30.0080.00019.43
8.2.20.0080.00017.73
8.2.10.0000.00817.93
8.2.00.0020.00518.12
8.1.280.0120.00925.92
8.1.270.0060.00320.37
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0040.00820.81
8.1.230.0070.00419.21
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0030.00617.25
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0080.00018.54
8.1.160.0040.00420.73
8.1.150.0080.00018.82
8.1.140.0050.00319.46
8.1.130.0040.00417.55
8.1.120.0000.00717.41
8.1.110.0080.00017.29
8.1.100.0000.00717.43
8.1.90.0000.00817.38
8.1.80.0030.00317.27
8.1.70.0070.00017.39
8.1.60.0040.00417.53
8.1.50.0000.00817.45
8.1.40.0030.00517.41
8.1.30.0060.00317.50
8.1.20.0050.00217.63
8.1.10.0040.00417.41
8.1.00.0040.00417.49
8.0.300.0000.00818.77
8.0.290.0070.00016.63
8.0.280.0070.00018.31
8.0.270.0030.00317.17
8.0.260.0060.00017.24
8.0.250.0070.00016.82
8.0.240.0080.00016.87
8.0.230.0000.00716.92
8.0.220.0050.00316.79
8.0.210.0040.00416.90
8.0.200.0050.00516.93
8.0.190.0100.00016.79
8.0.180.0000.00716.90
8.0.170.0000.00816.79
8.0.160.0000.00816.99
8.0.150.0000.00716.83
8.0.140.0070.00016.71
8.0.130.0040.00313.26
8.0.120.0040.00416.92
8.0.110.0040.00416.89
8.0.100.0000.00816.95
8.0.90.0000.00716.69
8.0.80.0150.00316.86
8.0.70.0070.00016.86
8.0.60.0070.00016.78
8.0.50.0050.00316.75
8.0.30.0080.01117.06
8.0.20.0110.00717.40
8.0.10.0050.00216.84
8.0.00.0140.00716.64
7.4.330.0000.00516.67
7.4.320.0000.00816.49
7.4.300.0000.00816.61
7.4.290.0030.00316.64
7.4.280.0000.00916.53
7.4.270.0030.00316.50
7.4.260.0040.00716.51
7.4.250.0040.00416.47
7.4.240.0030.00516.57
7.4.230.0040.00416.60
7.4.220.0120.00916.45
7.4.210.0080.00616.57
7.4.200.0000.00716.41
7.4.160.0100.00616.68
7.4.150.0170.00317.40
7.4.140.0070.01017.86
7.4.130.0130.00616.56
7.4.120.0140.00416.41
7.4.110.0040.01416.39
7.4.100.0130.00616.40
7.4.90.0070.01016.37
7.4.80.0030.01419.39
7.4.70.0090.00916.43
7.4.60.0120.00816.32
7.4.50.0030.01116.22
7.4.40.0100.00616.52
7.4.30.0090.00616.19
7.4.00.0060.01215.09
7.3.330.0000.00613.29
7.3.320.0050.00013.27
7.3.310.0000.00716.18
7.3.300.0060.00016.15
7.3.290.0070.00916.29
7.3.280.0050.01516.23
7.3.270.0140.00317.40
7.3.260.0090.00916.28
7.3.240.0070.01016.24
7.3.230.0100.00616.61
7.3.210.0110.00516.48
7.3.200.0160.00619.39
7.3.190.0150.00316.20
7.3.180.0120.00316.01
7.3.170.0120.01316.27
7.3.160.0070.01016.43
7.3.10.0030.01416.15
7.3.00.0120.00315.93
7.2.330.0080.01216.73
7.2.320.0030.01216.50
7.2.310.0130.00316.73
7.2.300.0130.00316.73
7.2.290.0060.01016.65
7.2.130.0170.00716.57
7.2.120.0150.00816.73
7.2.110.0060.01016.54
7.2.100.0000.01416.96
7.2.90.0080.01116.83
7.2.80.0140.00616.36
7.2.70.0160.00716.65
7.2.60.0070.00716.65
7.2.50.0080.01116.54
7.2.40.0060.01016.66
7.2.30.0000.00916.48
7.2.20.0110.00416.63
7.2.10.0030.01216.65
7.2.00.0250.00517.70
7.1.250.0040.01115.58
7.1.100.0150.00417.86
7.1.70.0000.00917.12
7.1.60.0030.02019.27
7.1.50.0030.01216.95
7.1.00.0070.07322.45
7.0.200.0000.00716.77
7.0.60.0070.06721.80
7.0.50.0170.07317.98
7.0.40.0030.04720.24
7.0.30.0230.03720.26
7.0.20.0100.04720.10
7.0.10.0070.05020.33
7.0.00.0100.05320.24
5.6.280.0070.03021.16
5.6.210.0170.07320.52
5.6.200.0070.04718.27
5.6.190.0000.08720.60
5.6.180.0570.06320.50
5.6.170.0200.04720.43
5.6.160.0030.08020.53
5.6.150.0100.04718.19
5.6.140.0070.06018.18
5.6.130.0130.04018.29
5.6.120.0130.06021.01
5.6.110.0200.05021.05
5.6.100.0070.06320.96
5.6.90.0100.08021.11
5.6.80.0030.06320.53
5.5.350.0070.07320.39
5.5.340.0100.06717.97
5.5.330.0100.03720.27
5.5.320.0330.06720.38
5.5.310.0270.07020.42
5.5.300.0070.04718.08
5.5.290.0070.08717.97
5.5.280.0070.07320.66
5.5.270.0000.07320.85
5.5.260.0100.05320.75
5.5.250.0070.04720.69
5.5.240.0130.07020.24

preferences:
61.04 ms | 401 KiB | 5 Q