3v4l.org

run code in 300+ PHP versions simultaneously
<?php class CookieService { public function set() { } public function get(Cookie $cookie): mixed { return $cookie->get("value"); } }

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.5.00.0110.01019.88
8.4.150.0020.00014.05
8.4.140.0140.00717.29
8.4.130.0130.00718.71
8.4.120.0110.00817.57
8.4.110.0140.00717.45
8.4.100.0090.01017.59
8.4.90.0130.00820.66
8.4.80.0030.00617.77
8.4.70.0090.00717.88
8.4.60.0080.01118.67
8.4.50.0100.01020.49
8.4.40.0090.00917.48
8.4.30.0060.00319.02
8.4.20.0130.00718.84
8.4.10.0120.00619.18
8.3.280.0100.01018.22
8.3.270.0120.00816.54
8.3.260.0120.00716.78
8.3.250.0110.00816.58
8.3.240.0130.00716.80
8.3.230.0150.00416.23
8.3.220.0030.00418.91
8.3.210.0050.00216.53
8.3.200.0040.00616.49
8.3.190.0020.00716.95
8.3.180.0070.01216.66
8.3.170.0090.00918.88
8.3.160.0190.00220.67
8.3.150.0110.00717.16
8.3.140.0080.00016.54
8.3.130.0050.00318.09
8.3.120.0050.00318.72
8.3.110.0040.00420.94
8.3.100.0160.00316.51
8.3.90.0070.00726.77
8.3.80.0060.00317.97
8.3.70.0040.01118.30
8.3.60.0120.00618.43
8.3.50.0110.00416.32
8.3.40.0140.00020.33
8.3.30.0070.00720.18
8.3.20.0040.00424.18
8.3.10.0050.00224.66
8.3.00.0100.01028.09
8.2.290.0100.00816.59
8.2.280.0110.00718.22
8.2.270.0110.00718.61
8.2.260.0070.00718.54
8.2.250.0050.00316.55
8.2.240.0050.00316.87
8.2.230.0000.00922.58
8.2.220.0120.00824.06
8.2.210.0110.00426.77
8.2.200.0030.00616.25
8.2.190.0040.01417.93
8.2.180.0120.00316.38
8.2.170.0070.01318.69
8.2.160.0100.00322.96
8.2.150.0060.00325.66
8.2.140.0050.00324.66
8.2.130.0120.00328.09
8.2.120.0060.00928.09
8.2.110.0040.00428.09
8.2.100.0040.00428.09
8.2.90.0030.00628.09
8.2.80.0040.00428.09
8.2.70.0040.00428.09
8.2.60.0050.00328.09
8.2.50.0080.00028.09
8.2.40.0030.00628.09
8.2.30.0040.00428.09
8.2.20.0040.00428.09
8.2.10.0040.00428.09
8.2.00.0040.00428.09
8.1.330.0140.00516.43
8.1.320.0090.01116.16
8.1.310.0140.00018.33
8.1.300.0090.00015.83
8.1.290.0000.00930.84
8.1.280.0090.00625.92
8.1.270.0030.00623.97
8.1.260.0080.00028.09
8.1.250.0030.00628.09
8.1.240.0040.00428.09
8.1.230.0030.00728.09
8.1.220.0070.00328.09
8.1.210.0040.00428.09
8.1.200.0040.00428.09
8.1.190.0050.00328.09
8.1.180.0060.00328.09
8.1.170.0040.00428.09
8.1.160.0040.00428.09
8.1.150.0040.00428.09
8.1.140.0040.00428.09
8.1.130.0040.00428.09
8.1.120.0060.00328.09
8.1.110.0090.00028.09
8.1.100.0000.00828.09
8.1.90.0000.00828.09
8.1.80.0080.00028.09
8.1.70.0080.00028.09
8.1.60.0080.00028.09
8.1.50.0040.00428.09
8.1.40.0080.00028.09
8.1.30.0080.00028.09
8.1.20.0040.00428.09
8.1.10.0070.00328.09
8.1.00.0090.00028.09

preferences:
29.24 ms | 403 KiB | 5 Q