3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Log { public function alert($message); } class EchoLog implements Log { public function alert($message) { echo $message; } } class TestLog { private $log; const ARR = ['Hello', ' ', 'World!']; public function __construct(Log $log) { $this->log = $log; } public function run() { $this->log->alert(SELF::ARR[0] . SELF::ARR[1] . SELF::ARR[2]); } } $testLog = new TestLog(new EchoLog()); $testLog->run();

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.0060.00818.43
8.3.50.0080.01322.01
8.3.40.0070.01018.96
8.3.30.0070.00719.08
8.3.20.0070.00020.29
8.3.10.0140.00023.27
8.3.00.0090.00019.50
8.2.180.0150.00016.50
8.2.170.0140.00722.96
8.2.160.0030.01020.48
8.2.150.0070.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00420.88
8.2.110.0100.00319.14
8.2.100.0070.00417.75
8.2.90.0040.00419.05
8.2.80.0000.00817.97
8.2.70.0030.00617.88
8.2.60.0030.00517.93
8.2.50.0060.00318.07
8.2.40.0000.00818.22
8.2.30.0000.00717.95
8.2.20.0040.00417.62
8.2.10.0040.00418.12
8.2.00.0000.00817.68
8.1.280.0140.00725.92
8.1.270.0030.00622.13
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0040.00419.26
8.1.230.0070.00419.01
8.1.220.0030.00617.74
8.1.210.0000.00818.77
8.1.200.0120.00017.35
8.1.190.0040.00417.35
8.1.180.0050.00318.10
8.1.170.0030.00518.61
8.1.160.0040.00422.07
8.1.150.0040.00418.94
8.1.140.0000.00717.49
8.1.130.0040.00417.70
8.1.120.0000.00817.47
8.1.110.0050.00217.45
8.1.100.0050.00317.47
8.1.90.0040.00417.44
8.1.80.0000.00717.35
8.1.70.0070.00017.35
8.1.60.0090.00317.55
8.1.50.0050.00317.52
8.1.40.0000.00717.39
8.1.30.0030.00617.63
8.1.20.0050.00317.68
8.1.10.0040.00417.44
8.1.00.0080.00017.48
8.0.300.0040.00418.77
8.0.290.0050.00216.63
8.0.280.0030.00318.34
8.0.270.0000.00717.17
8.0.260.0070.00017.27
8.0.250.0030.00316.93
8.0.240.0070.00017.06
8.0.230.0030.00316.91
8.0.220.0070.00017.01
8.0.210.0000.00817.00
8.0.200.0000.00617.00
8.0.190.0030.00616.90
8.0.180.0060.00317.01
8.0.170.0040.00416.86
8.0.160.0000.00816.85
8.0.150.0000.00816.77
8.0.140.0040.00416.83
8.0.130.0050.00313.38
8.0.120.0060.00316.95
8.0.110.0000.00816.90
8.0.100.0040.00416.90
8.0.90.0080.00016.84
8.0.80.0060.01216.83
8.0.70.0000.00716.97
8.0.60.0030.00316.98
8.0.50.0000.00716.98
8.0.30.0150.00817.17
8.0.20.0110.00817.40
8.0.10.0000.00716.86
8.0.00.0060.01416.86
7.4.330.0000.00515.15
7.4.320.0060.00016.44
7.4.300.0000.00716.41
7.4.290.0000.00816.56
7.4.280.0040.00416.49
7.4.270.0000.00716.61
7.4.260.0050.00316.45
7.4.250.0000.00716.61
7.4.240.0050.00216.60
7.4.230.0070.00016.50
7.4.220.0030.01616.57
7.4.210.0060.01116.39
7.4.200.0080.00016.53
7.4.160.0080.00816.66
7.4.150.0140.00417.40
7.4.140.0130.00917.86
7.4.130.0100.00816.50
7.4.120.0110.00916.45
7.4.110.0080.00816.47
7.4.100.0100.00716.41
7.4.90.0150.00416.52
7.4.80.0030.01319.39
7.4.70.0110.00716.64
7.4.60.0150.00316.55
7.4.50.0040.00016.57
7.4.40.0160.00616.60
7.4.30.0070.01016.64
7.4.00.0060.00614.82
7.3.330.0000.00513.32
7.3.320.0000.00513.30
7.3.310.0040.00416.47
7.3.300.0030.00316.24
7.3.290.0040.01116.34
7.3.280.0050.01116.34
7.3.270.0030.01317.40
7.3.260.0150.00916.46
7.3.250.0110.01016.56
7.3.240.0120.01216.51
7.3.230.0040.01316.64
7.3.210.0070.01116.37
7.3.200.0100.01019.39
7.3.190.0030.01716.29
7.3.180.0000.01716.59
7.3.170.0060.01516.45
7.3.160.0150.00316.73
7.2.330.0060.01216.66
7.2.320.0060.01116.68
7.2.310.0070.01116.47
7.2.300.0060.00916.70
7.2.290.0150.00316.32
7.2.00.0040.01419.54
7.1.200.0060.00615.66
7.1.100.0060.00918.35
7.1.70.0040.00417.29
7.1.60.0120.01219.32
7.1.50.0100.01017.02
7.1.00.0030.07722.29
7.0.200.0040.00416.90
7.0.140.0030.07321.91
7.0.100.0200.08020.04
7.0.90.0100.05319.93
7.0.80.0200.07019.98
7.0.70.0070.08020.02
7.0.60.0130.08019.88
7.0.50.0100.07720.27
7.0.40.0070.08320.18
7.0.30.0100.04320.11
7.0.20.0100.08720.13
7.0.10.0130.07020.10
7.0.00.0030.05320.08
5.6.280.0030.07020.88
5.6.250.0070.06320.70
5.6.240.0070.09020.68
5.6.230.0130.07720.55
5.6.220.0100.08020.66
5.6.210.0170.07320.76
5.6.200.0100.06321.07
5.6.190.0000.08021.02
5.6.180.0070.08721.05
5.6.170.0030.04321.06
5.6.160.0130.04021.12
5.6.150.0070.08320.95
5.6.140.0030.08720.96
5.6.130.0030.07721.08
5.6.120.0130.08020.93
5.6.110.0030.07721.09
5.6.100.0000.06321.07
5.6.90.0030.08720.94
5.6.80.0100.07320.41
5.6.70.0130.08020.55
5.6.60.0070.08020.46
5.6.50.0100.05020.41
5.6.40.0030.04720.39
5.6.30.0070.08320.39
5.6.20.0070.03720.35
5.6.10.0200.06720.41
5.6.00.0130.04020.30
5.5.380.0030.08020.55
5.5.370.0170.07320.52
5.5.360.0100.08320.34
5.5.350.0030.07720.34
5.5.340.0070.05020.90
5.5.330.0100.07720.75
5.5.320.0200.06320.77
5.5.310.0000.05020.83
5.5.300.0070.08020.91
5.5.290.0000.08720.86
5.5.280.0130.07720.87
5.5.270.0070.08320.87
5.5.260.0070.07020.79
5.5.250.0030.08020.64
5.5.240.0100.07020.18
5.5.230.0070.04720.23
5.5.220.0030.08020.17
5.5.210.0170.06720.29
5.5.200.0030.04720.24
5.5.190.0000.05320.23
5.5.180.0200.06719.99
5.5.160.0100.07320.18
5.5.150.0100.07320.11
5.5.140.0130.05020.26
5.5.130.0170.06720.23
5.5.120.0100.07720.11
5.5.110.0030.08320.12
5.5.100.0100.07720.16
5.5.90.0130.04020.06
5.5.80.0100.05020.06
5.5.70.0070.07020.04
5.5.60.0030.06720.05
5.5.50.0100.06320.06
5.5.40.0070.08020.04
5.5.30.0100.07320.05
5.5.20.0130.06020.15
5.5.10.0100.04020.06
5.5.00.0000.04720.13
5.4.450.0070.05319.46
5.4.440.0000.05319.54
5.4.430.0000.05019.50
5.4.420.0000.08719.50
5.4.410.0030.07719.34
5.4.400.0100.06319.16
5.4.390.0130.06019.08
5.4.380.0070.05719.05
5.4.370.0030.08319.23
5.4.360.0070.07018.88
5.4.350.0070.05719.13
5.4.340.0070.05319.05
5.4.320.0100.06319.21
5.4.310.0130.07318.89
5.4.300.0100.06318.84
5.4.290.0100.04719.12
5.4.280.0070.06319.18
5.4.270.0070.05719.12
5.4.260.0030.07018.82
5.4.250.0100.07019.16
5.4.240.0170.06318.94
5.4.230.0100.09319.05
5.4.220.0070.04719.03
5.4.210.0100.07319.02
5.4.200.0030.06018.90
5.4.190.0030.06719.04
5.4.180.0100.04018.84
5.4.170.0070.07718.94
5.4.160.0100.06719.21
5.4.150.0130.07019.00
5.4.140.0130.06016.37
5.4.130.0100.07316.40
5.4.120.0070.06316.39
5.4.110.0200.04316.56
5.4.100.0070.08016.40
5.4.90.0130.03316.38
5.4.80.0100.05716.38
5.4.70.0130.06716.38
5.4.60.0030.06016.37
5.4.50.0100.06716.31
5.4.40.0070.05316.53
5.4.30.0100.04716.39
5.4.20.0070.06716.46
5.4.10.0070.07016.44
5.4.00.0030.07315.77
5.3.290.0000.08314.79
5.3.280.0100.07014.63
5.3.270.0130.07014.68
5.3.260.0070.07314.68
5.3.250.0200.06314.70
5.3.240.0170.05714.57
5.3.230.0030.04714.72
5.3.220.0030.07714.63
5.3.210.0170.06314.63
5.3.200.0030.07014.63
5.3.190.0100.07014.54
5.3.180.0030.06714.59
5.3.170.0030.07014.54
5.3.160.0070.07014.49
5.3.150.0100.06314.54
5.3.140.0030.04314.67
5.3.130.0170.06714.61
5.3.120.0070.04314.53
5.3.110.0100.07014.52
5.3.100.0130.07014.02
5.3.90.0070.07314.05
5.3.80.0030.08314.08
5.3.70.0030.05314.04
5.3.60.0200.03014.00
5.3.50.0100.04013.98
5.3.40.0070.06314.05
5.3.30.0070.05014.05
5.3.20.0030.07013.71
5.3.10.0070.05013.66
5.3.00.0100.06713.65
5.2.170.0030.05712.31
5.2.160.0200.04712.31
5.2.150.0070.05012.31
5.2.140.0100.06012.31
5.2.130.0100.05312.31
5.2.120.0070.04312.31
5.2.110.0070.04712.31
5.2.100.0030.03312.31
5.2.90.0030.06012.31
5.2.80.0070.05712.31
5.2.70.0100.06012.31
5.2.60.0100.05012.31
5.2.50.0030.03312.31
5.2.40.0000.03312.31
5.2.30.0070.03012.31
5.2.20.0030.04312.31
5.2.10.0030.02712.31
5.2.00.0100.02312.31
5.1.60.0030.02312.31
5.1.50.0000.02712.31
5.1.40.0030.02712.31
5.1.30.0100.02312.31
5.1.20.0000.02712.31
5.1.10.0070.02712.31
5.1.00.0000.02712.31
5.0.50.0000.02312.31
5.0.40.0070.01312.31
5.0.30.0100.02712.31
5.0.20.0030.02012.31
5.0.10.0030.01712.31
5.0.00.0000.02712.31
4.4.90.0000.03712.31
4.4.80.0030.02712.31
4.4.70.0000.02012.31
4.4.60.0000.01712.31
4.4.50.0030.01312.31
4.4.40.0030.02712.31
4.4.30.0070.01012.31
4.4.20.0000.01712.31
4.4.10.0030.01312.31
4.4.00.0030.02012.31
4.3.110.0000.01712.31
4.3.100.0030.01312.31
4.3.90.0000.01712.31
4.3.80.0000.02712.31
4.3.70.0030.01312.31
4.3.60.0000.01312.31
4.3.50.0000.01712.31
4.3.40.0030.01712.31
4.3.30.0030.01012.31
4.3.20.0000.01312.31
4.3.10.0000.01312.31
4.3.00.0000.01312.31

preferences:
47.32 ms | 401 KiB | 5 Q