3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Base { public static function describe() { static $description = null; if ($description === null) { $description = "I am a " . static::getName() . "\n"; } return $description; } } class Car extends Base { protected static function getName() { return 'car'; } public static function describe() { return 'Vroom! ' . parent::describe(); } } class Peugot extends Car { protected static function getName() { return 'peugot'; } } class Renault extends Car { protected static function getName() { return 'renault'; } } echo Peugot::describe(); echo Renault::describe(); echo Car::describe();

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.0070.00716.63
8.3.50.0140.00722.04
8.3.40.0180.00318.69
8.3.30.0040.01119.04
8.3.20.0050.00320.34
8.3.10.0000.00821.60
8.3.00.0050.00319.26
8.2.180.0110.00618.41
8.2.170.0140.00322.96
8.2.160.0100.00320.47
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0020.00526.16
8.2.120.0040.00419.77
8.2.110.0070.00421.18
8.2.100.0080.00417.84
8.2.90.0060.00317.97
8.2.80.0050.00317.97
8.2.70.0060.00317.50
8.2.60.0030.00517.80
8.2.50.0040.00418.07
8.2.40.0080.00019.94
8.2.30.0000.00917.95
8.2.20.0040.00417.69
8.2.10.0040.00417.93
8.2.00.0000.00717.67
8.1.280.0110.00425.92
8.1.270.0030.00620.60
8.1.260.0070.00026.35
8.1.250.0050.00328.09
8.1.240.0060.00322.65
8.1.230.0060.00620.91
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0030.00617.35
8.1.190.0040.00417.22
8.1.180.0000.00918.10
8.1.170.0060.00318.59
8.1.160.0080.00022.08
8.1.150.0040.00418.85
8.1.140.0050.00217.45
8.1.130.0070.00017.71
8.1.120.0040.00417.46
8.1.110.0040.00417.44
8.1.100.0040.00417.44
8.1.90.0000.00717.44
8.1.80.0000.00717.29
8.1.70.0000.00717.47
8.1.60.0000.00817.64
8.1.50.0000.00817.51
8.1.40.0050.00317.44
8.1.30.0030.00617.54
8.1.20.0040.00417.62
8.1.10.0000.00817.54
8.1.00.0050.00317.49
8.0.300.0040.00419.84
8.0.290.0050.00216.75
8.0.280.0040.00418.48
8.0.270.0000.00717.20
8.0.260.0030.00317.32
8.0.250.0030.00316.88
8.0.240.0000.00616.85
8.0.230.0040.00416.96
8.0.220.0080.00016.91
8.0.210.0070.00016.77
8.0.200.0000.00716.96
8.0.190.0000.00716.83
8.0.180.0080.00016.96
8.0.170.0000.00716.98
8.0.160.0040.00416.79
8.0.150.0050.00316.81
8.0.140.0040.00416.79
8.0.130.0000.00513.36
8.0.120.0030.00516.92
8.0.110.0020.00516.80
8.0.100.0000.00716.72
8.0.90.0000.00816.92
8.0.80.0060.01116.82
8.0.70.0000.01016.88
8.0.60.0000.00716.97
8.0.50.0040.00416.79
8.0.30.0160.00516.88
8.0.20.0120.00617.40
8.0.10.0000.00717.03
8.0.00.0090.00916.73
7.4.330.0000.00615.15
7.4.320.0000.00616.59
7.4.300.0030.00316.59
7.4.290.0050.00316.58
7.4.280.0000.00816.48
7.4.270.0030.00316.38
7.4.260.0030.00316.51
7.4.250.0000.00716.58
7.4.240.0030.00316.48
7.4.230.0000.00716.51
7.4.220.0170.00016.53
7.4.210.0050.01016.53
7.4.200.0030.00316.70
7.4.160.0060.00916.50
7.4.150.0130.01017.40
7.4.140.0140.00617.86
7.4.130.0060.01316.64
7.4.120.0070.01016.62
7.4.110.0030.01416.50
7.4.100.0070.01016.53
7.4.90.0060.01216.59
7.4.80.0120.00919.39
7.4.70.0130.00316.54
7.4.60.0070.01016.40
7.4.50.0060.00016.58
7.4.40.0060.01016.46
7.4.30.0090.00916.47
7.4.00.0060.01015.14
7.3.330.0020.00213.16
7.3.320.0130.00013.40
7.3.310.0000.00716.20
7.3.300.0030.00316.24
7.3.290.0070.00016.24
7.3.280.0060.01016.40
7.3.270.0110.01217.40
7.3.260.0090.00916.67
7.3.250.0120.00616.37
7.3.240.0160.00016.33
7.3.230.0090.01016.39
7.3.210.0100.00716.43
7.3.200.0060.01119.39
7.3.190.0090.00616.27
7.3.180.0030.01216.39
7.3.170.0100.00716.41
7.3.160.0120.00416.26
7.2.330.0160.00416.63
7.2.320.0050.01416.40
7.2.310.0000.01716.53
7.2.300.0140.00316.76
7.2.290.0030.01716.61
7.2.80.0000.01316.86
7.2.60.0080.00416.93
7.2.00.0040.01119.40
7.1.200.0040.01115.60
7.1.100.0000.01417.99
7.1.70.0030.01217.02
7.1.60.0060.01919.50
7.1.50.0130.01016.69
7.1.00.0070.07322.33
7.0.200.0000.00716.72
7.0.140.0030.06322.12
7.0.60.0030.05020.00
7.0.50.0100.04317.96
7.0.40.0000.10020.27
7.0.30.0370.08020.28
7.0.20.0300.04320.08
7.0.10.0330.08020.07
7.0.00.0100.04020.20
5.6.280.0100.06720.90
5.6.210.0170.07020.73
5.6.200.0070.07718.25
5.6.190.0100.08320.45
5.6.180.0270.06320.59
5.6.170.0200.04320.54
5.6.160.0070.07720.44
5.6.150.0100.03718.29
5.6.140.0100.04718.28
5.6.130.0000.04318.12
5.6.120.0070.04321.00
5.6.110.0030.04321.00
5.6.100.0030.06021.12
5.6.90.0100.07721.00
5.6.80.0100.07720.43
5.6.70.0200.07020.39
5.5.350.0100.03320.32
5.5.340.0070.08317.99
5.5.330.0000.08720.32
5.5.320.0130.04020.33
5.5.310.0270.06720.23
5.5.300.0030.03717.98
5.5.290.0070.06717.95
5.5.280.0100.08020.79
5.5.270.0100.08320.97
5.5.260.0100.08020.76
5.5.250.0130.07320.80
5.5.240.0230.06320.29
5.4.450.0130.05719.58
5.4.440.0700.06319.63
5.4.430.1370.06019.38
5.4.420.0770.08019.62
5.4.410.0870.05719.05
5.4.400.0130.06018.48
5.4.390.0270.05318.61
5.4.380.0170.05718.72
5.4.370.0070.06018.82
5.4.360.0170.05318.56
5.4.350.0300.04718.82
5.4.340.0170.05718.57
5.4.320.0270.04718.58
5.4.310.0200.06018.66
5.4.300.0130.05718.77
5.4.290.0200.05718.73
5.4.280.0370.06018.61
5.4.270.0170.05018.76
5.4.260.0200.04718.44
5.4.250.0200.05318.44
5.4.240.0170.07718.68
5.4.230.0170.07318.54
5.4.220.0200.07318.77
5.4.210.0070.07018.47
5.4.200.0230.04716.64
5.4.190.0200.06318.46
5.4.180.0130.05718.58
5.4.170.0200.05318.70
5.4.160.0170.05018.67
5.4.150.0200.05018.69
5.4.140.0170.07016.47
5.4.130.0200.04316.22
5.4.120.0200.04716.39
5.4.110.0170.05016.20
5.4.100.0230.05016.45
5.4.90.0130.05716.21
5.4.80.0170.05016.35
5.4.70.0230.05016.44
5.4.60.0230.04316.20
5.4.50.0330.05716.18
5.4.40.0170.05716.41
5.4.30.0300.05716.25
5.4.20.0130.06016.26
5.4.10.0130.06016.27
5.4.00.0400.03015.74
5.3.290.0300.06314.71
5.3.280.0100.06314.80
5.3.270.0330.04014.60
5.3.260.0230.05014.79
5.3.250.0200.04714.63
5.3.240.0130.05714.64
5.3.230.0170.05014.82
5.3.220.0230.04714.72
5.3.210.0100.06314.63
5.3.200.0170.07014.68
5.3.190.0170.06714.61
5.3.180.0200.05714.58
5.3.170.0300.04714.67
5.3.160.0270.06714.60
5.3.150.0300.06314.61
5.3.140.0270.06714.54
5.3.130.0300.04314.57
5.3.120.0230.05314.55
5.3.110.0200.05314.58
5.3.100.0170.05014.09
5.3.90.0130.06714.00
5.3.80.0100.06014.06
5.3.70.0230.04714.13
5.3.60.0170.06714.06
5.3.50.0200.05314.09
5.3.40.0200.05014.01
5.3.30.0170.05314.13
5.3.20.0200.05013.78
5.3.10.0230.04313.71
5.3.00.0300.04713.68
5.2.170.0130.04311.25
5.2.160.0100.04711.25
5.2.150.0130.04311.20
5.2.140.0070.05011.20
5.2.130.0170.03711.11
5.2.120.0270.02711.11
5.2.110.0270.03011.32
5.2.100.0170.04011.20
5.2.90.0130.05711.20
5.2.80.0230.04011.11
5.2.70.0100.04311.23
5.2.60.0130.04711.13
5.2.50.0130.04311.22
5.2.40.0070.04711.20
5.2.30.0100.04310.96
5.2.20.0130.04011.00
5.2.10.0130.04011.07
5.2.00.0130.04010.82
5.1.60.0130.03310.04
5.1.50.0130.03310.13
5.1.40.0100.04310.08
5.1.30.0100.04010.39
5.1.20.0100.03710.45
5.1.10.0030.04310.06
5.1.00.0100.03710.26
5.0.50.0030.0338.59
5.0.40.0030.0308.55
5.0.30.0070.0438.26
5.0.20.0100.0278.29
5.0.10.0100.0278.20
5.0.00.0070.0438.20
4.4.90.0000.0277.09
4.4.80.0030.0237.09
4.4.70.0030.0277.09
4.4.60.0100.0177.09
4.4.50.0100.0277.09
4.4.40.0070.0337.09
4.4.30.0000.0277.09
4.4.20.0070.0237.09
4.4.10.0070.0207.09
4.4.00.0070.0337.09
4.3.110.0030.0237.09
4.3.100.0100.0177.09
4.3.90.0100.0177.09
4.3.80.0100.0307.09
4.3.70.0030.0237.09
4.3.60.0100.0277.09
4.3.50.0070.0207.09
4.3.40.0030.0377.09
4.3.30.0100.0177.09
4.3.20.0030.0277.09
4.3.10.0100.0177.09
4.3.00.0070.0237.20

preferences:
33.77 ms | 401 KiB | 5 Q