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() { echo func_get_arg(1); } } 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.0100.01016.61
8.3.50.0250.00322.91
8.3.40.0070.00718.89
8.3.30.0070.00719.09
8.3.20.0050.00220.38
8.3.10.0080.00021.89
8.3.00.0080.00019.38
8.2.180.0150.00716.75
8.2.170.0090.00622.96
8.2.160.0070.00722.31
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0050.00321.02
8.2.110.0120.00820.57
8.2.100.0090.00317.84
8.2.90.0040.00419.05
8.2.80.0050.00317.97
8.2.70.0040.00417.50
8.2.60.0040.00417.93
8.2.50.0000.00818.07
8.2.40.0080.00018.17
8.2.30.0030.00617.98
8.2.20.0000.00817.63
8.2.10.0000.00717.94
8.2.00.0050.00317.80
8.1.280.0070.00725.92
8.1.270.0060.00323.84
8.1.260.0070.00026.35
8.1.250.0050.00228.09
8.1.240.0040.00423.96
8.1.230.0080.00419.15
8.1.220.0040.00417.77
8.1.210.0080.00018.77
8.1.200.0090.00317.23
8.1.190.0030.00517.10
8.1.180.0030.00618.10
8.1.170.0060.00318.50
8.1.160.0020.00521.93
8.1.150.0050.00218.82
8.1.140.0040.00417.28
8.1.130.0000.00717.78
8.1.120.0000.00717.30
8.1.110.0080.00017.34
8.1.100.0000.00817.31
8.1.90.0030.00317.30
8.1.80.0030.00517.36
8.1.70.0030.00517.29
8.1.60.0030.00617.49
8.1.50.0060.00317.38
8.1.40.0000.00817.47
8.1.30.0000.00817.61
8.1.20.0000.00717.52
8.1.10.0000.00717.42
8.1.00.0040.00417.38
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0070.00018.46
8.0.270.0080.00017.25
8.0.260.0030.00317.27
8.0.250.0030.00316.91
8.0.240.0030.00317.02
8.0.230.0030.00317.00
8.0.220.0070.00016.97
8.0.210.0040.00416.92
8.0.200.0030.00317.10
8.0.190.0030.00517.01
8.0.180.0070.00017.05
8.0.170.0060.00317.01
8.0.160.0040.00416.84
8.0.150.0040.00416.91
8.0.140.0000.01116.81
8.0.130.0050.00013.45
8.0.120.0040.00416.93
8.0.110.0030.00416.99
8.0.100.0050.00316.85
8.0.90.0000.00716.84
8.0.80.0130.00316.90
8.0.70.0030.00316.79
8.0.60.0000.00717.01
8.0.50.0000.00716.95
8.0.30.0130.00817.11
8.0.20.0150.01117.40
8.0.10.0080.00016.90
8.0.00.0100.00916.86
7.4.330.0000.00515.08
7.4.320.0030.00316.50
7.4.300.0030.00316.59
7.4.290.0070.00016.45
7.4.280.0040.00416.61
7.4.270.0030.00316.64
7.4.260.0000.00716.54
7.4.250.0030.00316.46
7.4.240.0040.00316.52
7.4.230.0070.00016.54
7.4.220.0130.01016.61
7.4.210.0030.01216.70
7.4.200.0040.00416.61
7.4.160.0150.00416.47
7.4.150.0090.00917.40
7.4.140.0100.00817.86
7.4.130.0100.00816.56
7.4.120.0100.00716.45
7.4.110.0120.00616.63
7.4.100.0100.01016.47
7.4.90.0140.00316.41
7.4.80.0160.00319.39
7.4.70.0060.01316.46
7.4.60.0080.00816.51
7.4.50.0040.00416.59
7.4.40.0150.00316.70
7.4.30.0100.00616.46
7.4.00.0140.00315.08
7.3.330.0000.00513.25
7.3.320.0020.00213.16
7.3.310.0060.00016.15
7.3.300.0000.00816.25
7.3.290.0060.01116.30
7.3.280.0080.00816.27
7.3.270.0100.00717.40
7.3.260.0110.00916.29
7.3.250.0120.00716.37
7.3.240.0060.00916.30
7.3.230.0060.01916.39
7.3.210.0070.01116.51
7.3.200.0050.01919.39
7.3.190.0100.00716.32
7.3.180.0090.00616.40
7.3.170.0060.01016.52
7.3.160.0060.01016.29
7.3.10.0040.01416.48
7.3.00.0090.00316.41
7.2.330.0060.01216.64
7.2.320.0070.01016.82
7.2.310.0100.01016.45
7.2.300.0120.00316.79
7.2.290.0080.00816.45
7.2.130.0030.00916.73
7.2.120.0000.01217.03
7.2.110.0040.00717.10
7.2.100.0000.01116.71
7.2.90.0080.00316.82
7.2.80.0060.00317.05
7.2.70.0120.00416.87
7.2.60.0090.00616.97
7.2.50.0160.00316.83
7.2.40.0000.01216.61
7.2.30.0050.00516.89
7.2.20.0050.00516.92
7.2.10.0030.00916.68
7.2.00.0030.00818.24
7.1.250.0070.00315.27
7.1.100.0000.00817.54
7.1.70.0080.00317.15
7.1.60.0110.01419.40
7.1.50.0110.01116.57
7.1.00.0100.06722.35
7.0.200.0030.00316.77
7.0.140.0070.07022.21
7.0.60.0100.06719.95
7.0.50.0100.04717.89
7.0.40.0000.06720.24
7.0.30.0370.07320.20
7.0.20.0230.07720.22
7.0.10.0070.08720.19
7.0.00.0230.06720.20
5.6.280.0070.07021.00
5.6.210.0070.07320.70
5.6.200.0130.03018.29
5.6.190.0100.07720.61
5.6.180.3670.03320.47
5.6.170.0130.08720.45
5.6.160.0100.08020.39
5.6.150.0070.03718.19
5.6.140.0170.05718.15
5.6.130.0070.07318.18
5.6.120.0070.07321.00
5.6.110.0170.07720.98
5.6.100.0100.08321.04
5.6.90.0070.08320.84
5.6.80.0030.04020.45
5.6.70.0070.08020.48
5.5.350.0370.03020.36
5.5.340.0100.04017.95
5.5.330.0070.04720.37
5.5.320.0300.07020.20
5.5.310.0170.06320.35
5.5.300.0130.05717.98
5.5.290.0070.08317.95
5.5.280.0200.05720.89
5.5.270.0000.06320.78
5.5.260.0070.08320.97
5.5.250.0030.04020.72
5.5.240.0300.07320.13
5.4.450.0470.06019.34
5.4.440.1000.06019.45
5.4.430.0200.05019.38
5.4.420.1000.04719.20
5.4.410.1230.05319.48
5.4.400.0770.05319.34
5.4.390.1170.07019.23
5.4.380.0900.04718.52
5.4.370.1100.04718.64
5.4.360.0970.05318.62
5.4.350.1230.06718.61
5.4.340.0970.06018.70
5.4.320.0060.04312.51
5.4.310.0050.04412.50
5.4.300.0080.03512.50
5.4.290.0060.03812.50
5.4.280.0100.03112.40
5.4.270.0040.04312.39
5.4.260.0060.04112.40
5.4.250.0030.05112.40
5.4.240.0060.03512.40
5.4.230.0050.03912.39
5.4.220.0070.03412.39
5.4.210.0080.03212.39
5.4.200.0060.03812.39
5.4.190.0070.04112.38
5.4.180.0060.03512.39
5.4.170.0060.03612.40
5.4.160.0040.03812.39
5.4.150.0050.04312.39
5.4.140.0040.04212.07
5.4.130.0050.03612.06
5.4.120.0060.03812.02
5.4.110.0080.03412.02
5.4.100.0050.03812.02
5.4.90.0060.03812.01
5.4.80.0070.03612.01
5.4.70.0080.03312.01
5.4.60.0060.03612.01
5.4.50.0070.03312.01
5.4.40.0060.04312.00
5.4.30.0050.03812.00
5.4.20.0050.04012.00
5.4.10.0060.03912.00
5.4.00.0110.03511.49
5.3.290.0080.04112.80
5.3.280.0060.04112.71
5.3.270.0040.04112.72
5.3.260.0050.03812.72
5.3.250.0120.04112.72
5.3.240.0060.03912.72
5.3.230.0130.03312.71
5.3.220.0060.03912.68
5.3.210.0040.03912.68
5.3.200.0040.03812.68
5.3.190.0090.03812.68
5.3.180.0080.03312.67
5.3.170.0050.04212.67
5.3.160.0070.04112.67
5.3.150.0100.03412.67
5.3.140.0090.04112.66
5.3.130.0060.04012.66
5.3.120.0080.03712.66
5.3.110.0030.04112.66
5.3.100.0090.04212.12
5.3.90.0050.04212.10
5.3.80.0060.03512.09
5.3.70.0040.03712.09
5.3.60.0060.03812.08
5.3.50.0080.03312.04
5.3.40.0070.03512.03
5.3.30.0030.03712.00
5.3.20.0060.03711.77
5.3.10.0050.03411.73
5.3.00.0070.03411.73
5.2.170.0030.0309.18
5.2.160.0060.0319.18
5.2.150.0060.0379.18
5.2.140.0070.0339.18
5.2.130.0040.0299.14
5.2.120.0010.0329.14
5.2.110.0060.0289.14
5.2.100.0030.0309.14
5.2.90.0060.0279.14
5.2.80.0010.0349.14
5.2.70.0040.0309.14
5.2.60.0030.0309.09
5.2.50.0050.0299.06
5.2.40.0050.0289.03
5.2.30.0040.0339.02
5.2.20.0060.0279.00
5.2.10.0020.0308.92
5.2.00.0070.0278.79
5.1.60.0080.0278.07
5.1.50.0010.0278.06
5.1.40.0050.0238.05
5.1.30.0080.0288.40
5.1.20.0050.0268.41
5.1.10.0050.0288.14
5.1.00.0080.0268.14
5.0.50.0020.0216.63
5.0.40.0030.0226.48
5.0.30.0030.0306.29
5.0.20.0030.0196.26
5.0.10.0040.0206.24
5.0.00.0030.0326.23
4.4.90.0010.0174.78
4.4.80.0030.0144.76
4.4.70.0030.0244.75
4.4.60.0030.0154.76
4.4.50.0020.0164.77
4.4.40.0030.0264.71
4.4.30.0030.0154.76
4.4.20.0030.0164.84
4.4.10.0010.0174.85
4.4.00.0060.0254.75
4.3.110.0050.0184.67
4.3.100.0030.0184.67
4.3.90.0060.0144.64
4.3.80.0010.0274.58
4.3.70.0010.0164.63
4.3.60.0050.0204.63
4.3.50.0030.0214.63
4.3.40.0050.0264.54
4.3.30.0030.0213.29
4.3.20.0020.0153.25
4.3.10.0030.0153.22
4.3.00.0030.01715.91

preferences:
56.55 ms | 401 KiB | 5 Q