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('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.0030.01216.38
8.3.50.0140.00317.30
8.3.40.0150.00018.97
8.3.30.0070.00718.46
8.3.20.0040.00418.60
8.3.10.0050.00320.53
8.3.00.0040.00419.38
8.2.180.0090.00616.75
8.2.170.0150.00022.96
8.2.160.0070.00721.07
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00419.36
8.2.110.0040.00420.40
8.2.100.0040.00817.78
8.2.90.0050.00517.63
8.2.80.0030.00717.97
8.2.70.0080.00017.80
8.2.60.0040.00417.80
8.2.50.0000.00818.10
8.2.40.0040.00420.61
8.2.30.0040.00418.10
8.2.20.0040.00417.52
8.2.10.0030.00617.68
8.2.00.0040.00417.71
8.1.280.0090.00625.92
8.1.270.0030.00624.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.98
8.1.230.0090.00319.16
8.1.220.0000.00917.79
8.1.210.0060.00320.89
8.1.200.0030.00617.22
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0000.00918.66
8.1.160.0000.00718.73
8.1.150.0050.00218.56
8.1.140.0000.00817.38
8.1.130.0000.00617.75
8.1.120.0040.00417.29
8.1.110.0030.00517.41
8.1.100.0030.00417.31
8.1.90.0040.00417.45
8.1.80.0030.00317.34
8.1.70.0000.00817.35
8.1.60.0030.00617.54
8.1.50.0050.00217.34
8.1.40.0000.00717.45
8.1.30.0020.00517.40
8.1.20.0040.00417.47
8.1.10.0000.00717.34
8.1.00.0050.00217.31
8.0.300.0000.00819.52
8.0.290.0000.00716.75
8.0.280.0070.00018.42
8.0.270.0030.00317.28
8.0.260.0070.00016.81
8.0.250.0020.00516.84
8.0.240.0060.00316.83
8.0.230.0000.00716.90
8.0.220.0030.00316.88
8.0.210.0000.00716.88
8.0.200.0030.00316.93
8.0.190.0040.00416.88
8.0.180.0040.00416.84
8.0.170.0090.00016.88
8.0.160.0040.00416.93
8.0.150.0030.00616.76
8.0.140.0070.00016.80
8.0.130.0060.00013.24
8.0.120.0040.00416.69
8.0.110.0040.00416.83
8.0.100.0050.00216.83
8.0.90.0050.00217.00
8.0.80.0070.00716.88
8.0.70.0030.00316.87
8.0.60.0000.00816.90
8.0.50.0000.00716.91
8.0.30.0110.01117.10
8.0.20.0100.00816.98
8.0.10.0040.00416.78
8.0.00.0060.01116.81
7.4.330.0030.00313.09
7.4.320.0050.00216.43
7.4.300.0070.00016.47
7.4.290.0040.00416.50
7.4.280.0030.00516.51
7.4.270.0000.00816.64
7.4.260.0000.00613.20
7.4.250.0070.00316.43
7.4.240.0040.00416.50
7.4.230.0070.00016.68
7.4.220.0070.01416.62
7.4.210.0040.01116.59
7.4.200.0040.00416.65
7.4.190.0030.00316.46
7.4.160.0070.01016.52
7.4.150.0060.01216.37
7.4.140.0110.00716.41
7.4.130.0090.01016.52
7.4.120.0090.00816.48
7.4.110.0090.00916.46
7.4.100.0130.00316.69
7.4.90.0070.01116.57
7.4.80.0030.01416.36
7.4.70.0100.01316.29
7.4.60.0120.01216.55
7.4.50.0060.00316.39
7.4.40.0070.00716.19
7.4.30.0030.01316.40
7.4.10.0060.01214.99
7.4.00.0050.01214.76
7.3.330.0040.00413.21
7.3.320.0020.00213.21
7.3.310.0040.00416.30
7.3.300.0030.00516.11
7.3.290.0120.00916.41
7.3.280.0070.01016.28
7.3.270.0210.00816.25
7.3.260.0060.01516.40
7.3.250.0110.00816.38
7.3.240.0060.01216.21
7.3.230.0000.02116.36
7.3.210.0120.00616.36
7.3.200.0120.00619.39
7.3.190.0150.00316.31
7.3.180.0060.01016.63
7.3.170.0140.00316.23
7.3.160.0080.00916.33
7.3.130.0080.01114.74
7.3.120.0090.00914.74
7.3.110.0080.00714.75
7.3.100.0070.00914.84
7.3.90.0070.00714.63
7.3.80.0020.01114.78
7.3.70.0090.00514.70
7.3.60.0060.00814.66
7.3.50.0040.00814.62
7.3.40.0070.00514.72
7.3.30.0020.01114.67
7.3.20.0050.00916.50
7.3.10.0040.00716.53
7.3.00.0070.00816.49
7.2.330.0130.00416.38
7.2.320.0090.01216.66
7.2.310.0130.01116.72
7.2.300.0040.01816.62
7.2.290.0110.01116.71
7.2.260.0120.00714.92
7.2.250.0070.00915.03
7.2.240.0050.01015.12
7.2.230.0030.01215.03
7.2.220.0060.00815.05
7.2.210.0100.00614.81
7.2.200.0050.00814.88
7.2.190.0030.01014.84
7.2.180.0070.00615.13
7.2.170.0070.00614.90
7.2.160.0050.00914.92
7.2.150.0040.00816.74
7.2.140.0050.00716.86
7.2.130.0070.00416.68
7.2.120.0060.00716.91
7.2.110.0080.00616.79
7.2.100.0080.00916.83
7.2.90.0100.00416.71
7.2.80.0040.01116.83
7.2.70.0050.00816.85
7.2.60.0060.00916.90
7.2.50.0090.00416.79
7.2.40.0070.00816.79
7.2.30.0090.00717.02
7.2.20.0100.00516.67
7.2.10.0030.01116.88
7.2.00.0080.00717.48
7.1.330.0050.00815.72
7.1.320.0080.00715.61
7.1.310.0060.00815.69
7.1.300.0030.00815.68
7.1.290.0080.00515.70
7.1.280.0040.00815.65
7.1.270.0030.00915.65
7.1.260.0080.00515.67
7.1.250.0050.00615.57
7.1.240.0060.00715.75
7.1.230.0110.00315.67
7.1.220.0040.00615.67
7.1.210.0020.01215.61
7.1.200.0030.00915.69
7.1.190.0020.00915.69
7.1.180.0060.00815.72
7.1.170.0050.00615.71
7.1.160.0040.00715.61
7.1.150.0090.00415.73
7.1.140.0040.00915.78
7.1.130.0060.00715.65
7.1.120.0030.01015.85
7.1.110.0050.00615.75
7.1.100.0040.01016.37
7.1.90.0030.00815.74
7.1.80.0050.00615.71
7.1.70.0070.00416.07
7.1.60.0050.00916.20
7.1.50.0060.00715.92
7.1.40.0040.01015.84
7.1.30.0050.00815.93
7.1.20.0060.00615.86
7.1.10.0040.00715.92
7.1.00.0080.00515.96
7.0.330.0020.01015.30
7.0.320.0070.00315.36
7.0.310.0050.00915.35
7.0.300.0050.00715.35
7.0.290.0040.00915.27
7.0.280.0060.00815.24
7.0.270.0060.00615.20
7.0.260.0030.00815.37
7.0.250.0090.00615.35
7.0.240.0030.00815.35
7.0.230.0050.00615.30
7.0.220.0070.00415.41
7.0.210.0050.00515.26
7.0.200.0050.00715.60
7.0.190.0060.00515.63
7.0.180.0050.00615.58
7.0.170.0070.00615.61
7.0.160.0070.00515.48
7.0.150.0030.00915.54
7.0.140.0070.00615.62
7.0.130.0020.00915.54
7.0.120.0060.00715.61
7.0.110.0050.00715.55
7.0.100.0080.00315.63
7.0.90.0030.00815.60
7.0.80.0050.00715.65
7.0.70.0050.00715.59
7.0.60.0060.00615.50
7.0.50.0060.00915.67
7.0.40.0050.00914.06
7.0.30.0060.00614.00
7.0.20.0070.00413.93
7.0.10.0050.00614.04
7.0.00.0040.00914.03
5.6.400.0050.00714.19
5.6.390.0020.01214.12
5.6.380.0030.00814.31
5.6.370.0040.00814.25
5.6.360.0050.00714.16
5.6.350.0050.00914.43
5.6.340.0060.00814.14
5.6.330.0020.01014.04
5.6.320.0030.01014.25
5.6.310.0030.00914.37
5.6.300.0060.01716.00
5.6.290.0110.01815.75
5.6.280.0100.01415.93
5.6.270.0070.02315.94
5.6.260.0040.01615.79
5.6.250.0040.01915.92
5.6.240.0030.01915.89
5.6.230.0060.01515.84
5.6.220.0050.01915.76
5.6.210.0040.01615.89
5.6.200.0040.01915.77
5.6.190.0040.02015.83
5.6.180.0040.01815.75
5.6.170.0100.01915.90
5.6.160.0060.01715.86
5.6.150.0070.01815.85
5.6.140.0030.02015.87
5.6.130.0040.01916.00
5.6.120.0040.02815.86
5.6.110.0020.01815.85
5.6.100.0070.01415.82
5.6.90.0030.01815.81
5.6.80.0100.01615.58
5.6.70.0120.01915.67
5.6.60.0130.01515.57
5.6.50.0070.01515.72
5.6.40.0060.01315.69
5.6.30.0070.02715.70
5.6.20.0080.01915.69
5.6.10.0020.02015.74
5.6.00.0090.01315.65
5.5.380.0140.08117.53
5.5.370.0090.05317.58
5.5.360.0030.04317.54
5.5.350.0100.08417.43
5.5.340.0070.06518.09
5.5.330.0070.04417.84
5.5.320.0070.04418.18
5.5.310.0100.04218.00
5.5.300.0100.03618.02
5.5.290.0070.04617.84
5.5.280.0100.07618.08
5.5.270.0070.04017.86
5.5.260.0090.04118.07
5.5.250.0070.04417.87
5.5.240.0070.08017.52
5.5.230.0000.07117.56
5.5.220.0030.06917.38
5.5.210.0030.04117.06
5.5.200.0030.04117.49
5.5.190.0100.07317.48
5.5.180.0030.04117.41
5.5.160.0030.05517.05
5.5.150.0070.03817.35
5.5.140.0090.03417.21
5.5.130.0060.04117.35
5.5.120.0040.04317.48
5.5.110.0040.04317.38
5.5.100.0070.04717.11
5.5.90.0030.04317.09
5.5.80.0070.04417.21
5.5.70.0000.04516.95
5.5.60.0030.04417.38
5.5.50.0070.04617.42
5.5.40.0030.04117.34
5.5.30.0030.04217.33
5.5.20.0030.04117.07
5.5.10.0030.05017.27
5.5.00.0030.04317.24
5.4.450.0040.07719.45
5.4.440.0060.06519.41
5.4.430.0130.06719.43
5.4.420.0130.03919.40
5.4.410.0100.07719.18
5.4.400.0030.08418.98
5.4.390.0000.08019.23
5.4.380.0030.04318.89
5.4.370.0040.04719.20
5.4.360.0130.03118.92
5.4.350.0060.04218.98
5.4.340.0070.03718.98
5.4.320.0030.04619.22
5.4.310.0000.04219.23
5.4.300.0060.03919.10
5.4.290.0150.02918.91
5.4.280.0160.06219.07
5.4.270.0140.03918.88
5.4.260.0100.03718.89
5.4.250.0130.07319.06
5.4.240.0030.04519.05
5.4.230.0100.03518.87
5.4.220.0000.04919.16
5.4.210.0170.06919.20
5.4.200.0000.04719.05
5.4.190.0090.03618.97
5.4.180.0060.03818.91
5.4.170.0060.04119.05
5.4.160.0030.04219.11
5.4.150.0040.03918.88
5.4.140.0070.03416.73
5.4.130.0030.03916.55
5.4.120.0030.03716.72
5.4.110.0090.03216.76
5.4.100.0040.04716.79
5.4.90.0040.03516.54
5.4.80.0070.03716.75
5.4.70.0100.03916.53
5.4.60.0060.03816.60
5.4.50.0100.03716.74
5.4.40.0030.03816.63
5.4.30.0030.03716.45
5.4.20.0100.03016.67
5.4.10.0030.04516.46
5.4.00.0030.04215.92
5.3.290.0090.03715.92
5.3.280.0000.04515.92
5.3.270.0030.04115.92
5.3.260.0100.06115.92
5.3.250.0110.02915.92
5.3.240.0060.03715.92
5.3.230.0000.04315.92
5.3.220.0000.05315.92
5.3.210.0070.03615.92
5.3.200.0070.03415.92
5.3.190.0000.06015.92
5.3.180.0070.05615.92
5.3.170.0120.03115.92
5.3.160.0030.04415.92
5.3.150.0060.04115.92
5.3.140.0100.03815.92
5.3.130.0110.03215.92
5.3.120.0070.04715.92
5.3.110.0030.04015.92
5.3.100.0070.03415.92
5.3.90.0030.04015.92
5.3.80.0000.05415.92
5.3.70.0000.04315.92
5.3.60.0000.04115.92
5.3.50.0140.04115.92
5.3.40.0000.04315.92
5.3.30.0090.04015.92
5.3.20.0070.06515.92
5.3.10.0030.04115.92
5.3.00.0070.03615.92
5.2.170.0030.03515.92
5.2.160.0070.03315.92
5.2.150.0140.02415.92
5.2.140.0100.02415.92
5.2.130.0130.02615.92
5.2.120.0060.03115.92
5.2.110.0070.02915.92
5.2.100.0070.02915.92
5.2.90.0000.03215.92
5.2.80.0030.03215.92
5.2.70.0060.02815.92
5.2.60.0070.02615.92
5.2.50.0040.02915.92
5.2.40.0070.02515.92
5.2.30.0000.04015.92
5.2.20.0100.02715.92
5.2.10.0090.02615.92
5.2.00.0030.03115.92
5.1.60.0030.02615.92
5.1.50.0000.02715.92
5.1.40.0040.02615.92
5.1.30.0000.03315.92
5.1.20.0030.02915.92
5.1.10.0000.03115.92
5.1.00.0030.03315.92
5.0.50.0060.01715.92
5.0.40.0060.01515.92
5.0.30.0000.03415.92
5.0.20.0030.03415.92
5.0.10.0000.02515.92
5.0.00.0070.02715.92
4.4.90.0040.01515.92
4.4.80.0000.01715.92
4.4.70.0000.01715.92
4.4.60.0000.01915.92
4.4.50.0000.01715.92
4.4.40.0030.02415.92
4.4.30.0030.01415.92
4.4.20.0000.02115.92
4.4.10.0040.01615.92
4.4.00.0030.02315.92
4.3.110.0030.02115.92
4.3.100.0030.01315.92
4.3.90.0120.01215.92
4.3.80.0000.02715.92
4.3.70.0030.01515.92
4.3.60.0000.01615.92
4.3.50.0090.00915.92
4.3.40.0000.02515.92
4.3.30.0000.02715.92
4.3.20.0070.01615.92
4.3.10.0000.01715.92
4.3.00.0100.02015.92

preferences:
53.68 ms | 401 KiB | 5 Q