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 " . get_called_class() . "\n"; } return $description; } } class Animal extends Base { public static function describe() { return 'Hello! ' . parent::describe(); } } class Cat extends Animal { } class Dog extends Animal { } echo Cat::describe(); echo Dog::describe(); echo Animal::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.0170.00016.63
8.3.50.0110.00718.17
8.3.40.0090.00618.84
8.3.30.0120.00318.89
8.3.20.0070.00020.29
8.3.10.0070.00021.71
8.3.00.0040.00419.13
8.2.180.0110.00825.92
8.2.170.0090.00619.09
8.2.160.0070.00722.96
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0050.00319.54
8.2.110.0120.00620.93
8.2.100.0040.00817.63
8.2.90.0080.00019.26
8.2.80.0100.00017.97
8.2.70.0000.00817.50
8.2.60.0040.00417.93
8.2.50.0000.00818.07
8.2.40.0040.00419.95
8.2.30.0040.00418.08
8.2.20.0050.00317.64
8.2.10.0020.00518.06
8.2.00.0070.00017.68
8.1.280.0070.01125.92
8.1.270.0040.00418.88
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0030.00723.88
8.1.230.0040.00817.42
8.1.220.0060.00317.78
8.1.210.0050.00318.77
8.1.200.0050.00517.35
8.1.190.0030.00517.23
8.1.180.0000.00818.10
8.1.170.0000.00818.39
8.1.160.0040.00422.02
8.1.150.0040.00418.80
8.1.140.0050.00217.33
8.1.130.0070.00017.77
8.1.120.0000.00717.46
8.1.110.0000.00817.47
8.1.100.0080.00017.45
8.1.90.0040.00417.42
8.1.80.0000.00717.44
8.1.70.0040.00417.34
8.1.60.0040.00417.44
8.1.50.0040.00417.52
8.1.40.0040.00417.54
8.1.30.0000.00817.58
8.1.20.0050.00317.56
8.1.10.0040.00417.60
8.1.00.0000.00717.52
8.0.300.0050.00218.77
8.0.290.0000.00716.63
8.0.280.0000.00718.44
8.0.270.0000.00717.18
8.0.260.0030.00317.20
8.0.250.0040.00416.89
8.0.240.0030.00316.98
8.0.230.0030.00516.93
8.0.220.0040.00416.88
8.0.210.0030.00316.87
8.0.200.0000.00616.91
8.0.190.0040.00416.84
8.0.180.0000.00816.86
8.0.170.0040.00416.89
8.0.160.0060.00317.00
8.0.150.0060.00316.72
8.0.140.0000.00716.76
8.0.130.0000.00513.41
8.0.120.0030.00616.84
8.0.110.0040.00416.88
8.0.100.0040.00416.86
8.0.90.0000.00816.74
8.0.80.0060.01016.96
8.0.70.0030.00716.72
8.0.60.0030.00516.78
8.0.50.0000.00716.78
8.0.30.0110.00817.19
8.0.20.0130.01217.40
8.0.10.0040.00416.85
8.0.00.0120.00716.90
7.4.330.0000.00515.07
7.4.320.0030.00316.59
7.4.300.0030.00316.36
7.4.290.0070.00016.43
7.4.280.0000.00816.39
7.4.270.0030.00316.49
7.4.260.0050.00013.18
7.4.250.0000.00716.39
7.4.240.0030.00316.55
7.4.230.0030.00316.58
7.4.220.0120.00616.41
7.4.210.0000.01616.67
7.4.200.0070.00016.39
7.4.160.0090.00616.39
7.4.150.0080.01217.40
7.4.140.0050.01517.86
7.4.130.0100.01016.63
7.4.120.0070.01016.57
7.4.110.0130.01016.32
7.4.100.0090.01016.38
7.4.90.0060.01216.57
7.4.80.0070.01319.39
7.4.70.0080.00816.46
7.4.60.0130.00316.41
7.4.50.0000.00416.49
7.4.40.0060.00916.43
7.4.30.0180.00616.55
7.4.10.0030.01614.96
7.4.00.0030.01414.96
7.3.330.0000.00513.33
7.3.320.0040.00913.41
7.3.310.0000.00716.41
7.3.300.0000.00716.26
7.3.290.0090.00716.36
7.3.280.0100.01116.41
7.3.270.0120.00617.40
7.3.260.0100.01016.29
7.3.250.0120.00516.57
7.3.240.0030.01416.59
7.3.230.0120.00416.64
7.3.210.0070.01016.55
7.3.200.0060.01219.39
7.3.190.0030.01316.33
7.3.180.0140.00316.32
7.3.170.0170.00016.50
7.3.160.0030.01916.41
7.3.130.0110.00415.14
7.3.120.0050.01314.90
7.3.110.0100.00714.85
7.3.100.0050.01115.04
7.3.90.0090.00614.72
7.3.80.0050.00814.82
7.3.70.0050.00614.84
7.3.60.0030.00714.66
7.3.50.0050.01014.87
7.3.40.0040.00914.92
7.3.30.0070.00514.71
7.3.20.0090.00616.66
7.3.10.0080.00716.73
7.3.00.0070.00816.54
7.2.330.0110.00616.48
7.2.320.0100.00716.36
7.2.310.0120.01216.73
7.2.300.0110.00616.50
7.2.290.0190.00316.37
7.2.260.0040.01215.26
7.2.250.0100.00715.13
7.2.240.0030.01315.07
7.2.230.0050.00815.15
7.2.220.0040.01114.96
7.2.210.0050.00814.87
7.2.200.0040.01214.95
7.2.190.0030.01114.92
7.2.180.0050.00615.00
7.2.170.0070.00914.82
7.2.160.0000.01215.11
7.2.150.0080.00816.70
7.2.140.0110.00316.91
7.2.130.0060.00416.79
7.2.120.0100.00416.88
7.2.110.0030.01017.03
7.2.100.0090.00516.79
7.2.90.0050.01016.92
7.2.80.0070.00916.95
7.2.70.0050.00816.65
7.2.60.0060.01016.81
7.2.50.0030.01316.75
7.2.40.0090.00317.00
7.2.30.0050.01116.88
7.2.20.0030.00616.82
7.2.10.0060.00816.96
7.2.00.0060.00917.76
7.1.330.0020.01215.89
7.1.320.0090.00515.83
7.1.310.0050.00615.91
7.1.300.0050.00815.78
7.1.290.0020.01215.74
7.1.280.0030.00815.70
7.1.270.0050.00815.56
7.1.260.0070.00615.73
7.1.250.0060.00815.87
7.1.240.0040.00815.61
7.1.230.0080.00815.68
7.1.220.0040.00415.63
7.1.210.0040.00815.68
7.1.200.0070.00715.86
7.1.190.0000.01015.80
7.1.180.0030.01015.72
7.1.170.0100.00315.85
7.1.160.0030.01315.79
7.1.150.0040.01215.56
7.1.140.0040.00815.75
7.1.130.0040.01115.70
7.1.120.0080.00415.45
7.1.110.0000.01315.96
7.1.100.0070.00117.07
7.1.90.0040.00715.88
7.1.80.0000.01115.82
7.1.70.0050.01016.58
7.1.60.0100.00917.62
7.1.50.0050.01216.18
7.1.40.0030.00915.76
7.1.30.0000.01315.91
7.1.20.0030.00915.88
7.1.10.0090.00315.80
7.1.00.0070.04019.15
7.0.330.0000.01115.36
7.0.320.0030.01015.35
7.0.310.0070.00615.21
7.0.300.0070.00715.37
7.0.290.0090.00315.39
7.0.280.0030.00714.97
7.0.270.0130.00015.48
7.0.260.0070.00715.30
7.0.250.0030.01015.17
7.0.240.0070.00315.36
7.0.230.0000.01115.36
7.0.220.0070.00715.43
7.0.210.0000.01715.43
7.0.200.0030.00815.88
7.0.190.0090.00315.48
7.0.180.0030.01015.16
7.0.170.0030.00915.34
7.0.160.0040.00415.38
7.0.150.0040.01115.18
7.0.140.0000.04518.77
7.0.130.0090.00015.07
7.0.120.0100.00315.26
7.0.110.0080.00015.35
7.0.100.0010.02417.71
7.0.90.0050.02517.67
7.0.80.0060.02117.66
7.0.70.0010.02517.69
7.0.60.0050.02417.56
7.0.50.0030.02517.86
7.0.40.0040.02716.66
7.0.30.0050.02616.81
7.0.20.0130.04116.77
7.0.10.0050.04616.76
7.0.00.0020.04716.80
5.6.400.0110.00413.99
5.6.390.0050.00314.25
5.6.380.0040.01114.13
5.6.370.0040.00814.66
5.6.360.0100.00714.27
5.6.350.0160.00014.34
5.6.340.0060.00314.50
5.6.330.0100.00714.57
5.6.320.0090.00614.32
5.6.310.0000.01414.48
5.6.300.0090.00314.30
5.6.290.0110.00414.27
5.6.280.0070.03517.70
5.6.270.0100.00314.47
5.6.260.0030.01014.23
5.6.250.0030.02617.44
5.6.240.0020.03017.51
5.6.230.0040.02417.38
5.6.220.0020.02717.58
5.6.210.0040.02917.38
5.6.200.0030.02717.66
5.6.190.0050.02217.72
5.6.180.0050.02517.56
5.6.170.0080.02917.67
5.6.160.0050.04617.64
5.6.150.0100.03917.66
5.6.140.0060.04317.74
5.6.130.0080.04617.65
5.6.120.0060.04617.78
5.6.110.0100.04717.64
5.6.100.0050.04217.73
5.6.90.0050.03217.60
5.6.80.0100.04317.53
5.6.70.0050.03117.29
5.6.60.0070.04117.21
5.6.50.0050.02917.24
5.6.40.0030.03617.25
5.6.30.0100.03917.28
5.6.20.0090.04117.36
5.6.10.0070.04617.30
5.6.00.0060.04117.37
5.5.380.0090.02017.40
5.5.370.0080.02117.25
5.5.360.0060.02017.24
5.5.350.0110.02117.23
5.5.340.0050.02517.62
5.5.330.0050.03517.60
5.5.320.0020.02617.62
5.5.310.0050.05017.73
5.5.300.0050.05117.62
5.5.290.0040.03617.58
5.5.280.0080.04317.42
5.5.270.0130.04017.63
5.5.260.0120.02217.42
5.5.250.0070.04317.24
5.5.240.0030.04517.15
5.5.230.0060.03017.13
5.5.220.0060.04317.15
5.5.210.0080.03517.21
5.5.200.0110.02617.00
5.5.190.0100.04216.96
5.5.180.0100.04217.07
5.5.170.0110.00614.39
5.5.160.0100.03717.30
5.5.150.0020.04417.26
5.5.140.0050.04417.10
5.5.130.0020.04417.18
5.5.120.0070.04317.04
5.5.110.0070.03717.31
5.5.100.0040.04117.09
5.5.90.0050.04417.03
5.5.80.0030.03817.18
5.5.70.0080.04217.14
5.5.60.0030.02617.14
5.5.50.0120.03717.15
5.5.40.0140.02917.03
5.5.30.0080.03317.16
5.5.20.0030.04517.28
5.5.10.0050.04517.00
5.5.00.0030.04217.17
5.4.450.0100.03915.37
5.4.440.0080.03615.43
5.4.430.0070.04015.43
5.4.420.0070.03715.38
5.4.410.0050.03615.33
5.4.400.0050.03515.22
5.4.390.0000.04815.26
5.4.380.0050.03015.22
5.4.370.0080.04015.25
5.4.360.0100.03515.23
5.4.350.0080.04215.11
5.4.340.0070.04315.27
5.4.330.0060.00311.31
5.4.320.0050.04515.17
5.4.310.0100.03315.17
5.4.300.0030.03715.13
5.4.290.0050.04015.10
5.4.280.0050.04415.17
5.4.270.0060.04315.17
5.4.260.0050.02515.13
5.4.250.0000.04715.26
5.4.240.0050.03315.22
5.4.230.0070.03815.26
5.4.220.0080.02315.09
5.4.210.0090.03715.20
5.4.200.0080.03715.13
5.4.190.0070.03815.20
5.4.180.0070.02515.10
5.4.170.0050.04015.26
5.4.160.0030.02615.12
5.4.150.0070.03015.25
5.4.140.0070.04013.82
5.4.130.0050.04013.85
5.4.120.0080.02813.87
5.4.110.0050.02613.94
5.4.100.0060.03913.93
5.4.90.0030.04013.90
5.4.80.0110.03313.84
5.4.70.0080.03313.91
5.4.60.0060.03113.89
5.4.50.0090.03213.83
5.4.40.0030.04113.91
5.4.30.0080.03113.88
5.4.20.0110.03113.78
5.4.10.0070.03513.87
5.4.00.0030.04213.52
5.3.290.0070.08014.81
5.3.280.0100.07714.61
5.3.270.0030.07714.54
5.3.260.0030.08314.73
5.3.250.0070.07014.66
5.3.240.0100.07014.71
5.3.230.0100.06714.65
5.3.220.0000.07714.60
5.3.210.0100.07314.66
5.3.200.0070.04314.61
5.3.190.0130.07014.56
5.3.180.0100.07314.63
5.3.170.0070.07314.59
5.3.160.0030.07714.57
5.3.150.0000.07314.66
5.3.140.0030.08014.54
5.3.130.0130.07314.64
5.3.120.0070.07314.62
5.3.110.0070.07314.56
5.3.100.0030.08014.03
5.3.90.0030.07314.14
5.3.80.0000.08013.93
5.3.70.0100.07314.04
5.3.60.0130.07014.02
5.3.50.0030.07313.87
5.3.40.0070.07713.88
5.3.30.0100.07013.93
5.3.20.0100.06313.72
5.3.10.0000.04713.60
5.3.00.0070.07313.66
5.2.170.0030.06711.90
5.2.160.0070.06011.90
5.2.150.0030.06311.90
5.2.140.0070.05311.90
5.2.130.0070.05711.90
5.2.120.0030.08311.90
5.2.110.0030.05311.90
5.2.100.0070.06011.90
5.2.90.0000.07011.90
5.2.80.0100.05311.90
5.2.70.0070.06011.90
5.2.60.0070.04711.90
5.2.50.0070.05011.90
5.2.40.0130.05311.90
5.2.30.0000.04711.90
5.2.20.0000.03711.90
5.2.10.0030.05711.90
5.2.00.0000.06011.90
5.1.60.0030.05711.90
5.1.50.0100.04711.90
5.1.40.0030.04711.90
5.1.30.0100.04711.90
5.1.20.0030.05311.90
5.1.10.0000.03311.90
5.1.00.0100.04711.90
5.0.50.0070.04011.90
5.0.40.0000.04711.90
5.0.30.0100.05311.90
5.0.20.0070.03311.90
5.0.10.0030.04311.90
5.0.00.0000.05311.90
4.4.90.0000.03711.90
4.4.80.0000.03711.90
4.4.70.0030.03311.90
4.4.60.0070.02711.90
4.4.50.0000.03711.90
4.4.40.0000.05011.90
4.4.30.0000.03711.90
4.4.20.0070.03011.90
4.4.10.0000.03711.90
4.4.00.0100.04711.90
4.3.110.0070.03011.90
4.3.100.0070.01311.90
4.3.90.0000.03711.90
4.3.80.0030.06011.90
4.3.70.0000.03711.90
4.3.60.0000.03711.90
4.3.50.0030.02311.90
4.3.40.0000.05011.90
4.3.30.0000.02011.90
4.3.20.0030.03311.90
4.3.10.0000.03711.90
4.3.00.0030.02711.90

preferences:
48.42 ms | 400 KiB | 5 Q