3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Animal{ static public function name() {return 'animal';} static public function sayHello () {return 'Hello, I\'m ' . static::name();} } class Dog extends Animal{ static public function name() {return 'dog';} } function blah($someAnimal){ echo $someAnimal::sayHello(); } blah('Dog');

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.0130.01018.52
8.3.50.0110.00416.05
8.3.40.0160.00318.83
8.3.30.0040.01118.36
8.3.20.0080.00018.65
8.3.10.0000.00723.53
8.3.00.0080.00021.33
8.2.180.0110.00616.38
8.2.170.0070.00722.96
8.2.160.0130.00020.38
8.2.150.0000.00725.66
8.2.140.0040.00424.66
8.2.130.0030.00619.83
8.2.120.0050.00326.35
8.2.110.0060.00321.03
8.2.100.0120.00019.61
8.2.90.0000.00817.72
8.2.80.0000.00817.97
8.2.70.0000.00918.04
8.2.60.0030.00618.22
8.2.50.0080.00018.10
8.2.40.0040.00419.15
8.2.30.0000.00819.22
8.2.20.0000.00718.05
8.2.10.0000.00719.50
8.2.00.0000.00817.52
8.1.280.0040.01125.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0040.00424.02
8.1.230.0080.00317.83
8.1.220.0000.00717.74
8.1.210.0030.00618.77
8.1.200.0030.00617.23
8.1.190.0030.00517.23
8.1.180.0040.00418.10
8.1.170.0000.00818.51
8.1.160.0000.00718.77
8.1.150.0040.00418.72
8.1.140.0000.00722.05
8.1.130.0040.00720.00
8.1.120.0050.00217.25
8.1.110.0000.00817.25
8.1.100.0020.00517.36
8.1.90.0050.00517.34
8.1.80.0040.00417.21
8.1.70.0070.00017.30
8.1.60.0060.00317.39
8.1.50.0060.00317.49
8.1.40.0000.00817.34
8.1.30.0080.00017.59
8.1.20.0000.00817.52
8.1.10.0050.00217.41
8.1.00.0040.00417.33
8.0.300.0040.00418.77
8.0.290.0030.00716.63
8.0.280.0000.00718.43
8.0.270.0070.00017.13
8.0.260.0030.00320.21
8.0.250.0050.00516.83
8.0.240.0000.00716.93
8.0.230.0070.00017.00
8.0.220.0030.00316.83
8.0.210.0070.00016.79
8.0.200.0000.00717.02
8.0.190.0030.00516.94
8.0.180.0030.00616.91
8.0.170.0090.00016.80
8.0.160.0050.00316.78
8.0.150.0040.00416.84
8.0.140.0000.00716.87
8.0.130.0000.00613.28
8.0.120.0070.00016.90
8.0.110.0040.00416.88
8.0.100.0070.00016.71
8.0.90.0080.00016.72
8.0.80.0030.01216.78
8.0.70.0070.00016.56
8.0.60.0000.00716.75
8.0.50.0030.00516.58
8.0.30.0100.00717.18
8.0.20.0160.00317.40
8.0.10.0080.00016.89
8.0.00.0070.01016.51
7.4.330.0000.00515.55
7.4.320.0020.00516.45
7.4.300.0070.00016.55
7.4.290.0030.00316.62
7.4.280.0090.00016.57
7.4.270.0070.00316.41
7.4.260.0070.00016.58
7.4.250.0040.00416.46
7.4.240.0050.00216.43
7.4.230.0040.00416.39
7.4.220.0000.00816.62
7.4.210.0080.00616.54
7.4.200.0000.00716.39
7.4.160.0030.01316.52
7.4.140.0120.00817.86
7.4.130.0060.01216.50
7.4.120.0080.01116.43
7.4.110.0110.00716.36
7.4.100.0130.00316.57
7.4.90.0140.00716.48
7.4.80.0120.00619.39
7.4.70.0170.00016.48
7.4.60.0100.00616.38
7.4.50.0060.01016.37
7.4.40.0110.01016.63
7.4.00.0060.00914.84
7.3.330.0000.00513.43
7.3.320.0000.00613.35
7.3.310.0000.00716.37
7.3.300.0000.00716.30
7.3.290.0000.00716.22
7.3.280.0070.01016.31
7.3.260.0120.00716.46
7.3.240.0080.00916.49
7.3.230.0060.01016.45
7.3.210.0160.00316.64
7.3.200.0110.00616.48
7.3.190.0130.00316.67
7.3.180.0100.00716.41
7.3.170.0210.00016.43
7.3.160.0140.00616.55
7.3.120.0130.00014.82
7.3.110.0120.00614.88
7.3.100.0040.01214.64
7.3.90.0060.01214.59
7.3.80.0090.00314.65
7.3.70.0040.00714.93
7.3.60.0090.00614.68
7.3.50.0030.00915.00
7.3.40.0000.01715.00
7.3.30.0040.00914.63
7.3.20.0060.00616.79
7.3.10.0040.00716.60
7.3.00.0040.01116.51
7.2.330.0140.01016.44
7.2.320.0140.00616.67
7.2.310.0090.00916.48
7.2.300.0110.00516.63
7.2.290.0160.00616.72
7.2.240.0110.00715.00
7.2.230.0060.00615.10
7.2.220.0060.00614.62
7.2.210.0030.01015.14
7.2.200.0110.00714.97
7.2.190.0060.00914.80
7.2.180.0060.00315.16
7.2.170.0040.01114.89
7.2.160.0070.01015.12
7.2.150.0060.01016.51
7.2.140.0040.00416.63
7.2.130.0070.01116.85
7.2.120.0060.00616.75
7.2.110.0830.00515.64
7.2.100.1320.00915.68
7.2.90.1880.00615.75
7.2.80.1820.00615.64
7.2.70.1620.00515.92
7.2.60.1790.00915.82
7.2.50.1660.00615.82
7.2.40.0540.00815.90
7.2.30.1620.00515.87
7.2.20.1370.01015.67
7.2.10.1390.00415.99
7.2.00.1810.01115.96
7.1.330.0060.00915.77
7.1.320.0100.00315.70
7.1.310.0000.01315.69
7.1.300.0040.00915.57
7.1.290.0030.00915.36
7.1.280.0000.01415.61
7.1.270.0060.00915.53
7.1.260.0030.00915.97
7.1.250.0090.00315.54
7.1.230.1950.01013.58
7.1.220.2610.00713.71
7.1.210.3190.01013.72
7.1.200.3160.00313.84
7.1.190.2960.01313.82
7.1.180.3220.00713.92
7.1.170.0330.00313.73
7.1.160.0200.00613.96
7.1.150.0140.00313.76
7.1.140.2850.00713.93
7.1.130.3700.00313.99
7.1.120.4130.00313.82
7.1.110.3920.01013.64
7.1.100.3930.00313.88
7.1.90.3540.00713.88
7.1.80.3310.00913.48
7.1.70.3170.00714.06
7.1.60.3560.01631.65
7.1.50.5050.01732.07
7.1.40.5660.01331.60
7.1.30.5050.01031.75
7.1.20.5210.01032.00
7.1.10.3850.00313.59
7.1.00.3080.01313.59
5.6.380.0080.00814.34

preferences:
74.28 ms | 400 KiB | 5 Q