3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Log; interface TestInterface { public function log(); } use Log\TestInterface; class Handler implements TestInterface { public function log() { //some logic goes here } } use Log\Handler; class Log { public function __construct(TestInterface $handler) { $handler->log('test'); } } $obj = new Log(new Handler());

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.0120.00316.38
8.3.50.0170.00522.94
8.3.40.0140.00318.75
8.3.30.0100.00319.01
8.3.20.0040.00420.33
8.3.10.0070.00021.91
8.3.00.0050.00319.13
8.2.180.0060.01518.14
8.2.170.0070.00718.81
8.2.160.0130.00322.96
8.2.150.0000.00724.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0080.00020.87
8.2.110.0030.00620.36
8.2.100.0060.00617.91
8.2.90.0000.00819.22
8.2.80.0000.00917.97
8.2.70.0000.00817.47
8.2.60.0100.00017.93
8.2.50.0040.00418.07
8.2.40.0040.00418.22
8.2.30.0000.00717.99
8.2.20.0040.00417.57
8.2.10.0030.00317.98
8.2.00.0040.00417.59
8.1.280.0120.00625.92
8.1.270.0060.00323.92
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00423.98
8.1.230.0070.00417.52
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0070.00417.35
8.1.190.0030.00517.23
8.1.180.0060.00318.10
8.1.170.0060.00318.52
8.1.160.0040.00421.95
8.1.150.0040.00418.80
8.1.140.0040.00417.32
8.1.130.0040.00417.86
8.1.120.0050.00217.50
8.1.110.0000.00717.34
8.1.100.0070.00017.41
8.1.90.0000.00717.36
8.1.80.0040.00417.42
8.1.70.0040.00417.43
8.1.60.0040.00417.52
8.1.50.0040.00417.38
8.1.40.0000.00817.43
8.1.30.0000.00817.70
8.1.20.0070.00017.55
8.1.10.0000.00817.61
8.1.00.0030.00617.46
8.0.300.0040.00418.77
8.0.290.0030.00516.75
8.0.280.0000.00818.35
8.0.270.0040.00417.20
8.0.260.0060.00017.25
8.0.250.0040.00416.89
8.0.240.0000.00817.00
8.0.230.0030.00316.89
8.0.220.0000.00716.84
8.0.210.0000.00716.82
8.0.200.0040.00416.88
8.0.190.0030.00516.99
8.0.180.0040.00417.01
8.0.170.0080.00016.96
8.0.160.0000.00716.87
8.0.150.0040.00416.95
8.0.140.0110.00016.81
8.0.130.0030.00313.27
8.0.120.0060.00316.91
8.0.110.0040.00416.98
8.0.100.0040.00416.78
8.0.90.0040.00416.93
8.0.80.0030.01616.95
8.0.70.0070.00016.91
8.0.60.0050.00217.00
8.0.50.0000.00717.00
8.0.30.0110.00716.96
8.0.20.0100.01317.40
8.0.10.0040.00416.94
8.0.00.0130.00416.81
7.4.330.0000.00515.00
7.4.320.0060.00016.51
7.4.300.0030.00316.49
7.4.290.0070.00016.61
7.4.280.0040.00416.55
7.4.270.0000.00716.54
7.4.260.0030.00316.39
7.4.250.0040.00416.42
7.4.240.0030.00516.57
7.4.230.0000.00716.59
7.4.220.0150.00016.47
7.4.210.0060.00916.63
7.4.200.0000.00716.64
7.4.160.0030.01716.46
7.4.150.0150.00817.40
7.4.140.0060.01317.86
7.4.130.0060.01316.51
7.4.120.0060.00916.45
7.4.110.0080.00916.48
7.4.100.0100.00716.64
7.4.90.0040.01116.48
7.4.80.0100.01319.39
7.4.70.0060.01016.47
7.4.60.0120.00616.43
7.4.50.0050.00316.59
7.4.40.0140.00316.53
7.4.30.0090.00616.37
7.4.00.0000.01214.97
7.3.330.0050.00013.09
7.3.320.0000.00513.26
7.3.310.0030.00316.21
7.3.300.0070.00016.15
7.3.290.0070.00716.20
7.3.280.0090.00916.21
7.3.270.0080.01117.40
7.3.260.0190.00616.25
7.3.250.0120.00816.41
7.3.240.0140.00316.46
7.3.230.0150.00816.39
7.3.210.0070.01116.34
7.3.200.0120.00619.39
7.3.190.0070.01016.48
7.3.180.0100.00516.50
7.3.170.0060.01016.47
7.3.160.0050.01016.41
7.2.330.0070.01116.48
7.2.320.0130.00316.51
7.2.310.0050.01116.57
7.2.300.0140.00416.58
7.2.290.0060.00916.79
7.2.60.0040.00817.04
7.2.50.0090.00417.06
7.1.200.0030.00615.76
7.1.100.0030.00618.11
7.1.70.0000.00817.07
7.1.60.0030.02119.40
7.1.50.0070.01816.93
7.1.00.0030.07722.42
7.0.200.0040.00416.86
7.0.140.0030.07321.97
7.0.60.0130.08019.92
7.0.50.0070.03717.87
7.0.40.0070.05720.09
7.0.30.0430.07320.21
7.0.20.0270.05320.15
7.0.10.0100.08020.09
7.0.00.0100.06020.25
5.6.280.0000.07721.07
5.6.210.0170.07320.77
5.6.200.0070.08318.14
5.6.190.0030.04720.64
5.6.180.0330.07320.48
5.6.170.0100.04720.51
5.6.160.0070.05320.69
5.6.150.0100.08018.21
5.6.140.0100.08018.11
5.6.130.0030.05718.27
5.6.120.0170.08021.03
5.6.110.0100.06321.12
5.6.100.0030.04021.00
5.6.90.0100.07321.01
5.6.80.0030.04020.52
5.5.350.0030.04720.50
5.5.340.0100.03717.91
5.5.330.0070.04020.13
5.5.320.0330.08320.30
5.5.310.0400.07720.38
5.5.300.0070.08317.97
5.5.290.0070.04717.95
5.5.280.0200.07020.68
5.5.270.0100.08320.96
5.5.260.0030.04320.77
5.5.250.0170.06020.72
5.5.240.0270.03720.19
5.4.450.0230.04019.55
5.4.440.0330.03719.49
5.4.430.0370.05019.17
5.4.420.0230.04019.27
5.4.410.0170.04719.54
5.4.400.0230.03719.17
5.4.390.0670.04319.20
5.4.380.0930.05718.73
5.4.370.0900.05318.53
5.4.360.0770.05018.72
5.4.350.0870.05318.59
5.4.340.1070.04718.73
5.4.320.0070.03712.51
5.4.310.0090.03712.50
5.4.300.0050.03712.50
5.4.290.0060.03712.50
5.4.280.0070.03912.40
5.4.270.0020.03912.39
5.4.260.0050.03812.39
5.4.250.0040.03912.40
5.4.240.0080.03712.39
5.4.230.0060.03712.39
5.4.220.0040.04212.39
5.4.210.0080.04312.39
5.4.200.0060.04412.39
5.4.190.0060.04312.39
5.4.180.0080.04112.39
5.4.170.0070.03712.40
5.4.160.0090.03812.39
5.4.150.0060.03612.39
5.4.140.0070.03612.07
5.4.130.0050.03512.06
5.4.120.0080.03812.02
5.4.110.0070.03512.01
5.4.100.0060.04012.02
5.4.90.0070.03712.02
5.4.80.0100.03712.02
5.4.70.0080.03812.02
5.4.60.0070.03512.01
5.4.50.0100.04212.01
5.4.40.0070.04212.00
5.4.30.0070.03512.00
5.4.20.0090.03212.00
5.4.10.0080.03712.00
5.4.00.0100.03111.48
5.3.290.0040.04712.80
5.3.280.0060.04112.71
5.3.270.0070.03712.73
5.3.260.0090.04412.72
5.3.250.0060.04512.72
5.3.240.0090.03912.72
5.3.230.0040.03912.71
5.3.220.0090.03412.68
5.3.210.0040.04212.68
5.3.200.0060.04312.68
5.3.190.0080.03912.68
5.3.180.0060.03612.67
5.3.170.0060.03612.67
5.3.160.0050.03812.67
5.3.150.0020.04012.67
5.3.140.0070.03712.66
5.3.130.0080.05112.66
5.3.120.0050.04012.66
5.3.110.0070.04612.66
5.3.100.0080.03512.12
5.3.90.0050.03612.11
5.3.80.0070.03712.10
5.3.70.0060.03812.10
5.3.60.0090.03412.08
5.3.50.0100.03512.03
5.3.40.0040.03712.03
5.3.30.0080.03411.98
5.3.20.0060.03511.77
5.3.10.0080.03411.73
5.3.00.0040.03811.73
5.2.170.0050.0309.18
5.2.160.0040.0309.18
5.2.150.0050.0309.18
5.2.140.0060.0289.18
5.2.130.0060.0289.14
5.2.120.0050.0289.14
5.2.110.0060.0289.14
5.2.100.0060.0329.14
5.2.90.0050.0289.14
5.2.80.0050.0299.14
5.2.70.0060.0289.14
5.2.60.0060.0279.09
5.2.50.0090.0259.06
5.2.40.0040.0299.04
5.2.30.0070.0309.01
5.2.20.0030.0329.00
5.2.10.0050.0268.92
5.2.00.0050.0278.79
5.1.60.0030.0258.07
5.1.50.0040.0248.06
5.1.40.0050.0298.05
5.1.30.0060.0298.40
5.1.20.0080.0268.42
5.1.10.0050.0288.14
5.1.00.0050.0248.14
5.0.50.0040.0196.63
5.0.40.0040.0206.48
5.0.30.0030.0316.29
5.0.20.0060.0186.26
5.0.10.0020.0266.24
5.0.00.0040.0376.23
4.4.90.0030.0194.78
4.4.80.0050.0154.75
4.4.70.0040.0174.75
4.4.60.0050.0174.75
4.4.50.0020.0164.77
4.4.40.0030.0254.71
4.4.30.0030.0174.76
4.4.20.0030.0224.85
4.4.10.0050.0194.84
4.4.00.0030.0254.76
4.3.110.0010.0184.67
4.3.100.0030.0154.66
4.3.90.0030.0144.63
4.3.80.0040.0254.58
4.3.70.0040.0134.63
4.3.60.0020.0154.63
4.3.50.0030.0154.63
4.3.40.0060.0204.54
4.3.30.0020.0223.28
4.3.20.0020.0153.26
4.3.10.0000.0173.22
4.3.00.0000.02015.91

preferences:
50.84 ms | 401 KiB | 5 Q