3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Logger { public function log(string $msg); } class Application { private $logger; public function getLogger(): Logger { return $this->logger; } public function setLogger(Logger $logger) { $this->logger = $logger; } } $app = new Application; $app->setLogger(new class implements Logger { public function log(string $msg) { echo $msg; } }); $app->getLogger()->log("bla bla"); ?>

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.0040.01118.79
8.3.30.0040.01118.62
8.3.20.0070.00020.21
8.3.10.0040.00423.51
8.3.00.0040.00418.05
8.2.170.0140.00022.96
8.2.160.0100.00320.43
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0060.00317.63
8.2.110.0080.00322.16
8.2.100.0090.00317.50
8.2.90.0030.00519.11
8.2.80.0000.00917.97
8.2.70.0000.00817.75
8.2.60.0050.00317.80
8.2.50.0080.00018.07
8.2.40.0030.00521.06
8.2.30.0000.00720.64
8.2.20.0050.00217.70
8.2.10.0040.00417.98
8.2.00.0000.00818.12
8.1.270.0110.00423.96
8.1.260.0070.00026.35
8.1.250.0050.00228.09
8.1.240.0000.00922.40
8.1.230.0110.00417.42
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0000.00917.25
8.1.190.0080.00017.35
8.1.180.0050.00318.10
8.1.170.0020.00518.65
8.1.160.0070.00021.97
8.1.150.0030.00518.83
8.1.140.0000.00819.66
8.1.130.0080.00017.72
8.1.120.0070.00017.50
8.1.110.0000.00817.48
8.1.100.0040.00417.44
8.1.90.0050.00217.46
8.1.80.0060.00617.46
8.1.70.0000.00717.34
8.1.60.0030.00617.61
8.1.50.0000.00717.44
8.1.40.0000.00817.56
8.1.30.0030.00617.67
8.1.20.0060.00317.63
8.1.10.0000.00717.63
8.1.00.0000.00817.45
8.0.300.0040.00418.77
8.0.290.0000.00816.75
8.0.280.0040.00418.33
8.0.270.0000.00717.32
8.0.260.0060.00017.16
8.0.250.0050.00317.05
8.0.240.0000.00717.01
8.0.230.0030.00316.98
8.0.220.0030.00316.98
8.0.210.0040.00416.98
8.0.200.0030.00316.91
8.0.190.0080.00016.97
8.0.180.0030.00316.87
8.0.170.0030.00517.02
8.0.160.0040.00417.05
8.0.150.0070.00016.86
8.0.140.0040.00416.91
8.0.130.0000.00513.39
8.0.120.0040.00416.94
8.0.110.0050.00316.86
8.0.100.0040.00416.85
8.0.90.0040.00317.07
8.0.80.0040.01416.89
8.0.70.0040.00416.94
8.0.60.0040.00416.83
8.0.50.0000.00717.00
8.0.30.0060.01317.08
8.0.20.0110.00917.40
8.0.10.0070.00017.09
8.0.00.0070.01016.87
7.4.330.0000.00615.08
7.4.320.0040.00416.50
7.4.300.0060.00016.40
7.4.290.0030.00316.57
7.4.280.0050.00316.54
7.4.270.0080.00016.49
7.4.260.0000.00716.45
7.4.250.0000.00716.38
7.4.240.0030.00516.54
7.4.230.0000.00716.63
7.4.220.0060.01216.68
7.4.210.0000.01516.48
7.4.200.0000.00716.32
7.4.160.0080.01116.43
7.4.150.0100.00717.40
7.4.140.0130.00817.86
7.4.130.0080.01016.49
7.4.120.0110.00716.51
7.4.110.0100.00716.46
7.4.100.0160.00316.60
7.4.90.0100.00716.57
7.4.80.0150.00619.39
7.4.70.0060.01316.55
7.4.60.0130.00316.60
7.4.50.0000.00816.40
7.4.40.0100.00716.47
7.4.30.0060.01316.27
7.4.00.0040.00715.09
7.3.330.0020.00213.27
7.3.320.0000.00513.17
7.3.310.0040.00416.25
7.3.300.0030.00316.21
7.3.290.0060.00816.21
7.3.280.0070.00916.22
7.3.270.0030.01317.40
7.3.260.0100.01116.27
7.3.250.0090.01016.43
7.3.240.0140.00416.27
7.3.230.0070.01116.39
7.3.210.0130.00716.57
7.3.200.0160.00316.18
7.3.190.0100.00616.59
7.3.180.0060.00916.28
7.3.170.0110.00516.60
7.3.160.0030.01216.32
7.3.120.0040.00714.40
7.3.110.0080.00314.79
7.3.100.0040.00714.83
7.3.90.0070.00314.82
7.3.80.0060.00914.75
7.3.70.0070.00014.55
7.3.60.0120.00314.79
7.3.50.0080.00814.84
7.3.40.0030.01014.83
7.3.30.0000.01114.89
7.3.20.0040.00416.64
7.3.10.0020.00916.48
7.3.00.0030.00716.51
7.2.330.0130.00616.75
7.2.320.0130.01016.49
7.2.310.0070.01116.75
7.2.300.0180.00316.80
7.2.290.0130.00616.62
7.2.250.0000.01215.05
7.2.240.0030.00914.83
7.2.230.0080.00414.77
7.2.220.0080.00614.86
7.2.210.0070.00715.29
7.2.200.0000.00814.96
7.2.190.0060.01015.00
7.2.180.0030.01315.07
7.2.170.0000.00815.06
7.2.160.0070.00715.08
7.2.150.0060.00617.03
7.2.140.0130.00016.86
7.2.130.0040.00616.90
7.2.120.0020.01417.00
7.2.110.0040.00917.03
7.2.100.0040.01017.02
7.2.90.0050.01016.93
7.2.80.0050.00916.78
7.2.70.0080.00617.12
7.2.60.0040.01116.74
7.2.50.0060.00616.88
7.2.40.0060.00416.75
7.2.30.0070.00816.80
7.2.20.0060.00816.78
7.2.10.0050.01116.95
7.2.00.0080.00817.76
7.1.330.0030.00715.39
7.1.320.0060.00615.81
7.1.310.0040.00415.73
7.1.300.0060.00915.85
7.1.290.0030.00915.72
7.1.280.0060.00615.57
7.1.270.0060.00615.80
7.1.260.0000.00915.70
7.1.250.0070.00515.75
7.1.200.0030.01215.52
7.1.100.0000.01018.12
7.1.70.0030.00317.20
7.1.60.0070.01719.50
7.1.50.0060.01317.04
7.1.00.0000.08022.40
7.0.200.0440.00314.95
7.0.60.0270.06719.90
7.0.50.0100.07317.87
7.0.40.0100.08719.96
7.0.30.0270.07720.10
7.0.20.0230.05320.10
7.0.10.0030.04320.19
7.0.00.0070.04320.24
5.6.280.0000.03721.04
5.6.210.0070.04020.70
5.6.200.0000.05018.16
5.6.190.0130.08020.48
5.6.180.0330.07720.46
5.6.170.0330.05720.46
5.6.160.0070.06320.55
5.6.150.0070.05718.18
5.6.140.0000.06318.27
5.6.130.0070.07018.18
5.6.120.0030.04020.99
5.6.110.0070.08321.05
5.6.100.0230.06721.11
5.6.90.0030.08721.04
5.6.80.0030.04720.38
5.5.350.0170.04320.38
5.5.340.0230.05718.05
5.5.330.0030.09020.43
5.5.320.3800.04320.24
5.5.310.0130.04720.51
5.5.300.0030.07017.99
5.5.290.0070.04317.96
5.5.280.0000.04320.89
5.5.270.0100.04720.87
5.5.260.0030.08320.78
5.5.250.0070.06320.58
5.5.240.0130.07020.37
5.4.450.0900.05319.45
5.4.440.0900.07019.20
5.4.430.0770.05019.52
5.4.420.0970.04319.47
5.4.410.0730.06019.48
5.4.400.0800.06719.16
5.4.390.0770.05719.06
5.4.380.0870.05018.89
5.4.370.0770.05319.23
5.4.360.0770.05318.98
5.4.350.0670.06019.02
5.4.340.0870.05319.26
5.4.320.0770.05719.13
5.4.310.0630.06019.01
5.4.300.0870.06719.27
5.4.290.1030.04019.17
5.4.280.0870.06719.29
5.4.270.1100.05019.22
5.4.260.0870.04318.84
5.4.250.0670.07019.25
5.4.240.0730.06018.97
5.4.230.0130.04718.87
5.4.220.0130.05719.05
5.4.210.0300.06319.25
5.4.200.0770.05718.83
5.4.190.0970.04318.83
5.4.180.0830.06019.14
5.4.170.0600.06719.29
5.4.160.0170.05319.36
5.4.150.0170.07019.29
5.4.140.0670.06316.51
5.4.130.0530.05716.61
5.4.120.0230.05716.77
5.4.110.0230.06016.57
5.4.100.0830.06016.66
5.4.90.0730.06016.70
5.4.80.0930.06316.66
5.4.70.0300.04716.55
5.4.60.0070.04016.25
5.4.50.0000.09016.55
5.4.40.0200.04016.43
5.4.30.0300.06716.42
5.4.20.0070.04716.48

preferences:
54.68 ms | 400 KiB | 5 Q