3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Logger { public static function write (Message $message) { return $message->getName(); } } interface Message { public function getName(); } $message = (new class() implements Message { public function getName() { return 'anonyme !'; } }); echo Logger::write($message); // anonyme

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.0140.00416.38
8.3.50.0070.01421.19
8.3.40.0110.00718.68
8.3.30.0070.00718.85
8.3.20.0000.00820.29
8.3.10.0040.00421.74
8.3.00.0080.00017.80
8.2.180.0100.01016.38
8.2.170.0070.00722.96
8.2.160.0070.00720.39
8.2.150.0000.00724.18
8.2.140.0000.00724.66
8.2.130.0070.00026.16
8.2.120.0100.00017.50
8.2.110.0070.00322.13
8.2.100.0120.00517.77
8.2.90.0080.00019.21
8.2.80.0030.00617.97
8.2.70.0040.00417.48
8.2.60.0000.00818.03
8.2.50.0090.00018.07
8.2.40.0000.00819.36
8.2.30.0040.00420.69
8.2.20.0040.00417.74
8.2.10.0040.00418.12
8.2.00.0040.00418.05
8.1.280.0140.00325.92
8.1.270.0070.00024.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.90
8.1.230.0040.00818.97
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0000.00818.45
8.1.160.0030.00321.89
8.1.150.0080.00018.76
8.1.140.0030.00517.43
8.1.130.0070.00017.75
8.1.120.0000.00717.46
8.1.110.0040.00417.34
8.1.100.0000.00717.44
8.1.90.0040.00417.47
8.1.80.0000.00817.46
8.1.70.0000.00817.50
8.1.60.0000.00717.56
8.1.50.0050.00317.53
8.1.40.0040.00817.40
8.1.30.0040.00417.59
8.1.20.0040.00417.69
8.1.10.0040.00417.62
8.1.00.0040.00417.50
8.0.300.0040.00418.77
8.0.290.0030.00616.75
8.0.280.0000.00818.38
8.0.270.0000.00717.14
8.0.260.0030.00317.22
8.0.250.0030.00616.93
8.0.240.0070.00016.97
8.0.230.0000.00717.11
8.0.220.0000.00717.00
8.0.210.0000.00716.82
8.0.200.0020.00516.98
8.0.190.0070.00416.98
8.0.180.0040.00416.88
8.0.170.0040.00417.03
8.0.160.0040.00416.97
8.0.150.0040.00416.95
8.0.140.0040.00416.93
8.0.130.0000.00513.37
8.0.120.0080.00016.85
8.0.110.0040.00416.87
8.0.100.0040.00416.94
8.0.90.0030.00517.00
8.0.80.0030.01316.94
8.0.70.0040.00416.95
8.0.60.0080.00016.90
8.0.50.0000.00817.00
8.0.30.0060.01217.12
8.0.20.0110.00917.40
8.0.10.0000.00717.09
8.0.00.0090.01116.78
7.4.330.0000.00515.08
7.4.320.0070.00016.51
7.4.300.0000.00616.48
7.4.290.0030.00316.52
7.4.280.0030.00616.60
7.4.270.0000.00816.53
7.4.260.0040.00716.52
7.4.250.0000.01016.61
7.4.240.0010.00616.52
7.4.230.0070.00016.58
7.4.220.0070.01416.50
7.4.210.0040.01416.66
7.4.200.0000.00716.70
7.4.160.0080.00816.56
7.4.150.0060.01217.40
7.4.140.0130.00517.86
7.4.130.0130.00716.61
7.4.120.0130.00516.53
7.4.110.0130.01316.66
7.4.100.0100.00716.58
7.4.90.0060.01216.38
7.4.80.0130.00319.39
7.4.70.0090.00916.33
7.4.60.0120.00416.51
7.4.50.0020.00216.65
7.4.40.0120.01116.46
7.4.30.0100.00716.33
7.4.00.0030.01014.97
7.3.330.0060.00013.26
7.3.320.0030.00313.24
7.3.310.0030.00316.08
7.3.300.0000.00716.07
7.3.290.0040.01016.20
7.3.280.0100.01016.24
7.3.270.0170.00017.40
7.3.260.0120.00616.65
7.3.250.0080.00816.29
7.3.240.0090.01216.29
7.3.230.0100.00716.39
7.3.210.0040.01716.30
7.3.200.0130.00316.42
7.3.190.0070.01016.49
7.3.180.0000.01516.25
7.3.170.0090.01216.35
7.3.160.0060.01016.27
7.2.330.0000.01716.54
7.2.320.0120.00916.45
7.2.310.0090.00616.62
7.2.300.0080.00816.66
7.2.290.0100.00716.73
7.2.60.0040.01116.71
7.2.00.0070.01019.51
7.1.200.0030.00315.59
7.1.100.0000.01818.20
7.1.70.0030.00617.22
7.1.60.0110.01419.19
7.1.50.0070.01516.99
7.1.00.0030.07322.48
7.0.200.0030.00716.83
7.0.60.0070.05319.88
7.0.50.0070.04017.85
7.0.40.0030.09020.17
7.0.30.0370.07020.24
7.0.20.0230.03720.33
7.0.10.0130.05020.24
7.0.00.0070.05320.08
5.6.280.0070.03321.11
5.6.210.0100.07720.66
5.6.200.0100.07718.20
5.6.190.0100.08720.50
5.6.180.0200.06020.68
5.6.170.0230.06720.67
5.6.160.0070.04320.59
5.6.150.0070.08018.16
5.6.140.0100.08018.19
5.6.130.0070.04018.25
5.6.120.0070.03721.14
5.6.110.0170.06021.12
5.6.100.0070.05721.17
5.6.90.0070.05721.04
5.6.80.0000.08020.36
5.5.350.4500.04020.43
5.5.340.0030.04017.95
5.5.330.0100.03720.19
5.5.320.0230.07320.42
5.5.310.0200.08020.32
5.5.300.0000.08717.95
5.5.290.0070.06318.08
5.5.280.0100.07720.77
5.5.270.0070.04320.80
5.5.260.0170.06720.87
5.5.250.0170.05020.80
5.5.240.0070.06720.04
5.4.450.0700.08719.63
5.4.440.0830.07319.63
5.4.430.0900.06019.30
5.4.420.0530.07719.68
5.4.410.0600.07319.19
5.4.400.0800.06319.06
5.4.390.1000.06319.26
5.4.380.0600.08018.99
5.4.370.0730.07019.30
5.4.360.0800.06319.23
5.4.350.0630.08019.26
5.4.340.0800.06019.13
5.4.320.0770.08019.37
5.4.310.1000.06019.13
5.4.300.0970.06319.36
5.4.290.0670.05718.87
5.4.280.0730.06318.97
5.4.270.0670.06019.30
5.4.260.0770.04019.28
5.4.250.0730.04719.30
5.4.240.0800.06718.91
5.4.230.0730.05018.85
5.4.220.0770.06019.12
5.4.210.1130.05719.03
5.4.200.0970.05719.14
5.4.190.0730.05318.97
5.4.180.0700.08019.14
5.4.170.0930.06319.27
5.4.160.0700.06019.04
5.4.150.0830.06719.25
5.4.140.0100.07716.60
5.4.130.0530.07016.54
5.4.120.0770.04716.33
5.4.110.0770.05016.65
5.4.100.0670.05716.57
5.4.90.0700.05316.63
5.4.80.0600.05316.63
5.4.70.0230.05716.60
5.4.60.0230.06016.43
5.4.50.0370.04316.52
5.4.40.0270.06716.51
5.4.30.0030.04316.53
5.4.20.0030.05016.39
5.4.10.0200.03316.22

preferences:
41.2 ms | 401 KiB | 5 Q