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 { const NAME = 'Ale!'; public static function printed(){ forward_static_call(array('Beer','printed')); call_user_func(array('Beer','printed')); } } Ale::printed(); echo '</pre>';

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.0060.01516.58
8.3.60.0000.01418.18
8.3.50.0120.01021.98
8.3.40.0150.00018.83
8.3.30.0070.00719.27
8.3.20.0040.00420.38
8.3.10.0000.00822.08
8.3.00.0080.00022.50
8.2.180.0100.00716.75
8.2.170.0120.00622.96
8.2.160.0100.00320.90
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0140.00426.16
8.2.120.0050.00317.38
8.2.110.0060.00620.51
8.2.100.0040.00719.32
8.2.90.0000.00819.13
8.2.80.0030.00517.97
8.2.70.0030.00617.50
8.2.60.0030.00517.90
8.2.50.0000.00818.07
8.2.40.0040.00418.03
8.2.30.0080.00017.94
8.2.20.0000.00817.70
8.2.10.0080.00017.68
8.2.00.0000.00717.67
8.1.280.0100.01025.92
8.1.270.0050.00322.15
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0030.00623.66
8.1.230.0090.00319.07
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0030.00617.35
8.1.190.0040.00417.52
8.1.180.0000.00818.70
8.1.170.0000.00818.39
8.1.160.0000.00821.88
8.1.150.0080.00018.51
8.1.140.0030.00717.39
8.1.130.0040.00417.67
8.1.120.0030.00317.38
8.1.110.0000.00717.39
8.1.100.0030.00417.32
8.1.90.0040.00417.27
8.1.80.0040.00417.34
8.1.70.0000.00817.36
8.1.60.0030.00617.52
8.1.50.0040.00417.42
8.1.40.0040.00417.39
8.1.30.0060.00317.49
8.1.20.0060.00317.46
8.1.10.0030.00617.49
8.1.00.0040.00417.41
8.0.300.0000.00718.77
8.0.290.0000.00817.18
8.0.280.0030.00518.39
8.0.270.0000.00817.18
8.0.260.0030.00316.69
8.0.250.0070.00016.93
8.0.240.0040.00416.88
8.0.230.0040.00316.89
8.0.220.0000.00716.84
8.0.210.0030.00316.86
8.0.200.0030.00316.92
8.0.190.0070.00016.96
8.0.180.0080.00016.87
8.0.170.0050.00516.79
8.0.160.0040.00416.75
8.0.150.0000.00816.72
8.0.140.0000.00716.69
8.0.130.0030.00313.29
8.0.120.0090.00016.92
8.0.110.0040.00416.70
8.0.100.0040.00416.84
8.0.90.0040.00316.90
8.0.80.0150.00016.86
8.0.70.0050.00316.86
8.0.60.0030.00516.91
8.0.50.0040.00416.84
8.0.30.0100.00816.92
8.0.20.0070.01117.40
8.0.10.0000.00716.82
8.0.00.0090.00916.77
7.4.330.0060.00015.00
7.4.320.0000.00616.60
7.4.300.0030.00316.53
7.4.290.0030.00316.39
7.4.280.0050.00216.59
7.4.270.0000.00716.48
7.4.260.0030.00516.52
7.4.250.0030.00516.46
7.4.240.0030.00516.53
7.4.230.0080.00016.61
7.4.220.0030.01416.57
7.4.210.0030.01316.54
7.4.200.0000.00716.70
7.4.190.0040.00416.60
7.4.160.0110.00516.42
7.4.150.0100.00717.40
7.4.140.0170.00317.86
7.4.130.0090.00916.53
7.4.120.0050.01216.39
7.4.110.0040.01716.47
7.4.100.0120.00616.41
7.4.90.0110.00716.38
7.4.80.0030.01419.39
7.4.70.0090.00916.54
7.4.60.0060.01316.46
7.4.50.0030.00416.27
7.4.40.0070.01122.77
7.4.30.0070.01016.40
7.4.00.0030.01014.82
7.3.330.0000.00513.07
7.3.320.0000.00513.31
7.3.310.0030.00516.14
7.3.300.0060.00016.12
7.3.290.0060.01016.29
7.3.280.0120.00416.26
7.3.270.0090.00917.40
7.3.260.0100.00716.49
7.3.250.0100.00716.27
7.3.240.0130.00916.24
7.3.230.0110.00616.43
7.3.210.0100.00616.20
7.3.200.0120.00616.46
7.3.190.0140.00416.53
7.3.180.0030.01316.27
7.3.170.0000.01616.53
7.3.160.0070.01016.36
7.3.120.0040.00814.50
7.2.330.0130.00316.71
7.2.320.0070.01016.53
7.2.310.0060.01816.47
7.2.300.0060.01016.72
7.2.290.0140.00316.48
7.2.00.0040.01119.61
7.1.100.0160.01116.06
7.1.70.0040.00417.03
7.1.60.0050.00517.13
7.1.50.0000.02116.98
7.1.00.0070.08322.41
7.0.200.0060.00916.70
7.0.140.0000.07721.99
7.0.60.0030.04320.03
7.0.50.0130.07717.97
7.0.40.0270.07020.09
7.0.30.0430.07720.20
7.0.20.0270.08320.10
7.0.10.0200.07320.22
7.0.00.0100.08720.23
5.6.280.0070.07021.09
5.6.210.0070.05720.63
5.6.200.0070.04718.18
5.6.190.0000.09320.54
5.6.180.0430.06320.39
5.6.170.0170.08020.55
5.6.160.0100.08020.44
5.6.150.0130.07318.25
5.6.140.0100.03318.17
5.6.130.0100.03718.14
5.6.120.0070.08721.13
5.6.110.0100.08020.89
5.6.100.0070.07020.96
5.6.90.0100.08721.13
5.6.80.0130.06020.53
5.5.350.0100.04320.47
5.5.340.0030.05317.98
5.5.330.0030.04720.30
5.5.320.0000.09020.35
5.5.310.0230.03720.37
5.5.300.0130.07017.99
5.5.290.0000.04717.98
5.5.280.0100.07720.85
5.5.270.0070.07020.78
5.5.260.0100.08020.79
5.5.250.0000.04320.62
5.5.240.0100.07020.28
5.4.450.0270.06719.39
5.4.440.0300.06319.41
5.4.430.0130.05319.40
5.4.420.0170.05019.68
5.4.410.0070.07319.25
5.4.400.1200.00018.87
5.4.390.1370.00018.79
5.4.380.0270.05018.61
5.4.370.0800.05018.59
5.4.360.0770.05718.79
5.4.350.0870.05018.65
5.4.340.0830.06018.70
5.4.320.0070.03512.50
5.4.310.0080.04212.50
5.4.300.0080.04212.50
5.4.290.0060.04212.50
5.4.280.0050.04012.39
5.4.270.0080.03712.39
5.4.260.0130.04318.77
5.4.250.0070.05318.95
5.4.240.0100.04718.95
5.4.230.0100.05018.93
5.4.220.0070.05718.74
5.4.210.0100.05318.78
5.4.200.0100.05318.90
5.4.190.0030.06018.83
5.4.180.0100.04718.94
5.4.170.0130.07018.89
5.4.160.0070.05318.95
5.4.150.0100.05318.96
5.4.140.0130.04716.41
5.4.130.0200.04016.59
5.4.120.0070.06016.41
5.4.110.0130.04716.46
5.4.100.0200.04016.57
5.4.90.0030.05016.61
5.4.80.0070.07016.52
5.4.70.0130.04716.41
5.4.60.0300.03716.49
5.4.50.0130.04016.54
5.4.40.0170.04016.67
5.4.30.0130.05016.43
5.4.20.0200.06316.50
5.4.10.0100.05016.47
5.4.00.0100.04316.03
5.3.290.0060.04312.80
5.3.280.0070.05014.76
5.3.270.0070.07314.77
5.3.260.0130.04714.51
5.3.250.0100.05014.68
5.3.240.0200.04014.70
5.3.230.0030.07714.66
5.3.220.0230.06014.55
5.3.210.0030.05714.59
5.3.200.0100.04714.65
5.3.190.0030.05714.63
5.3.180.0100.07014.55
5.3.170.0130.05714.54
5.3.160.0100.05014.64
5.3.150.0130.06314.55
5.3.140.0070.06314.64
5.3.130.0130.05014.73
5.3.120.0030.06014.54
5.3.110.0030.07014.55
5.3.100.0070.05314.21
5.3.90.0100.04714.10
5.3.80.0000.05314.24
5.3.70.0100.05713.92

preferences:
37.17 ms | 401 KiB | 5 Q