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(); 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.0150.00716.74
8.3.60.0030.01018.56
8.3.50.0100.00821.13
8.3.40.0110.00318.67
8.3.30.0160.00319.14
8.3.20.0080.00022.09
8.3.10.0050.00321.82
8.3.00.0170.00317.75
8.2.180.0150.00618.54
8.2.170.0110.00318.79
8.2.160.0070.01422.96
8.2.150.0070.00024.18
8.2.140.0090.00024.66
8.2.130.0040.00426.16
8.2.120.0110.00719.36
8.2.110.0100.00319.38
8.2.100.0080.00417.91
8.2.90.0040.00719.57
8.2.80.0020.00519.38
8.2.70.0000.00917.50
8.2.60.0040.00717.80
8.2.50.0000.00818.07
8.2.40.0000.00817.91
8.2.30.0040.00418.08
8.2.20.0000.00717.59
8.2.10.0080.00018.03
8.2.00.0000.00718.22
8.1.280.0130.00925.92
8.1.270.0050.00320.25
8.1.260.0060.00926.35
8.1.250.0000.00728.09
8.1.240.0060.00322.53
8.1.230.0120.00021.03
8.1.220.0050.00517.74
8.1.210.0030.00518.97
8.1.200.0030.00617.13
8.1.190.0060.00317.52
8.1.180.0040.00418.10
8.1.170.0060.00318.64
8.1.160.0040.00418.92
8.1.150.0050.00218.82
8.1.140.0000.00717.41
8.1.130.0000.00817.66
8.1.120.0070.00017.26
8.1.110.0080.00017.32
8.1.100.0050.00217.33
8.1.90.0000.00717.32
8.1.80.0030.00517.29
8.1.70.0030.00317.25
8.1.60.0030.00617.48
8.1.50.0040.00417.42
8.1.40.0000.00817.34
8.1.30.0040.00417.56
8.1.20.0040.00417.40
8.1.10.0000.00717.37
8.1.00.0050.00317.37
8.0.300.0000.00719.86
8.0.290.0030.00516.63
8.0.280.0030.00318.41
8.0.270.0040.00417.30
8.0.260.0030.00318.44
8.0.250.0030.00316.91
8.0.240.0000.00716.94
8.0.230.0000.00716.96
8.0.220.0050.00316.98
8.0.210.0070.00016.90
8.0.200.0030.00316.94
8.0.190.0040.00416.96
8.0.180.0050.00516.93
8.0.170.0000.00816.95
8.0.160.0000.00816.78
8.0.150.0000.00716.71
8.0.140.0040.00416.74
8.0.130.0030.00313.32
8.0.120.0070.00016.74
8.0.110.0040.00416.79
8.0.100.0040.00316.86
8.0.90.0070.00116.85
8.0.80.0080.00316.85
8.0.70.0060.00116.87
8.0.60.0020.00616.83
8.0.50.0040.00416.74
8.0.30.0140.00316.96
8.0.20.0080.00617.23
8.0.10.0030.00516.88
8.0.00.0040.01016.68
7.4.330.0000.00515.03
7.4.320.0030.00316.51
7.4.300.0060.00016.46
7.4.290.0030.00316.59
7.4.280.0040.00416.48
7.4.270.0070.00016.60
7.4.260.0000.00716.43
7.4.250.0040.00416.55
7.4.240.0030.00516.49
7.4.230.0060.00216.44
7.4.220.0100.00216.47
7.4.210.0050.00616.48
7.4.200.0020.00516.48
7.4.190.0000.00816.65
7.4.180.0000.00816.43
7.4.160.0060.00516.46
7.4.150.0070.00616.90
7.4.140.0110.00517.30
7.4.130.0070.00716.47
7.4.120.0040.00916.44
7.4.110.0120.00216.46
7.4.100.0060.00716.65
7.4.90.0080.00416.32
7.4.80.0080.01017.82
7.4.70.0070.00516.46
7.4.60.0070.00516.38
7.4.50.0040.00416.34
7.4.40.0080.00416.36
7.4.30.0070.00516.44
7.4.20.0000.00716.39
7.4.10.0050.00216.29
7.4.00.0000.01215.53
7.3.330.0000.00613.24
7.3.320.0060.00013.16
7.3.310.0010.00616.24
7.3.300.0000.00716.24
7.3.290.0110.00416.29
7.3.280.0050.00916.26
7.3.270.0060.00816.78
7.3.260.0070.00816.29
7.3.250.0090.00716.26
7.3.240.0050.00716.30
7.3.230.0080.00516.35
7.3.220.0080.00016.21
7.3.210.0020.01016.17
7.3.200.0050.00717.79
7.3.190.0050.00616.42
7.3.180.0070.00416.23
7.3.170.0080.00416.31
7.3.160.0020.01116.24
7.3.150.0070.00016.26
7.3.140.0040.00416.15
7.3.130.0000.00616.26
7.3.120.0000.00616.11
7.3.110.0000.00716.05
7.3.100.0030.00616.21
7.3.90.0030.00616.52
7.3.80.0070.00016.26
7.3.70.0030.00316.16
7.3.60.0000.00816.36
7.3.50.0070.00016.38
7.3.40.0030.00316.36
7.3.30.0000.00716.39
7.3.20.0120.00016.20
7.3.10.0040.00416.27
7.3.00.0000.00716.41
7.2.340.0040.00416.29
7.2.330.0030.01016.39
7.2.320.0080.00416.59
7.2.310.0080.00516.59
7.2.300.0100.00316.58
7.2.290.0060.00916.47
7.2.280.0000.00816.40
7.2.270.0060.00316.43
7.2.260.0030.00616.37
7.2.250.0040.00416.27
7.2.240.0040.00416.25
7.2.230.0050.00316.38
7.2.220.0000.00916.30
7.2.210.0050.00316.40
7.2.200.0080.00016.55
7.2.190.0040.00416.50
7.2.180.0040.00416.30
7.2.170.0030.00516.62
7.2.160.0040.00416.57
7.2.150.0000.00916.39
7.2.140.0040.00416.54
7.2.130.0040.00416.59
7.2.120.0060.00316.74
7.2.110.0090.00216.71
7.2.100.0020.00716.66
7.2.90.0110.00016.51
7.2.80.0090.00016.58
7.2.70.0060.00316.41
7.2.60.0040.00916.55
7.2.50.0060.00616.60
7.2.40.0050.00516.47
7.2.30.0030.00616.66
7.2.20.0090.00016.68
7.2.10.0050.00516.55
7.2.00.0070.00216.51
7.1.330.0040.00415.56
7.1.320.0090.00615.38
7.1.310.0050.00315.58
7.1.300.0080.00015.24
7.1.290.0080.00015.51
7.1.280.0040.00415.43
7.1.270.0030.00515.57
7.1.260.0110.00415.48
7.1.250.0060.00315.35
7.1.240.0050.00215.43
7.1.230.0040.00415.50
7.1.220.0060.00215.49
7.1.210.0050.00315.38
7.1.200.0020.00915.59
7.1.190.0030.00615.31
7.1.180.0040.00415.43
7.1.170.0060.00315.37
7.1.160.0050.00515.23
7.1.150.0030.00615.40
7.1.140.0030.00515.30
7.1.130.0000.00815.45
7.1.120.0050.00315.23
7.1.110.0040.00415.47
7.1.100.0130.00015.41
7.1.90.0030.00615.50
7.1.80.0030.00515.54
7.1.70.0050.00616.42
7.1.60.0030.00916.58
7.1.50.0040.00716.59
7.1.40.0040.00716.60
7.1.30.0030.00716.58
7.1.20.0060.00616.50
7.1.10.0060.00416.52
7.1.00.0020.01016.51
7.0.330.0030.00514.93
7.0.320.0060.00215.23
7.0.310.0060.00315.09
7.0.300.0000.00815.11
7.0.290.1000.00615.88
7.0.280.0000.00815.25
7.0.270.0040.00415.15
7.0.260.0060.00315.14
7.0.250.0040.00415.11
7.0.240.0050.00315.19
7.0.230.0050.00315.30
7.0.220.0060.00615.05
7.0.210.0050.00215.15
7.0.200.0020.01016.34
7.0.190.0040.00816.38
7.0.180.0050.00416.41
7.0.170.0030.00516.44
7.0.160.0070.00216.43
7.0.150.0040.00416.33
7.0.140.0040.00616.36
7.0.130.0040.00516.38
7.0.120.0040.00716.41
7.0.110.0020.00616.44
7.0.100.0030.00416.39
7.0.90.0020.00616.35
7.0.80.0020.00716.45
7.0.70.0030.00716.28
7.0.60.0050.00316.42
7.0.50.0040.00516.40
7.0.40.0040.00716.45
7.0.30.0070.00316.44
7.0.20.0030.00416.44
7.0.10.0020.00616.49
7.0.00.0070.00516.37
5.6.400.0030.00315.68
5.6.390.0000.00615.77
5.6.380.0040.00415.57
5.6.370.0070.00015.76
5.6.360.0030.00315.64
5.6.350.0070.00015.83
5.6.340.0070.00015.80
5.6.330.0000.00615.60
5.6.320.0060.01015.01
5.6.310.0090.00015.80
5.6.300.0020.02318.34
5.6.290.0070.03218.29
5.6.280.0020.02518.40
5.6.270.0070.02118.42
5.6.260.0030.02218.36
5.6.250.0010.02518.26
5.6.240.0050.02118.39
5.6.230.0030.02518.35
5.6.220.0050.02018.36
5.6.210.0030.02218.43
5.6.200.0010.02518.31
5.6.190.0060.01918.30
5.6.180.0030.02418.46
5.6.170.0050.02218.42
5.6.160.0000.03118.42
5.6.150.0060.01918.38
5.6.140.0040.02518.45
5.6.130.0030.04218.33
5.6.120.0060.02118.29
5.6.110.0040.02418.37
5.6.100.0030.03218.38
5.6.90.0070.02518.31
5.6.80.0030.02817.99
5.6.70.0030.02317.97
5.6.60.0030.03318.04
5.6.50.0100.01817.90
5.6.40.0020.02618.01
5.6.30.0050.02817.96
5.6.20.0030.02418.07
5.6.10.0030.02218.03
5.6.00.0030.02117.89
5.5.380.0090.01616.75
5.5.370.0030.02516.84
5.5.360.0100.01516.74
5.5.350.0020.04016.61
5.5.340.0030.02216.91
5.5.330.0080.03716.87
5.5.320.0030.02716.90
5.5.310.0050.02016.77
5.5.300.0030.03416.77
5.5.290.0060.04116.60
5.5.280.0030.02416.78
5.5.270.0090.02116.70
5.5.260.0050.02216.69
5.5.250.0030.02416.79
5.5.240.0000.02716.71
5.5.230.0030.02516.61
5.5.220.0030.03516.71
5.5.210.0000.02416.72
5.5.200.0050.03616.70
5.5.190.0020.02216.70
5.5.180.0070.02516.58
5.5.170.0000.00715.64
5.5.160.0050.02716.63
5.5.150.0030.02016.54
5.5.140.0060.02416.61
5.5.130.0020.02416.52
5.5.120.0000.02416.60
5.5.110.0000.04416.53
5.5.100.0070.02116.74
5.5.90.0030.02016.74
5.5.80.0020.03616.66
5.5.70.0050.04116.64
5.5.60.0030.02016.74
5.5.50.0020.02816.74
5.5.40.0050.02016.57
5.5.30.0030.02116.67
5.5.20.0070.02216.79
5.5.10.0020.02316.71
5.5.00.0040.02116.57
5.4.450.0030.02516.03
5.4.440.0030.02216.04
5.4.430.0020.02216.09
5.4.420.0030.03716.10
5.4.410.0040.02116.01
5.4.400.0010.02215.74
5.4.390.0020.02515.83
5.4.380.0030.02215.84
5.4.370.0020.02415.86
5.4.360.0030.02515.77
5.4.350.0050.02015.80
5.4.340.0020.02115.86
5.4.330.0000.00612.61
5.4.320.0020.02415.90
5.4.310.0070.02215.97
5.4.300.0030.01915.91
5.4.290.0050.01715.84
5.4.280.0030.02115.88
5.4.270.0000.02215.98
5.4.260.0030.02015.79
5.4.250.0040.01915.77
5.4.240.0030.02015.78
5.4.230.0030.02115.80
5.4.220.0030.03215.57
5.4.210.0030.02215.74
5.4.200.0010.02415.59
5.4.190.0050.03815.67
5.4.180.0020.02515.75
5.4.170.0100.02015.73
5.4.160.0000.02515.71
5.4.150.0000.02615.64
5.4.140.0020.02815.14
5.4.130.0050.01715.17
5.4.120.0060.01515.12
5.4.110.0030.01915.21
5.4.100.0050.01815.14
5.4.90.0060.01615.19
5.4.80.0060.01915.24
5.4.70.0080.01515.03
5.4.60.0140.01915.11
5.4.50.0020.02015.02
5.4.40.0030.01815.21
5.4.30.0060.01615.09
5.4.20.0020.01915.24
5.4.10.0040.02515.20
5.4.00.0050.01815.07

preferences:
35.68 ms | 401 KiB | 5 Q