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(){ parent::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(); 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.0180.00318.56
8.3.60.0110.00416.49
8.3.50.0140.00917.25
8.3.40.0060.00918.85
8.3.30.0100.00318.76
8.3.20.0040.00418.69
8.3.10.0040.00418.64
8.3.00.0040.00719.25
8.2.180.0110.00716.50
8.2.170.0040.01122.96
8.2.160.0070.00718.67
8.2.150.0070.00324.18
8.2.140.0000.00924.66
8.2.130.0040.00426.16
8.2.120.0040.00420.75
8.2.110.0070.00320.94
8.2.100.0110.00017.78
8.2.90.0070.00419.34
8.2.80.0060.00319.41
8.2.70.0070.00317.46
8.2.60.0080.00017.93
8.2.50.0000.00818.07
8.2.40.0050.00218.09
8.2.30.0080.00018.03
8.2.20.0070.00017.48
8.2.10.0070.00017.71
8.2.00.0000.00717.61
8.1.280.0130.00725.92
8.1.270.0040.00423.99
8.1.260.0080.00026.35
8.1.250.0020.00528.09
8.1.240.0100.00322.65
8.1.230.0070.00420.90
8.1.220.0040.00417.76
8.1.210.0050.00319.03
8.1.200.0030.00617.35
8.1.190.0050.00217.53
8.1.180.0040.00418.10
8.1.170.0000.00818.64
8.1.160.0000.00718.80
8.1.150.0040.00418.59
8.1.140.0040.00417.42
8.1.130.0030.00317.75
8.1.120.0050.00317.35
8.1.110.0030.00317.28
8.1.100.0000.00717.27
8.1.90.0030.00617.34
8.1.80.0080.00017.39
8.1.70.0030.00317.39
8.1.60.0040.00417.37
8.1.50.0000.00717.44
8.1.40.0050.00217.44
8.1.30.0000.00917.52
8.1.20.0080.00017.51
8.1.10.0000.00817.51
8.1.00.0040.00417.32
8.0.300.0040.00419.76
8.0.290.0040.00416.88
8.0.280.0030.00318.43
8.0.270.0070.00017.09
8.0.260.0040.00416.86
8.0.250.0000.00816.96
8.0.240.0030.00316.82
8.0.230.0030.00316.91
8.0.220.0000.00616.77
8.0.210.0030.00316.82
8.0.200.0030.00316.95
8.0.190.0000.00816.98
8.0.180.0060.00316.90
8.0.170.0050.00516.71
8.0.160.0040.00316.86
8.0.150.0030.00616.94
8.0.140.0000.00816.72
8.0.130.0030.00313.39
8.0.120.0060.00316.86
8.0.110.0000.00716.73
8.0.100.0030.00516.91
8.0.90.0030.00416.94
8.0.80.0060.00916.91
8.0.70.0050.00316.68
8.0.60.0000.00716.65
8.0.50.0040.00416.90
8.0.30.0060.00917.17
8.0.20.0110.00917.21
8.0.10.0070.00016.74
8.0.00.0120.00816.63
7.4.330.0030.00312.99
7.4.320.0030.00316.56
7.4.300.0060.00016.48
7.4.290.0030.00316.46
7.4.280.0070.00016.52
7.4.270.0000.00716.45
7.4.260.0050.00013.21
7.4.250.0080.00016.48
7.4.240.0060.00016.38
7.4.230.0030.00316.65
7.4.220.0000.01816.46
7.4.210.0030.01116.61
7.4.200.0030.00316.54
7.4.190.0000.00716.51
7.4.160.0080.00816.18
7.4.150.0130.00716.30
7.4.140.0070.01416.51
7.4.130.0160.00616.49
7.4.120.0120.00616.35
7.4.110.0100.00716.34
7.4.100.0150.00816.43
7.4.90.0120.00816.42
7.4.80.0090.01119.39
7.4.70.0040.01216.42
7.4.60.0130.00316.57
7.4.50.0060.00016.37
7.4.40.0060.00916.33
7.4.30.0160.00016.50
7.4.00.0090.00014.87
7.3.330.0000.00713.15
7.3.320.0060.00013.24
7.3.310.0040.00416.29
7.3.300.0000.00716.14
7.3.290.0080.00916.27
7.3.280.0080.00816.32
7.3.270.0150.00316.34
7.3.260.0110.00616.43
7.3.250.0090.01216.26
7.3.240.0030.01316.27
7.3.230.0100.01116.26
7.3.210.0130.01016.54
7.3.200.0100.00616.55
7.3.190.0160.00016.57
7.3.180.0070.01016.27
7.3.170.0070.01016.36
7.3.160.0100.00716.16
7.3.120.0040.01114.99
7.2.330.0030.01316.38
7.2.320.0130.00616.50
7.2.310.0120.01216.66
7.2.300.0000.01716.48
7.2.290.0060.01616.78
7.2.80.0070.01016.69
7.1.200.0120.00315.62
7.1.70.0000.01117.02
7.1.60.0040.01119.30
7.1.50.0070.00416.82
7.1.00.0000.03722.28
7.0.200.0090.00316.68
7.0.140.0070.07021.96
7.0.120.0000.06722.19
7.0.60.0100.06719.93
7.0.50.0030.08317.90
7.0.40.0070.04020.24
7.0.30.0170.04320.19
7.0.20.0200.03720.09
7.0.10.0170.06720.21
7.0.00.0070.05320.23
5.6.280.0000.07721.11
5.6.210.0130.07020.61
5.6.200.0070.08718.23
5.6.190.0000.04720.55
5.6.180.0230.08020.60
5.6.170.0300.04720.71
5.6.160.0170.08020.52
5.6.150.0070.08018.18
5.6.140.0030.05318.12
5.6.130.0030.08718.28
5.6.120.0000.04321.05
5.6.110.0100.07721.04
5.6.100.0030.07021.13
5.6.90.0070.05320.98
5.6.80.0170.07320.37
5.5.350.0400.07020.41
5.5.340.0100.03317.92
5.5.330.0130.05020.37
5.5.320.0100.04720.38
5.5.310.0300.06020.27
5.5.300.0030.04017.98
5.5.290.0030.04018.01
5.5.280.0070.06320.73
5.5.270.0030.04720.79
5.5.260.0030.07320.86
5.5.250.0170.06720.64
5.5.240.0030.03720.15
5.4.450.4000.03719.41
5.4.440.3270.04319.18
5.4.430.3500.05019.30
5.4.420.3400.04019.46
5.4.410.3530.04319.50
5.4.400.3430.03319.24
5.4.390.3130.03719.15
5.4.380.3230.02319.00
5.4.370.3370.02319.30
5.4.360.3070.04019.08
5.4.350.2770.04319.06
5.4.340.3230.04319.08
5.4.320.3400.03719.13
5.4.310.3400.04019.09
5.4.300.3430.03019.06
5.4.290.3330.04018.98
5.4.280.3430.03319.24
5.4.270.3570.03019.30
5.4.260.4130.03319.15
5.4.250.4000.04319.08
5.4.240.3470.03719.23
5.4.230.2800.04019.22
5.4.220.4030.03319.12
5.4.210.3370.03719.05
5.4.200.3130.03319.05
5.4.190.3370.03719.05
5.4.180.3230.04319.18
5.4.170.3430.03319.20
5.4.160.3030.04019.23
5.4.150.3400.04019.20
5.4.140.3070.03716.57
5.4.130.3400.03316.58
5.4.120.3330.03716.56
5.4.110.3500.03316.50
5.4.100.2870.03316.61
5.4.90.3470.02716.66
5.4.80.3300.04016.49
5.4.70.3430.03016.59
5.4.60.3970.04016.43
5.4.50.3170.03316.43
5.4.40.3830.03316.30
5.4.30.4830.02316.53
5.4.20.3300.03016.40
5.4.10.3600.03316.51
5.4.00.3630.03015.78
5.3.290.3430.04314.75
5.3.280.3570.04314.50
5.3.270.3430.04014.69
5.3.260.3130.03314.62
5.3.250.3200.04014.76
5.3.240.3070.04314.53
5.3.230.3370.04014.72
5.3.220.3370.03314.57
5.3.210.3830.04014.65
5.3.200.3970.03714.45
5.3.190.3230.03014.47
5.3.180.3130.03314.47
5.3.170.3330.03714.54
5.3.160.2900.04714.58
5.3.150.3270.03714.56
5.3.140.3570.04314.64
5.3.130.3400.04314.63
5.3.120.3230.04014.48
5.3.110.3300.02714.47
5.3.100.3100.03713.96
5.3.90.3170.03013.93
5.3.80.3130.03014.07
5.3.70.3330.04314.08
5.3.60.4130.03313.88
5.3.50.3430.03313.95
5.3.40.3370.03313.96
5.3.30.3230.03313.89
5.3.20.3200.03313.62
5.3.10.3230.03313.63
5.3.00.3170.03713.56
5.2.170.2930.03312.60
5.2.160.2870.02712.60
5.2.150.2800.03012.60
5.2.140.2870.03012.60
5.2.130.2830.02312.60
5.2.120.2900.02312.60
5.2.110.2770.02312.60
5.2.100.2830.03712.60
5.2.90.2630.03012.60
5.2.80.2630.02712.60
5.2.70.2870.02712.60
5.2.60.2870.03312.60
5.2.50.2670.02312.60
5.2.40.2130.02312.60
5.2.30.2300.03312.60
5.2.20.2270.03312.60
5.2.10.2130.02012.60
5.2.00.2470.02312.60
5.1.60.2470.02312.60
5.1.50.2400.03312.60
5.1.40.2370.02312.60
5.1.30.2470.03012.60
5.1.20.2200.02712.60
5.1.10.2300.03012.60
5.1.00.2330.03012.60
5.0.50.1270.02312.60
5.0.40.1030.02012.60
5.0.30.1030.03012.60
5.0.20.1370.02012.60
5.0.10.1270.02712.60
5.0.00.1100.03712.60
4.4.90.1030.01712.60
4.4.80.1170.01712.60
4.4.70.1030.01712.60
4.4.60.1200.01712.60
4.4.50.1200.02312.60
4.4.40.1030.02712.60
4.4.30.1130.00712.60
4.4.20.1270.01712.60
4.4.10.1130.01712.60
4.4.00.1030.02712.60
4.3.110.1200.02012.60
4.3.100.1070.01712.60
4.3.90.1270.02012.60
4.3.80.1030.02312.60
4.3.70.1270.02012.60
4.3.60.1300.01712.60
4.3.50.1200.01312.60
4.3.40.1200.01712.60
4.3.30.0630.02712.60
4.3.20.0600.02012.60
4.3.10.0630.01712.60
4.3.00.0700.02012.60

preferences:
37.63 ms | 401 KiB | 5 Q