3v4l.org

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

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.0080.00818.28
8.3.50.0130.00721.26
8.3.40.0080.00818.85
8.3.30.0110.00418.66
8.3.20.0070.00020.34
8.3.10.0070.00021.85
8.3.00.0000.00817.93
8.2.180.0120.00616.88
8.2.170.0090.00622.96
8.2.160.0140.00020.52
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0050.00326.16
8.2.120.0090.00017.75
8.2.110.0030.00622.06
8.2.100.0130.00317.72
8.2.90.0040.00419.21
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0040.00417.80
8.2.50.0000.01118.07
8.2.40.0000.00821.07
8.2.30.0000.00720.68
8.2.20.0000.00917.76
8.2.10.0030.00518.00
8.2.00.0040.00418.11
8.1.280.0130.00325.92
8.1.270.0030.01621.99
8.1.260.0060.00326.35
8.1.250.0000.00728.09
8.1.240.0090.00023.91
8.1.230.0040.00819.04
8.1.220.0080.00017.74
8.1.210.0000.00918.77
8.1.200.0090.00017.35
8.1.190.0040.00417.11
8.1.180.0080.00018.10
8.1.170.0000.00818.55
8.1.160.0000.00722.05
8.1.150.0000.00718.80
8.1.140.0050.00317.41
8.1.130.0030.00317.70
8.1.120.0000.00717.41
8.1.110.0050.00317.35
8.1.100.0000.00817.47
8.1.90.0070.00017.34
8.1.80.0000.00717.48
8.1.70.0030.00317.38
8.1.60.0000.00817.55
8.1.50.0040.00417.43
8.1.40.0030.00717.53
8.1.30.0040.00417.62
8.1.20.0040.00417.59
8.1.10.0000.00817.55
8.1.00.0030.00517.39
8.0.300.0020.00518.77
8.0.290.0000.00716.75
8.0.280.0030.00318.43
8.0.270.0040.00417.24
8.0.260.0040.00417.32
8.0.250.0000.00716.88
8.0.240.0070.00017.08
8.0.230.0040.00417.04
8.0.220.0000.00616.98
8.0.210.0050.00316.94
8.0.200.0070.00016.88
8.0.190.0040.00717.02
8.0.180.0000.00716.87
8.0.170.0000.00816.98
8.0.160.0040.00316.96
8.0.150.0040.00416.92
8.0.140.0070.00316.77
8.0.130.0030.00313.46
8.0.120.0090.00016.95
8.0.110.0000.00716.89
8.0.100.0000.00716.95
8.0.90.0000.00816.81
8.0.80.0030.01317.02
8.0.70.0020.00516.90
8.0.60.0030.00416.96
8.0.50.0050.00316.97
8.0.30.0080.00916.99
8.0.20.0110.00817.40
8.0.10.0080.00017.01
8.0.00.0100.01116.79
7.4.330.0000.00515.08
7.4.320.0000.00616.57
7.4.300.0030.00316.55
7.4.290.0030.00316.61
7.4.280.0050.00516.61
7.4.270.0030.00316.41
7.4.260.0000.00716.52
7.4.250.0050.00516.57
7.4.240.0050.00216.51
7.4.230.0070.00016.53
7.4.220.0070.01016.70
7.4.210.0110.00316.64
7.4.200.0070.00016.32
7.4.160.0080.00816.68
7.4.150.0170.00717.40
7.4.140.0100.01017.86
7.4.130.0130.00516.63
7.4.120.0120.00516.60
7.4.110.0100.01016.41
7.4.100.0070.01116.50
7.4.90.0030.01716.45
7.4.80.0030.01919.39
7.4.70.0100.00616.73
7.4.60.0000.01616.41
7.4.50.0030.00316.63
7.4.40.0100.01016.73
7.4.30.0000.01816.45
7.4.00.0060.01214.95
7.3.330.0000.00513.23
7.3.320.0020.00213.20
7.3.310.0040.00416.37
7.3.300.0070.00016.43
7.3.290.0100.00616.33
7.3.280.0090.00816.36
7.3.270.0130.00417.40
7.3.260.0140.00316.36
7.3.250.0110.00716.31
7.3.240.0160.00416.56
7.3.230.0030.01516.52
7.3.210.0170.00316.49
7.3.200.0060.01016.47
7.3.190.0100.01316.32
7.3.180.0120.00616.57
7.3.170.0150.00716.38
7.3.160.0130.00316.40
7.3.120.0040.01414.84
7.3.110.0060.01214.67
7.3.100.0080.00614.97
7.3.90.0000.01414.86
7.3.80.0030.01014.92
7.3.70.0030.00714.65
7.3.60.0130.00314.58
7.3.50.0070.00314.81
7.3.40.0080.00014.92
7.3.30.0060.00914.86
7.3.20.0040.01116.77
7.3.10.0060.00916.60
7.3.00.0050.00816.49
7.2.330.0060.01616.61
7.2.320.0070.01716.75
7.2.310.0140.00316.33
7.2.300.0070.01016.58
7.2.290.0120.00616.70
7.2.250.0100.01014.90
7.2.240.0140.00714.83
7.2.230.0080.00414.95
7.2.220.0060.00915.10
7.2.210.0060.00914.82
7.2.200.0030.00615.15
7.2.190.0090.00615.15
7.2.180.0060.00315.03
7.2.170.0030.01015.14
7.2.130.0050.00916.84
7.2.120.0050.00716.96
7.2.110.0060.00816.82
7.2.100.0040.00816.72
7.2.90.0070.00816.84
7.2.80.0070.00316.85
7.2.70.0050.00816.83
7.2.60.0070.00616.77
7.2.50.0040.00916.76
7.2.40.0070.00616.89
7.2.30.0070.00816.82
7.2.20.0050.00616.85
7.2.10.0080.00616.84
7.2.00.0040.01117.44
7.1.330.0100.00315.68
7.1.320.0030.00615.75
7.1.310.0080.00815.88
7.1.300.0000.01415.60
7.1.290.0060.00615.72
7.1.280.0070.00715.81
7.1.270.0120.00315.73
7.1.260.0000.01115.64
7.1.250.0050.00715.83
7.1.200.0240.00015.63
7.1.100.0090.00018.09
7.1.70.0030.00717.24
7.1.60.0170.01319.19
7.1.50.0080.01116.89
7.1.00.0100.07022.35
7.0.200.0040.00416.88
7.0.60.0000.08720.04
7.0.50.0000.04317.89
7.0.40.0130.08020.18
7.0.30.0270.05020.12
7.0.20.0330.06720.25
7.0.10.0070.08320.15
7.0.00.0130.07720.08
5.6.280.0000.05021.05
5.6.210.0100.07720.54
5.6.200.0100.05018.22
5.6.190.0000.06020.46
5.6.180.0400.06320.63
5.6.170.0270.05020.48
5.6.160.0030.05320.53
5.6.150.0100.07318.19
5.6.140.0030.06018.18
5.6.130.0100.08018.18
5.6.120.0100.03720.90
5.6.110.0070.04020.98
5.6.100.0000.09320.89
5.6.90.0100.05721.01
5.6.80.0170.03320.43
5.5.350.3930.04720.50
5.5.340.0070.04018.01
5.5.330.0130.07720.57
5.5.320.0270.04320.36
5.5.310.0230.04020.34
5.5.300.0030.05318.09
5.5.290.0030.08718.03
5.5.280.0000.04320.74
5.5.270.0030.04320.62
5.5.260.0100.06320.73
5.5.250.0130.07720.58
5.5.240.0100.07020.05
5.4.450.0670.06719.70
5.4.440.0700.06719.30
5.4.430.0730.07719.63
5.4.420.0600.08019.63
5.4.410.0730.06319.32
5.4.400.0670.07019.26
5.4.390.0700.05719.28
5.4.380.0430.06719.13
5.4.370.0600.05719.15
5.4.360.0700.06319.01
5.4.350.0630.07019.30
5.4.340.0670.07019.30
5.4.320.0730.07719.01
5.4.310.0730.07719.06
5.4.300.0770.07019.13
5.4.290.0530.06318.98
5.4.280.0770.04719.15
5.4.270.0830.05019.25
5.4.260.0670.07719.15
5.4.250.0670.06719.25
5.4.240.0670.06018.86
5.4.230.0570.06018.97
5.4.220.0570.05719.36
5.4.210.0570.07018.98
5.4.200.0700.04719.14
5.4.190.0700.05319.21
5.4.180.0600.08019.14
5.4.170.0900.07019.36
5.4.160.0800.08319.01
5.4.150.0830.07719.22
5.4.140.0730.06316.36
5.4.130.0800.04316.52
5.4.120.0670.06716.41
5.4.110.0800.06316.65
5.4.100.0670.05316.67
5.4.90.0630.05316.65
5.4.80.0830.06316.23
5.4.70.0300.06016.32
5.4.60.0300.06016.55
5.4.50.0270.06016.19
5.4.40.0330.05316.18
5.4.30.0070.06016.37
5.4.20.0000.04716.53
5.4.10.0230.03016.52

preferences:
52.41 ms | 401 KiB | 5 Q