3v4l.org

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

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.70.0160.00316.38
8.3.60.0110.00418.30
8.3.50.0110.00716.34
8.3.40.0110.00718.54
8.3.30.0080.00818.59
8.3.20.0040.00420.56
8.3.10.0000.00821.70
8.3.00.0050.00222.43
8.2.190.0090.00616.63
8.2.180.0090.00616.60
8.2.170.0070.00722.96
8.2.160.0000.01420.94
8.2.150.0000.00724.18
8.2.140.0030.00524.66
8.2.130.0060.00326.16
8.2.120.0030.00521.03
8.2.110.0080.00321.05
8.2.100.0110.00017.77
8.2.90.0080.00319.45
8.2.80.0080.00017.97
8.2.70.0030.00717.90
8.2.60.0080.00017.97
8.2.50.0040.00418.10
8.2.40.0090.00019.16
8.2.30.0050.00219.17
8.2.20.0000.00917.96
8.2.10.0080.00019.03
8.2.00.0030.00518.10
8.1.280.0140.00325.92
8.1.270.0080.00020.21
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0030.01723.91
8.1.230.0030.00620.85
8.1.220.0080.00017.74
8.1.210.0000.00919.06
8.1.200.0000.00917.13
8.1.190.0100.00016.97
8.1.180.0040.00418.10
8.1.170.0000.00818.59
8.1.160.0000.00718.71
8.1.150.0000.00718.66
8.1.140.0030.00518.85
8.1.130.0000.00717.37
8.1.120.0030.00717.35
8.1.110.0000.00717.34
8.1.100.0070.00017.32
8.1.90.0030.00717.33
8.1.80.0000.00817.35
8.1.70.0050.00317.34
8.1.60.0040.00417.41
8.1.50.0000.00817.44
8.1.40.0060.00617.45
8.1.30.0040.00417.55
8.1.20.0090.00017.61
8.1.10.0000.00817.43
8.1.00.0090.00017.36
8.0.300.0000.00719.66
8.0.290.0000.00816.63
8.0.280.0050.00218.36
8.0.270.0030.00317.10
8.0.260.0000.00616.70
8.0.250.0000.00716.80
8.0.240.0000.00816.88
8.0.230.0000.00716.77
8.0.220.0000.00716.75
8.0.210.0000.00716.79
8.0.200.0060.00016.71
8.0.190.0040.00416.77
8.0.180.0000.00716.71
8.0.170.0000.00916.81
8.0.160.0000.00716.88
8.0.150.0000.00716.64
8.0.140.0030.00316.66
8.0.130.0030.00313.17
8.0.120.0000.00816.68
8.0.110.0040.00416.77
8.0.100.0070.00016.57
8.0.90.0030.00316.65
8.0.80.0040.01216.76
8.0.70.0080.00016.76
8.0.60.0040.00416.65
8.0.50.0000.00716.58
8.0.30.0090.00616.95
8.0.20.0110.01516.78
8.0.10.0070.00016.82
8.0.00.0060.01116.75
7.4.330.0030.00316.84
7.4.320.0030.00316.29
7.4.300.0000.00716.43
7.4.290.0000.00716.43
7.4.280.0080.00016.52
7.4.270.0030.00316.52
7.4.260.0030.00316.51
7.4.250.0040.00416.25
7.4.240.0070.00016.34
7.4.230.0080.00016.41
7.4.220.0000.00816.40
7.4.210.0080.00716.47
7.4.200.0000.00816.17
7.4.160.0100.00816.29
7.4.140.0110.00817.86
7.4.130.0070.01016.68
7.4.120.0070.01116.21
7.4.110.0140.00316.55
7.4.100.0130.00816.44
7.4.90.0070.01016.49
7.4.80.0150.00919.39
7.4.70.0050.01116.55
7.4.60.0030.01316.46
7.4.50.0080.00516.18
7.4.40.0100.00716.31
7.4.00.0090.00714.54
7.3.330.0000.00513.24
7.3.320.0000.00713.21
7.3.310.0070.00016.14
7.3.300.0000.00716.09
7.3.290.0090.00916.20
7.3.280.0110.00816.20
7.3.260.0120.00716.34
7.3.240.0110.00616.32
7.3.230.0190.00316.24
7.3.210.0100.01016.19
7.3.200.0080.00816.17
7.3.190.0120.01016.29
7.3.180.0060.01316.31
7.3.170.0030.01416.37
7.3.160.0060.00916.48
7.3.120.0100.00714.53
7.3.110.0110.00714.50
7.3.100.0040.00814.96
7.3.90.0110.00414.80
7.3.80.0070.00714.63
7.3.70.0090.00314.57
7.3.60.0130.00314.58
7.3.50.0070.00714.80
7.3.40.0000.01414.69
7.3.30.0070.00914.62
7.3.20.1840.00515.40
7.3.10.1790.01515.55
7.3.00.1730.00915.36
7.2.330.0080.01616.17
7.2.320.0130.00316.49
7.2.310.0060.01216.21
7.2.300.0130.01016.41
7.2.290.0100.00716.23
7.2.250.0140.00314.56
7.2.240.0030.01714.64
7.2.230.0090.00914.79
7.2.220.0070.00314.99
7.2.210.0060.01015.00
7.2.200.0160.00015.01
7.2.190.0000.01514.66
7.2.180.0110.00614.62
7.2.170.0150.00014.58
7.2.160.0100.00514.88
7.2.150.4640.00714.80
7.2.140.2780.00714.73
7.2.130.3720.00314.47
7.2.120.3750.01014.79
7.2.110.3790.00714.74
7.2.100.3950.00315.02
7.2.90.3000.00714.93
7.2.80.3790.01314.83
7.2.70.3850.02014.65
7.2.60.4350.01414.83
7.2.50.3920.02014.94
7.2.40.3900.01014.85
7.2.30.3540.01014.81
7.2.20.4090.01015.02
7.2.10.3380.00714.88
7.2.00.3330.00714.98
7.1.330.0110.00415.49
7.1.320.0110.00415.49
7.1.310.0000.00915.84
7.1.300.0000.01115.50
7.1.290.0030.00915.61
7.1.280.0040.00415.46
7.1.270.1970.00714.61
7.1.260.2440.00614.59
7.1.250.4140.00313.80

preferences:
31.71 ms | 401 KiB | 5 Q