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'; } } 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.0150.00616.63
8.3.50.0080.01222.01
8.3.40.0070.01418.80
8.3.30.0160.00318.96
8.3.20.0080.00020.33
8.3.10.0000.00821.80
8.3.00.0080.00019.10
8.2.180.0100.01017.99
8.2.170.0090.00622.96
8.2.160.0090.00620.24
8.2.150.0050.00324.18
8.2.140.0070.00024.66
8.2.130.0050.00226.16
8.2.120.0040.00419.63
8.2.110.0050.00521.19
8.2.100.0090.00317.63
8.2.90.0030.00619.09
8.2.80.0080.00017.97
8.2.70.0050.00317.63
8.2.60.0030.00617.80
8.2.50.0050.00318.07
8.2.40.0050.00319.88
8.2.30.0050.00317.93
8.2.20.0040.00417.79
8.2.10.0000.00818.07
8.2.00.0040.00417.68
8.1.280.0070.01025.92
8.1.270.0160.00323.95
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0100.00019.13
8.1.230.0090.00317.76
8.1.220.0030.00517.78
8.1.210.0030.00518.77
8.1.200.0090.00017.11
8.1.190.0040.00417.23
8.1.180.0050.00218.10
8.1.170.0040.00418.49
8.1.160.0040.00421.94
8.1.150.0040.00418.94
8.1.140.0000.00717.40
8.1.130.0070.00017.89
8.1.120.0070.00017.46
8.1.110.0000.00817.38
8.1.100.0040.00417.36
8.1.90.0070.00017.36
8.1.80.0000.00717.36
8.1.70.0000.00717.52
8.1.60.0060.00317.59
8.1.50.0040.00417.54
8.1.40.0040.00417.52
8.1.30.0000.00817.54
8.1.20.0000.00817.53
8.1.10.0000.00717.40
8.1.00.0060.00317.51
8.0.300.0000.00718.77
8.0.290.0000.00716.58
8.0.280.0030.00318.37
8.0.270.0030.00317.24
8.0.260.0030.00317.31
8.0.250.0070.00016.85
8.0.240.0030.00316.94
8.0.230.0030.00316.88
8.0.220.0040.00416.93
8.0.210.0030.00316.77
8.0.200.0040.00416.87
8.0.190.0030.00516.84
8.0.180.0040.00416.80
8.0.170.0000.00716.94
8.0.160.0070.00017.00
8.0.150.0030.00316.92
8.0.140.0030.00316.71
8.0.130.0030.00313.25
8.0.120.0040.00416.79
8.0.110.0030.00616.92
8.0.100.0030.00316.91
8.0.90.0080.00016.92
8.0.80.0060.01016.80
8.0.70.0060.00316.78
8.0.60.0080.00016.74
8.0.50.0040.00416.95
8.0.30.0080.01617.07
8.0.20.0120.00617.40
8.0.10.0000.00716.86
8.0.00.0170.00616.87
7.4.330.0050.00015.15
7.4.320.0030.00316.64
7.4.300.0030.00316.53
7.4.290.0030.00316.64
7.4.280.0040.00416.44
7.4.270.0040.00416.49
7.4.260.0000.00716.66
7.4.250.0060.00316.57
7.4.240.0060.00216.46
7.4.230.0040.00416.57
7.4.220.0050.01216.60
7.4.210.0090.00616.52
7.4.200.0050.00216.66
7.4.160.0100.00516.46
7.4.150.0090.01117.40
7.4.140.0150.00817.86
7.4.130.0140.00316.58
7.4.120.0140.00316.46
7.4.110.0150.00916.63
7.4.100.0150.00616.59
7.4.90.0170.00716.49
7.4.80.0090.00919.39
7.4.70.0130.00316.67
7.4.60.0090.01216.52
7.4.50.0040.00416.64
7.4.40.0130.00316.62
7.4.30.0090.01416.38
7.4.00.0090.00614.83
7.3.330.0030.00313.37
7.3.320.0110.00413.38
7.3.310.0000.00716.33
7.3.300.0070.00016.39
7.3.290.0000.00716.39
7.3.280.0070.01016.38
7.3.270.0090.00917.40
7.3.260.0140.00416.33
7.3.250.0070.00916.52
7.3.240.0030.01316.61
7.3.230.0070.01116.39
7.3.210.0130.00316.45
7.3.200.0150.00619.39
7.3.190.0080.01116.49
7.3.180.0160.00016.41
7.3.170.0070.01016.32
7.3.160.0030.01316.68
7.3.10.0060.00616.28
7.3.00.0000.01116.61
7.2.330.0100.00716.57
7.2.320.0100.00716.40
7.2.310.0120.00616.36
7.2.300.0060.01316.46
7.2.290.0060.01116.48
7.2.130.0090.00616.69
7.2.120.0040.01117.00
7.2.110.0070.00716.95
7.2.100.0030.00816.88
7.2.90.0130.00316.81
7.2.80.0000.01416.92
7.2.70.0040.01417.13
7.2.60.0050.00816.79
7.2.50.0030.01416.93
7.2.40.0040.01116.97
7.2.30.0060.00616.91
7.2.20.0090.00616.65
7.2.10.0080.00417.09
7.2.00.0050.01118.17
7.1.250.0040.00815.76
7.1.200.0030.01015.57
7.1.100.0050.00517.89
7.1.70.0040.00417.19
7.1.60.0070.01719.50
7.1.50.0200.00316.78
7.1.00.0070.07322.54
7.0.200.0060.00316.68
7.0.140.0070.07022.09
7.0.60.0200.06319.93
7.0.50.0100.04017.95
7.0.40.0100.08320.25
7.0.30.0300.08020.06
7.0.20.0230.05720.30
7.0.10.0270.08320.31
7.0.00.0100.08020.19
5.6.280.0000.07721.03
5.6.210.0070.08720.51
5.6.200.0170.05718.22
5.6.190.0100.08320.41
5.6.180.0130.05020.59
5.6.170.0330.04320.41
5.6.160.0130.07720.52
5.6.150.0100.07718.25
5.6.140.0100.04318.27
5.6.130.0000.04318.15
5.6.120.0100.03321.13
5.6.110.0030.04320.99
5.6.100.0100.08321.02
5.6.90.0070.05320.97
5.6.80.0070.04020.43
5.6.70.0170.05320.29
5.5.350.0130.03020.31
5.5.340.0100.04017.98
5.5.330.0070.08320.33
5.5.320.0100.04320.47
5.5.310.0230.07720.34
5.5.300.0030.04018.08
5.5.290.0130.04717.95
5.5.280.0030.05720.84
5.5.270.0100.08020.85
5.5.260.0070.07320.88
5.5.250.0070.07720.68
5.5.240.0070.08320.28
5.4.450.0130.05719.46
5.4.440.0800.06019.61
5.4.430.1130.07319.30
5.4.420.0070.05719.54
5.4.410.0670.06319.39
5.4.400.0200.05018.61
5.4.390.0070.06718.48
5.4.380.0200.05018.70
5.4.370.0100.06018.79
5.4.360.0170.05318.78
5.4.350.0130.06018.70
5.4.340.0300.04718.73
5.4.320.0130.05718.79
5.4.310.0200.05018.72
5.4.300.0230.04718.55
5.4.290.0200.05018.79
5.4.280.0130.06018.58
5.4.270.0200.05018.58
5.4.260.0170.05318.71
5.4.250.0100.06018.72
5.4.240.0130.05718.50
5.4.230.0230.04318.43
5.4.220.0170.05318.71
5.4.210.0100.06018.73
5.4.200.0100.05316.63
5.4.190.0130.05318.68
5.4.180.0200.04718.64
5.4.170.0100.06018.54
5.4.160.0170.05018.68
5.4.150.0230.04718.75
5.4.140.0100.05716.46
5.4.130.0200.04316.34
5.4.120.0270.04316.18
5.4.110.0230.04016.46
5.4.100.0200.04316.32
5.4.90.0130.05316.19
5.4.80.0030.06316.44
5.4.70.0170.05016.20
5.4.60.0130.05016.24
5.4.50.0170.04716.20
5.4.40.0100.05716.23
5.4.30.0170.05016.25
5.4.20.0270.04716.29
5.4.10.0270.04016.25
5.4.00.0100.05315.79
5.3.290.0300.04314.78
5.3.280.0070.06014.70
5.3.270.0330.04014.78
5.3.260.0130.05714.60
5.3.250.0270.04314.81
5.3.240.0170.05014.77
5.3.230.0200.05314.63
5.3.220.0070.06014.70
5.3.210.0100.06014.67
5.3.200.0230.05314.62
5.3.190.0230.04714.55
5.3.180.0200.04714.70
5.3.170.0230.04314.62
5.3.160.0130.07014.74
5.3.150.0230.04314.66
5.3.140.0100.05714.54
5.3.130.0170.05314.77
5.3.120.0230.04314.65
5.3.110.0200.05014.68
5.3.100.0100.06014.22
5.3.90.0130.05714.05
5.3.80.0230.04314.25
5.3.70.0200.05014.00
5.3.60.0170.05014.07
5.3.50.0200.04714.00
5.3.40.0170.05014.13
5.3.30.0170.05014.04
5.3.20.0300.03713.72
5.3.10.0300.04013.66
5.3.00.0230.04313.63
5.2.170.0030.05011.17
5.2.160.0200.03711.14
5.2.150.0200.03011.25
5.2.140.0030.05011.18
5.2.130.0070.04311.23
5.2.120.0100.04711.21
5.2.110.0100.04011.17
5.2.100.0200.03311.21
5.2.90.0130.04011.16
5.2.80.0170.03711.12
5.2.70.0070.04711.14
5.2.60.0200.03311.27
5.2.50.0070.04711.09
5.2.40.0100.04311.01
5.2.30.0130.04311.19
5.2.20.0130.04011.00
5.2.10.0130.03711.08
5.2.00.0130.04010.93
5.1.60.0030.04010.00
5.1.50.0030.04010.02
5.1.40.0100.03710.03
5.1.30.0130.04010.39
5.1.20.0100.03710.40
5.1.10.0170.03010.07
5.1.00.0100.03710.11
5.0.50.0070.0308.67
5.0.40.0030.0338.45
5.0.30.0070.0438.41
5.0.20.0070.0278.23
5.0.10.0100.0238.35
5.0.00.0070.0438.35
4.4.90.0070.0237.09
4.4.80.0070.0207.09
4.4.70.0070.0207.09
4.4.60.0030.0237.09
4.4.50.0070.0207.09
4.4.40.0070.0337.09
4.4.30.0100.0207.09
4.4.20.0030.0307.09
4.4.10.0100.0277.09
4.4.00.0070.0407.09
4.3.110.0070.0207.09
4.3.100.0000.0277.09
4.3.90.0070.0207.09
4.3.80.0130.0277.09
4.3.70.0030.0307.09
4.3.60.0030.0237.09
4.3.50.0070.0237.09
4.3.40.0070.0337.09
4.3.30.0070.0207.09
4.3.20.0130.0137.09
4.3.10.0070.0207.09
4.3.00.0030.0237.20

preferences:
43.4 ms | 401 KiB | 5 Q