3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Checker { public function check(): void {} } class A { public function checkThings() { $check1 = new Checker; $check1->check(); } } $a = new A(); $a->checkThings(); class B { public function checkThings(Checker $checker) { $checker->check(); } } $checker = new Checker(); $b = new B(); $b->checkThings( $checker );

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.40.0120.00318.65
8.3.30.0140.00018.63
8.3.20.0050.00220.21
8.3.10.0000.00722.10
8.3.00.0050.00323.66
8.2.170.0070.00722.96
8.2.160.0070.00722.07
8.2.150.0080.00024.18
8.2.140.0160.00324.66
8.2.130.0040.00420.52
8.2.120.0040.00426.35
8.2.110.0040.00420.94
8.2.100.0110.00017.78
8.2.90.0000.00819.27
8.2.80.0080.00017.97
8.2.70.0050.00517.25
8.2.60.0060.00317.80
8.2.50.0040.00418.10
8.2.40.0040.00420.60
8.2.30.0000.00820.97
8.2.20.0000.00817.98
8.2.10.0030.00518.00
8.2.00.0060.00318.02
8.1.270.0040.00420.20
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0100.00022.00
8.1.230.0000.01220.89
8.1.220.0040.00417.79
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0000.00818.58
8.1.160.0050.00218.89
8.1.150.0040.00420.07
8.1.140.0000.00717.58
8.1.130.0030.00319.02
8.1.120.0000.00717.40
8.1.110.0080.00317.28
8.1.100.0030.00617.38
8.1.90.0050.00217.32
8.1.80.0060.00317.28
8.1.70.0000.00717.40
8.1.60.0070.00017.47
8.1.50.0040.00417.52
8.1.40.0050.00217.48
8.1.30.0080.00017.57
8.1.20.0070.00017.50
8.1.10.0060.00317.50
8.1.00.0030.00617.44
8.0.300.0040.00418.77
8.0.290.0070.00016.58
8.0.280.0070.00018.44
8.0.270.0000.00817.18
8.0.260.0050.00318.41
8.0.250.0070.00016.86
8.0.240.0040.00417.00
8.0.230.0050.00216.94
8.0.220.0030.00316.85
8.0.210.0070.00316.89
8.0.200.0000.00617.04
8.0.190.0040.00416.91
8.0.180.0050.00316.80
8.0.170.0070.00016.83
8.0.160.0000.00816.79
8.0.150.0090.00016.78
8.0.140.0060.00316.89
8.0.130.0050.00013.31
8.0.120.0040.00416.82
8.0.110.0040.00416.94
8.0.100.0040.00416.93
8.0.90.0000.00716.93
8.0.80.0030.01716.84
8.0.70.0080.00016.93
8.0.60.0050.00316.75
8.0.50.0000.00716.72
8.0.30.0080.01017.05
8.0.20.0100.01017.40
8.0.10.0040.00417.13
8.0.00.0120.00916.63
7.4.330.0000.00415.55
7.4.320.0000.00616.53
7.4.300.0000.00616.41
7.4.290.0000.00716.60
7.4.280.0000.00816.48
7.4.270.0050.00316.36
7.4.260.0030.00316.60
7.4.250.0000.00716.55
7.4.240.0050.00216.51
7.4.230.0000.00716.70
7.4.220.0150.00316.43
7.4.210.0060.01116.57
7.4.200.0030.00516.58
7.4.160.0080.01016.38
7.4.150.0030.01417.40
7.4.140.0100.01217.86
7.4.130.0140.00716.43
7.4.120.0100.00916.49
7.4.110.0150.00916.34
7.4.100.0040.01516.42
7.4.90.0120.01216.30
7.4.80.0050.01519.39
7.4.70.0120.00916.61
7.4.60.0090.00816.50
7.4.50.0070.01016.34
7.4.40.0060.01616.54
7.4.30.0070.01016.50
7.4.00.0130.00015.12
7.3.330.0000.00713.02
7.3.320.0020.00313.31
7.3.310.0030.00316.09
7.3.300.0000.00716.22
7.3.290.0060.01016.20
7.3.280.0090.00816.24
7.3.270.0140.00417.40
7.3.260.0060.01516.66
7.3.250.0070.01316.17
7.3.240.0110.00616.29
7.3.230.0060.01016.51
7.3.210.0060.01916.43
7.3.200.0080.00816.47
7.3.190.0070.01016.52
7.3.180.0160.00016.29
7.3.170.0070.01016.55
7.3.160.0080.00816.32
7.2.330.0070.01116.56
7.2.320.0100.01416.70
7.2.310.0070.01016.60
7.2.300.0060.01216.27
7.2.290.0040.01216.66
7.2.110.0110.00416.71
7.2.60.0090.00616.89
7.1.200.0060.00615.80
7.1.100.0030.00917.70
7.1.90.0030.01017.80
7.1.80.0090.00317.76
7.1.70.0040.00816.96
7.1.60.0100.01435.01
7.1.50.0110.01534.77
7.1.40.0110.01434.24
7.1.30.0160.00934.13
7.1.20.0180.00634.43
7.1.10.0090.00316.55
7.1.00.0000.01216.47
7.0.240.0080.00517.33
7.0.230.0030.00917.58
7.0.220.0060.00617.45
7.0.210.0100.00316.23
7.0.200.0030.01016.68
7.0.190.0000.01216.55
7.0.180.0080.00416.21
7.0.170.0090.00316.11
7.0.160.0030.01016.37
7.0.150.0000.01216.13
7.0.140.0100.00316.24
7.0.130.0060.00616.41
7.0.120.0000.01216.61
7.0.110.0060.00616.30
7.0.100.0000.01716.13
7.0.90.0000.01316.21
7.0.80.0040.00916.10
7.0.70.0030.01016.17
7.0.60.0070.01415.71
7.0.50.0040.01116.10
7.0.40.0100.01016.46
7.0.30.0060.01216.22
7.0.20.0060.01016.29
7.0.10.0090.00616.33
7.0.00.0040.01216.13

preferences:
51.52 ms | 400 KiB | 5 Q