3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait SomeTrait { public $b = true; } class Food { use SomeTrait; public $i = 0; } class AnimalFood extends Food {} interface Animal { public function eat(AnimalFood $food); } class Dog implements Animal { public function eat(Food $food) {} } var_dump(new AnimalFood);

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.0110.00716.50
8.3.50.0150.00316.25
8.3.40.0170.00318.73
8.3.30.0030.01218.69
8.3.20.0080.00024.18
8.3.10.0040.00424.66
8.3.00.0060.00326.16
8.2.180.0070.00725.92
8.2.170.0040.01118.79
8.2.160.0120.00622.96
8.2.150.0070.00025.66
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0050.00320.93
8.2.110.0030.00621.19
8.2.100.0130.00017.49
8.2.90.0040.00417.85
8.2.80.0080.00017.97
8.2.70.0030.00517.78
8.2.60.0090.00018.03
8.2.50.0080.00018.10
8.2.40.0000.00819.17
8.2.30.0070.00019.11
8.2.20.0000.00818.09
8.2.10.0020.00519.17
8.2.00.0050.00219.23
8.1.280.0060.01025.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0050.00322.06
8.1.230.0040.00722.68
8.1.220.0000.00817.74
8.1.210.0040.00418.98
8.1.200.0060.00317.22
8.1.190.0040.00417.23
8.1.180.0050.00318.10
8.1.170.0040.00418.65
8.1.160.0040.00419.04
8.1.150.0050.00518.82
8.1.140.0040.00418.82
8.1.130.0000.00720.04
8.1.120.0080.00017.39
8.1.110.0040.00417.37
8.1.100.0030.00517.42
8.1.90.0050.00217.27
8.1.80.0070.00017.31
8.1.70.0030.00317.27
8.1.60.0000.00817.55
8.1.50.0080.00017.49
8.1.40.0050.00317.46
8.1.30.0060.00317.58
8.1.20.0060.00317.57
8.1.10.0050.00217.34
8.1.00.0040.00417.38
8.0.300.0050.00521.70
8.0.290.0040.00416.75
8.0.280.0000.00718.45
8.0.270.0040.00416.78
8.0.260.0000.00618.32
8.0.250.0000.00716.97
8.0.240.0040.00416.91
8.0.230.0030.00316.87
8.0.220.0000.00716.83
8.0.210.0000.00716.86
8.0.200.0000.00816.77
8.0.190.0050.00316.91
8.0.180.0000.00716.85
8.0.170.0000.00816.87
8.0.160.0000.00716.83
8.0.150.0000.00816.86
8.0.140.0030.00716.66
8.0.130.0030.00313.22
8.0.120.0000.00716.79
8.0.110.0040.00416.71
8.0.100.0000.00916.65
8.0.90.0030.00316.83
8.0.80.0090.01016.78
8.0.70.0040.00416.71
8.0.60.0040.00416.63
8.0.50.0030.00416.70
8.0.30.0130.00816.85
8.0.20.0080.01116.91
8.0.10.0080.01116.83
8.0.00.0140.01016.93
7.4.330.0000.00515.55
7.4.320.0030.00316.53
7.4.300.0030.00316.51
7.4.290.0050.00316.43
7.4.280.0030.00616.48
7.4.270.0070.00016.45
7.4.260.0030.00516.41
7.4.250.0030.00316.25
7.4.240.0000.00716.45
7.4.230.0040.00416.43
7.4.220.0040.00316.58
7.4.210.0030.01116.43
7.4.200.0000.00816.34
7.4.160.0060.01316.52
7.4.150.0130.00516.48
7.4.140.0130.00516.47
7.4.130.0170.00816.43
7.4.120.0090.01216.29
7.4.110.0190.00316.30
7.4.100.0110.01416.41
7.4.90.0090.01216.38
7.4.80.0170.00916.30
7.4.70.0110.01116.34
7.4.60.0110.01016.26
7.4.50.0170.00616.19
7.4.40.0130.01016.29
7.4.30.0160.00716.28
7.4.20.0120.01016.41
7.4.10.0130.00716.34
7.4.00.0080.00716.50
7.3.330.0030.00316.34
7.3.320.0000.00613.23
7.3.310.0000.00616.13
7.3.300.0050.00216.30
7.3.290.0130.00516.30
7.3.280.0060.01116.30
7.3.270.0080.01216.22
7.3.260.0070.01116.29
7.3.250.0130.01316.30
7.3.240.0080.00416.33
7.3.230.0120.01316.31
7.3.220.0150.00916.24
7.3.210.0180.00616.24
7.3.200.0150.00916.26
7.3.190.0180.00616.24
7.3.180.0120.01016.23
7.3.170.0110.01216.28
7.3.160.0080.01216.21
7.3.150.0120.00816.29
7.3.140.0130.01016.24
7.3.130.0190.00216.25
7.3.120.0100.01016.16
7.3.110.0120.01016.18
7.3.100.0170.00516.17
7.3.90.0170.00716.51
7.3.80.0160.00616.26
7.3.70.0150.01016.27
7.3.60.0100.01116.34
7.3.50.0160.00416.30
7.3.40.0120.00916.35
7.3.30.0120.01116.30
7.3.20.0160.00616.35
7.3.10.0110.00616.31
7.3.00.0290.00716.29

preferences:
32.94 ms | 400 KiB | 5 Q