3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A {} class B extends A {} class Foo { public function test(B $a) { var_dump(get_class($a)); } } class Bar extends Foo { public function test(A $a) { parent::test($a); } } (new Foo)->test(new A); (new Foo)->test(new B); (new Bar)->test(new A); (new Bar)->test(new B);

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.0160.00316.63
8.3.50.0070.00716.68
8.3.40.0090.00918.84
8.3.30.0030.01318.70
8.3.20.0040.00420.37
8.3.10.0060.00321.69
8.3.00.0050.00317.66
8.2.180.0070.01016.63
8.2.170.0080.00622.96
8.2.160.0030.01020.29
8.2.150.0110.00324.18
8.2.140.0050.00324.66
8.2.130.0030.00620.95
8.2.120.0060.00326.35
8.2.110.0040.00422.30
8.2.100.0060.00617.72
8.2.90.0040.00419.23
8.2.80.0050.00317.97
8.2.70.0000.00917.63
8.2.60.0040.00417.90
8.2.50.0050.00318.10
8.2.40.0040.00420.42
8.2.30.0060.00320.91
8.2.20.0040.00417.96
8.2.10.0080.00017.89
8.2.00.0000.00717.93
8.1.280.0150.00325.92
8.1.270.0000.00823.92
8.1.260.0000.00726.35
8.1.250.0020.00528.09
8.1.240.0080.00019.03
8.1.230.0090.00319.23
8.1.220.0080.00017.76
8.1.210.0060.00318.77
8.1.200.0000.00817.23
8.1.190.0060.00317.11
8.1.180.0080.00018.10
8.1.170.0050.00318.59
8.1.160.0070.00018.96
8.1.150.0000.00820.42
8.1.140.0070.00019.38
8.1.130.0030.00318.79
8.1.120.0050.00217.42
8.1.110.0040.00417.34
8.1.100.0040.00417.34
8.1.90.0050.00217.23
8.1.80.0070.00017.41
8.1.70.0070.00017.30
8.1.60.0040.00417.56
8.1.50.0040.00417.53
8.1.40.0090.00317.42
8.1.30.0050.00217.64
8.1.20.0040.00417.62
8.1.10.0060.00317.54
8.1.00.0050.00317.36
8.0.300.0050.00218.77
8.0.290.0080.00016.58
8.0.280.0000.00818.41
8.0.270.0030.00317.14
8.0.260.0030.00316.90
8.0.250.0000.00716.94
8.0.240.0030.00316.96
8.0.230.0070.00016.88
8.0.220.0030.00316.82
8.0.210.0000.00716.82
8.0.200.0000.00616.88
8.0.190.0040.00417.00
8.0.180.0040.00416.82
8.0.170.0000.00816.91
8.0.160.0070.00017.04
8.0.150.0060.00316.84
8.0.140.0040.00416.87
8.0.130.0030.00313.38
8.0.120.0000.00716.86
8.0.110.0030.00316.69
8.0.100.0000.00716.92
8.0.90.0000.00716.91
8.0.80.0080.00816.84
8.0.70.0070.00016.94
8.0.60.0070.00016.89
8.0.50.0000.00716.80
8.0.30.0080.01617.15
8.0.20.0110.00917.40
8.0.10.0070.00016.77
8.0.00.0130.01016.52
7.4.330.0050.00015.55
7.4.320.0000.00716.40
7.4.300.0030.00316.36
7.4.290.0030.00616.52
7.4.280.0070.00016.45
7.4.270.0000.00816.55
7.4.260.0070.00316.44
7.4.250.0000.00716.45
7.4.240.0030.00316.44
7.4.230.0030.00316.68
7.4.220.0150.00316.64
7.4.210.0070.00716.64
7.4.200.0070.00016.57
7.4.160.0120.00716.42
7.4.150.0120.00617.40
7.4.140.0160.00717.86
7.4.130.0070.01616.50
7.4.120.0130.00616.46
7.4.110.0100.00716.61
7.4.100.0100.00716.64
7.4.90.0100.00716.53
7.4.80.0100.00719.39
7.4.70.0100.00716.46
7.4.60.0070.01516.68
7.4.50.0060.00916.61
7.4.40.0190.00316.41
7.4.30.0140.00316.45
7.4.10.0110.00714.97
7.4.00.0110.00715.02
7.3.330.0030.00513.37
7.3.320.0030.00313.23
7.3.310.0000.00716.33
7.3.300.0030.00316.38
7.3.290.0100.00416.36
7.3.280.0060.00916.36
7.3.270.0060.01217.40
7.3.260.0140.00516.50
7.3.250.0100.00916.43
7.3.240.0100.01016.34
7.3.230.0060.01716.42
7.3.210.0130.00416.34
7.3.200.0090.00616.36
7.3.190.0120.00416.43
7.3.180.0100.00616.57
7.3.170.0100.01016.32
7.3.160.0080.00816.28
7.3.130.0060.01215.10
7.3.120.0080.01114.79
7.3.110.0090.00914.94
7.3.100.0060.00814.70
7.3.90.0060.00814.95
7.3.80.0040.01114.94
7.3.70.0050.00514.66
7.3.60.0040.00814.75
7.3.50.0070.00514.77
7.3.40.0030.00914.81
7.3.30.0070.00514.77
7.3.20.0040.01016.50
7.3.10.0040.00716.63
7.3.00.0040.00816.58
7.2.330.0130.00616.57
7.2.320.0070.01016.71
7.2.310.0130.01016.73
7.2.300.0370.01316.69
7.2.290.0090.00916.52
7.2.260.0070.01114.57
7.2.250.0080.01115.02
7.2.240.0070.00914.88
7.2.230.0070.00515.16
7.2.220.0050.00914.93
7.2.210.0030.01114.88
7.2.200.0010.01014.89
7.2.190.0080.00815.05
7.2.180.0080.00514.95
7.2.170.0020.01115.08
7.2.160.0040.00814.95
7.2.150.0080.00416.95
7.2.140.0050.01016.87
7.2.130.0060.00716.77
7.2.120.0070.00516.70
7.2.110.0100.00516.80
7.2.100.0070.00716.77
7.2.90.0050.01016.85
7.2.80.0060.00716.87
7.2.70.0070.00516.81
7.2.60.0020.01116.84
7.2.50.0090.00516.88
7.2.40.0090.00416.79
7.2.30.0060.00816.72
7.2.20.0090.00716.84
7.2.10.0040.01016.87
7.2.00.0070.00717.42
7.1.330.0030.01315.68
7.1.320.0050.00915.77
7.1.310.0010.01115.42
7.1.300.0050.00715.59
7.1.290.0050.00815.60
7.1.280.0050.00615.67
7.1.270.0060.00915.73
7.1.260.0060.00715.70
7.1.250.0030.01115.48
7.1.240.0100.00515.56
7.1.230.0060.00715.69
7.1.220.0040.00715.56
7.1.210.0050.00715.63
7.1.200.0030.00915.55
7.1.190.0060.00615.69
7.1.180.0080.00415.63
7.1.170.0080.00615.68
7.1.160.0040.00815.58
7.1.150.0070.00615.59
7.1.140.0050.00715.63
7.1.130.0040.00715.61
7.1.120.0040.00715.55
7.1.110.0010.01315.70
7.1.100.0020.00916.23
7.1.90.0060.00815.59
7.1.80.0070.00415.57
7.1.70.0070.00515.94
7.1.60.0100.00620.44
7.1.50.0110.00420.26
7.1.40.0080.00820.30
7.1.30.0100.01020.24
7.1.20.0100.01020.31
7.1.10.0050.00915.74
7.1.00.0060.00715.75
7.0.330.0080.00415.27
7.0.320.0050.00815.33
7.0.310.0050.00815.18
7.0.300.0030.00515.24
7.0.290.0040.00915.37
7.0.280.0040.00915.38
7.0.270.0060.00615.22
7.0.260.0070.00615.29
7.0.250.0060.00815.38
7.0.240.0060.00515.31
7.0.230.0020.01015.38
7.0.220.0020.01015.33
7.0.210.0040.00815.43
7.0.200.0060.00715.70
7.0.190.0060.00615.59
7.0.180.0070.00715.50
7.0.170.0050.00815.51
7.0.160.0060.01015.58
7.0.150.0050.00715.51
7.0.140.0090.00515.59
7.0.130.0060.00715.62
7.0.120.0050.00715.51
7.0.110.0060.00715.47
7.0.100.0060.00715.49
7.0.90.0060.00715.52
7.0.80.0090.00515.62
7.0.70.0030.00815.47
7.0.60.0080.00415.52
7.0.50.0060.00715.58
7.0.40.0050.00514.49
7.0.30.0020.01114.40
7.0.20.0050.00814.44
7.0.10.0020.01114.44
7.0.00.0020.01114.44
5.6.400.0060.00714.51
5.6.390.0040.00714.49
5.6.380.0070.00714.65
5.6.370.0040.00814.49
5.6.360.0010.01214.45
5.6.350.0050.00714.39
5.6.340.0030.01214.46
5.6.330.0030.01014.29
5.6.320.0080.00714.34
5.6.310.0060.00814.54
5.6.300.0040.00714.49
5.6.290.0030.00814.61
5.6.280.0090.00314.29
5.6.270.0070.00714.46
5.6.260.0030.01114.37
5.6.250.0120.00214.38
5.6.240.0050.00814.46
5.6.230.0070.00814.46
5.6.220.0050.00614.52
5.6.210.0090.00514.38
5.6.200.0050.01014.55
5.6.190.0040.00614.33
5.6.180.0070.00714.46
5.6.170.0050.00614.50
5.6.160.0050.00714.36
5.6.150.0020.01214.55
5.6.140.0070.00614.55
5.6.130.0090.00514.49
5.6.120.0070.00514.40
5.6.110.0020.00914.42
5.6.100.0050.00514.34
5.6.90.0030.00814.32
5.6.80.0060.00714.42
5.6.70.0060.00914.50
5.6.60.0070.00614.34
5.6.50.0040.01014.40
5.6.40.0060.00614.41
5.6.30.0040.00614.40
5.6.20.0080.00614.44
5.6.10.0080.00714.45
5.6.00.0050.00814.38

preferences:
49.75 ms | 401 KiB | 5 Q