3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function x() { $this->foo(); } private function foo() { print "A"; } } class B extends A { public function foo() { print "B"; } } (new B)->x(); (new A)->x();

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.80.0050.00516.63
8.3.70.0120.00316.63
8.3.60.0110.00318.55
8.3.50.0130.00722.00
8.3.40.0110.00318.76
8.3.30.0110.00418.77
8.3.20.0040.00419.34
8.3.10.0050.00321.69
8.3.00.0080.00019.26
8.2.200.0030.00618.41
8.2.190.0030.01216.58
8.2.180.0040.01525.92
8.2.170.0110.00322.96
8.2.160.0040.01119.32
8.2.150.0060.00324.18
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0080.00019.36
8.2.110.0060.00321.02
8.2.100.0090.00317.72
8.2.90.0060.00317.50
8.2.80.0090.00017.97
8.2.70.0040.00417.80
8.2.60.0000.00717.84
8.2.50.0080.00018.10
8.2.40.0040.00420.55
8.2.30.0050.00319.04
8.2.20.0070.00017.97
8.2.10.0050.00217.99
8.2.00.0040.00417.49
8.1.290.0030.00630.84
8.1.280.0100.00725.92
8.1.270.0000.00720.37
8.1.260.0060.00326.35
8.1.250.0080.00028.09
8.1.240.0030.00621.00
8.1.230.0040.00717.70
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0090.00017.10
8.1.190.0000.00818.89
8.1.180.0040.00418.10
8.1.170.0080.00020.62
8.1.160.0000.00718.68
8.1.150.0000.00720.10
8.1.140.0040.00419.45
8.1.130.0040.00418.82
8.1.120.0030.00517.23
8.1.110.0050.00317.30
8.1.100.0000.00717.34
8.1.90.0000.00717.23
8.1.80.0070.00017.30
8.1.70.0070.00017.25
8.1.60.0040.00417.57
8.1.50.0040.00417.43
8.1.40.0000.00817.42
8.1.30.0000.00817.56
8.1.20.0000.00717.48
8.1.10.0000.00817.47
8.1.00.0050.00317.46
8.0.300.0040.00418.77
8.0.290.0000.00716.88
8.0.280.0000.00718.39
8.0.270.0070.00017.33
8.0.260.0000.00817.36
8.0.250.0060.00016.90
8.0.240.0000.00716.99
8.0.230.0030.00316.81
8.0.220.0040.00416.76
8.0.210.0000.00716.66
8.0.200.0030.00316.87
8.0.190.0000.00716.73
8.0.180.0000.00816.68
8.0.170.0070.00016.79
8.0.160.0080.00016.76
8.0.150.0000.00716.61
8.0.140.0000.00716.66
8.0.130.0000.00613.23
8.0.120.0040.00416.75
8.0.110.0080.00016.65
8.0.100.0050.00216.73
8.0.90.0000.00716.79
8.0.80.0100.01016.76
8.0.70.0000.00716.80
8.0.60.0000.00816.66
8.0.50.0050.00216.75
8.0.30.0050.01316.95
8.0.20.0090.00917.40
8.0.10.0000.00716.88
8.0.00.0100.01616.95
7.4.330.0020.00215.55
7.4.320.0080.00016.46
7.4.300.0060.00016.60
7.4.290.0030.00316.52
7.4.280.0000.00716.54
7.4.270.0030.00316.43
7.4.260.0000.00716.41
7.4.250.0030.00316.31
7.4.240.0000.00716.43
7.4.230.0070.00016.42
7.4.220.0070.01316.46
7.4.210.0070.00716.64
7.4.200.0040.00416.51
7.4.160.0110.00516.49
7.4.150.0030.01617.40
7.4.140.0080.01217.86
7.4.130.0090.00816.32
7.4.120.0100.00816.31
7.4.110.0140.00816.61
7.4.100.0070.01016.41
7.4.90.0160.00016.71
7.4.80.0210.02319.39
7.4.70.0030.01716.46
7.4.60.0070.01416.36
7.4.50.0090.00616.36
7.4.40.0070.01116.47
7.4.30.0060.01516.24
7.4.00.0040.01114.84
7.3.330.0000.00513.21
7.3.320.0050.00013.20
7.3.310.0070.00016.26
7.3.300.0070.00016.23
7.3.290.0060.00816.23
7.3.280.0080.00916.24
7.3.270.0100.01017.40
7.3.260.0140.00916.40
7.3.250.0110.01316.30
7.3.240.0100.00716.45
7.3.230.0140.00916.23
7.3.210.0070.01016.17
7.3.200.0060.01319.39
7.3.190.0060.01116.41
7.3.180.0030.01316.53
7.3.170.0090.00616.50
7.3.160.0030.01316.51
7.3.120.0070.01314.94
7.3.110.0060.01214.53
7.3.100.0100.00314.67
7.3.90.0060.01214.82
7.3.80.0110.00714.96
7.3.70.0120.00614.53
7.3.60.0100.00714.73
7.3.50.0030.01014.60
7.3.40.0070.00414.72
7.3.30.0040.01114.88
7.3.20.0110.00816.42
7.3.10.0070.00716.45
7.3.00.0120.00316.06
7.2.330.0140.00316.25
7.2.320.0100.00716.38
7.2.310.0060.01016.73
7.2.300.0110.01116.70
7.2.290.0090.01016.31
7.2.250.0170.00014.71
7.2.240.0030.01615.10
7.2.230.0100.00714.42
7.2.220.0090.00914.92
7.2.210.0070.01314.87
7.2.200.0080.00515.01
7.2.190.0030.01314.95
7.2.180.0060.00915.02
7.2.170.0030.00715.07
7.2.60.0090.00616.94
7.2.50.0000.01616.77
7.1.330.0100.00715.69
7.1.320.0110.00315.67
7.1.310.0060.00915.47
7.1.300.0000.01415.65
7.1.290.0000.01015.24
7.1.280.0000.00915.53
7.1.270.0070.00715.71
7.1.260.0030.00615.64
7.1.200.0030.01015.61
7.1.70.0030.00917.07
7.1.60.0100.00717.29
7.1.00.0100.05722.50
7.0.200.0100.00716.42
7.0.140.0070.07022.00
7.0.130.0100.06321.97
7.0.120.0030.06721.95
7.0.110.0100.07322.09
7.0.100.0100.05321.93
7.0.90.0070.06721.98
7.0.80.0030.07321.98
7.0.70.0070.06021.98
7.0.60.0070.07321.95
7.0.50.0030.08022.15
7.0.40.0100.05022.20
7.0.30.0070.05322.19
7.0.20.0070.06722.02
7.0.10.0170.06722.03
7.0.00.0070.05321.95
5.6.290.0070.05720.85
5.6.280.0070.05321.05
5.6.270.0100.05321.04
5.6.260.0030.05721.09
5.6.250.0170.05021.09
5.6.240.0070.06020.89
5.6.230.0170.07321.13
5.6.220.0030.06020.98
5.6.210.0130.07320.97
5.6.200.0130.07320.89
5.6.190.0130.05021.06
5.6.180.0030.06021.03
5.6.170.0070.05721.03
5.6.160.0100.05720.82
5.6.150.0070.06320.77
5.6.140.0100.05320.88
5.6.130.0030.05721.04
5.6.120.0070.06720.82
5.6.110.0070.06720.86
5.6.100.0000.07321.07
5.6.90.0030.06721.01
5.6.80.0100.05320.12
5.6.70.0100.06720.40
5.6.60.0070.05720.41
5.6.50.0100.05020.46
5.6.40.0030.06020.13
5.6.30.0170.04720.43
5.6.20.0030.06020.21
5.6.10.0070.05020.35
5.6.00.0100.05020.47

preferences:
56.66 ms | 401 KiB | 5 Q