3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ThingManager { public function __construct(ThingFactory $thingFactory) { $this->thingFactory = $thingFactory; } public function doSomething() { return new $this->thingFactory->create(); } } class ThingFactory { public function create() { return new Thing; } } class Thing {}

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.0040.01118.31
8.3.50.0020.01621.98
8.3.40.0100.01018.59
8.3.30.0000.01420.26
8.3.20.0040.00418.52
8.3.10.0030.00520.92
8.3.00.0090.00019.44
8.2.180.0070.01116.32
8.2.170.0090.00622.96
8.2.160.0100.00320.52
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0000.00726.16
8.2.120.0000.00821.04
8.2.110.0030.00622.27
8.2.100.0090.00317.78
8.2.90.0000.00818.90
8.2.80.0040.00419.43
8.2.70.0080.00017.38
8.2.60.0000.00817.90
8.2.50.0040.00418.07
8.2.40.0040.00419.88
8.2.30.0040.00419.45
8.2.20.0050.00317.60
8.2.10.0080.00017.52
8.2.00.0050.00317.46
8.1.280.0190.00025.92
8.1.270.0040.00423.99
8.1.260.0070.00726.35
8.1.250.0050.00328.09
8.1.240.0090.00420.43
8.1.230.0090.00320.96
8.1.220.0040.00418.77
8.1.210.0040.00418.77
8.1.200.0090.00317.11
8.1.190.0000.00817.41
8.1.180.0030.00618.10
8.1.170.0050.00318.59
8.1.160.0030.00518.68
8.1.150.0000.00718.52
8.1.140.0000.00717.34
8.1.130.0000.00717.81
8.1.120.0080.00017.33
8.1.110.0030.00517.35
8.1.100.0030.00317.23
8.1.90.0000.00717.30
8.1.80.0040.00417.29
8.1.70.0000.00717.23
8.1.60.0060.00317.46
8.1.50.0060.00317.26
8.1.40.0060.00317.41
8.1.30.0060.00317.52
8.1.20.0030.00517.50
8.1.10.0090.00017.39
8.1.00.0040.00817.30
8.0.300.0040.00419.72
8.0.290.0000.00717.04
8.0.280.0030.00318.32
8.0.270.0030.00317.13
8.0.260.0090.00016.66
8.0.250.0000.00716.80
8.0.240.0070.00316.85
8.0.230.0070.00016.80
8.0.220.0030.00316.73
8.0.210.0070.00016.77
8.0.200.0000.00716.70
8.0.190.0030.00316.84
8.0.180.0030.00516.84
8.0.170.0040.00416.75
8.0.160.0040.00416.67
8.0.150.0030.00316.74
8.0.140.0040.00416.71
8.0.130.0030.00313.18
8.0.120.0080.00016.65
8.0.110.0040.00416.83
8.0.100.0000.00716.84
8.0.90.0000.00716.64
8.0.80.0060.00916.68
8.0.70.0000.00716.79
8.0.60.0040.00416.81
8.0.50.0000.00816.88
8.0.30.0090.00917.04
8.0.20.0170.00617.40
8.0.10.0000.00716.70
8.0.00.0080.01116.55
7.4.330.0050.00016.69
7.4.320.0060.00016.38
7.4.300.0060.00016.36
7.4.290.0030.00316.52
7.4.280.0000.00616.35
7.4.270.0000.00716.41
7.4.260.0000.00613.10
7.4.250.0040.00416.32
7.4.240.0040.00416.45
7.4.230.0030.00316.36
7.4.220.0070.00816.36
7.4.210.0080.00716.45
7.4.200.0070.00016.47
7.4.190.0000.00716.52
7.4.160.0080.00816.29
7.4.150.0030.01417.40
7.4.140.0110.00817.86
7.4.130.0170.00316.34
7.4.120.0050.01216.39
7.4.110.0070.01416.23
7.4.100.0120.01116.22
7.4.90.0090.00916.44
7.4.80.0070.01119.39
7.4.70.0150.00616.38
7.4.60.0070.01016.40
7.4.50.0060.00316.38
7.4.40.0080.00822.77
7.4.30.0110.00816.43
7.4.00.0120.00314.89
7.3.330.0020.00213.04
7.3.320.0000.00613.04
7.3.310.0030.00316.14
7.3.300.0030.00316.15
7.3.290.0050.00816.22
7.3.280.0130.00516.16
7.3.270.0090.00817.40
7.3.260.0120.00918.24
7.3.250.0050.01516.15
7.3.240.0030.01216.44
7.3.230.0100.00716.39
7.3.210.0060.01116.36
7.3.200.0030.01919.39
7.3.190.0110.00616.24
7.3.180.0060.00916.32
7.3.170.0060.01116.27
7.3.160.0100.00716.36
7.3.120.0060.00914.76
7.3.10.0090.00616.37
7.3.00.0110.00416.21
7.2.330.0060.01116.54
7.2.320.0070.01016.48
7.2.310.0080.01516.50
7.2.300.0200.00316.47
7.2.290.0110.01216.27
7.2.130.0030.00716.53
7.2.120.0110.00316.54
7.2.110.0030.01416.63
7.2.100.0040.00716.74
7.2.90.0070.01116.69
7.2.80.0060.01016.90
7.2.70.0070.00816.59
7.2.60.0080.00516.66
7.2.50.0100.00316.79
7.2.40.0120.00316.66
7.2.30.0030.00716.71
7.2.20.0000.01216.71
7.2.10.0110.00416.66
7.2.00.0050.01118.10
7.1.250.0090.00315.61
7.1.200.0060.00615.61
7.1.100.0070.00317.97
7.1.70.0100.00317.04
7.1.60.0110.00317.24
7.1.50.0000.01216.70
7.1.40.0030.01016.60
7.1.30.0070.01016.40
7.1.20.0110.00716.44
7.1.10.0030.00916.50
7.1.00.0000.00816.61
7.0.200.0030.00916.37
7.0.190.0090.00016.52
7.0.180.0030.00716.27
7.0.170.0080.00316.27
7.0.160.0030.00716.00
7.0.150.0000.01116.25
7.0.140.0000.00716.25
7.0.130.0000.00816.38
7.0.120.0000.00816.31
7.0.110.0100.00716.31
7.0.100.0040.00416.25
7.0.90.0050.00216.43
7.0.80.0000.00716.50
7.0.70.0000.00916.13
7.0.60.0030.01216.04
7.0.50.0000.00716.17
7.0.40.0040.00415.46
7.0.30.0070.00715.46
7.0.20.0040.00815.46
7.0.10.0060.00615.46
7.0.00.0040.00715.46
5.6.300.0060.04221.00
5.6.290.0000.04820.83
5.6.280.0100.03521.08
5.6.270.0070.03920.89
5.6.260.0120.03120.88
5.6.250.0030.04020.86
5.6.240.0000.04820.80
5.6.230.0070.03720.87
5.6.220.0030.04721.00
5.6.210.0070.05120.62
5.6.200.0030.04520.78
5.6.190.0070.05021.06
5.6.180.0070.04221.05
5.6.170.0060.03820.83
5.6.160.0170.02720.87
5.6.150.0070.05821.00
5.6.140.0060.03920.83
5.6.130.0070.06920.74
5.6.120.0140.04820.92
5.6.110.0070.04020.81
5.6.100.0000.04721.02
5.6.90.0000.04420.92
5.6.80.0030.06920.34
5.6.70.0030.08220.21
5.6.60.0030.08220.20
5.6.50.0000.04720.13
5.6.40.0000.04220.20
5.6.30.0030.04020.22
5.6.20.0070.03620.32
5.6.10.0000.04520.20
5.6.00.0000.05620.27
5.5.380.0000.04117.56
5.5.370.0030.03917.53
5.5.360.0000.07817.57
5.5.350.0070.04117.57
5.5.340.0000.04417.86
5.5.330.0000.07318.10
5.5.320.0030.04518.09
5.5.310.0000.04318.09
5.5.300.0000.05418.03
5.5.290.0030.04418.09
5.5.280.0030.04018.06
5.5.270.0100.06818.14
5.5.260.0060.04218.07
5.5.250.0030.04417.87
5.5.240.0030.07817.47
5.5.230.0100.05017.46
5.5.220.0000.04117.41
5.5.210.0070.03717.56
5.5.200.0000.04117.44
5.5.190.0070.03617.05
5.5.180.0030.03917.41
5.5.160.0070.03717.35
5.5.150.0000.04117.43
5.5.140.0000.05917.40
5.5.130.0030.06517.35
5.5.120.0160.06617.44
5.5.110.0030.05817.41
5.5.100.0030.04317.35
5.5.90.0030.03817.28
5.5.80.0130.02817.29
5.5.70.0030.03817.36
5.5.60.0000.04017.37
5.5.50.0030.04117.33
5.5.40.0030.04117.33
5.5.30.0060.03517.24
5.5.20.0000.08417.10
5.5.10.0070.04617.33
5.5.00.0100.03217.26
5.4.450.0030.04219.41
5.4.440.0030.06119.46
5.4.430.0030.05019.36
5.4.420.0030.04019.30
5.4.410.0000.04119.26
5.4.400.0000.08019.17
5.4.390.0030.08319.23
5.4.380.0070.08118.89
5.4.370.0030.03918.95
5.4.360.0030.03818.92
5.4.350.0060.03918.98
5.4.340.0100.04519.11
5.4.320.0000.04218.89
5.4.310.0000.04219.21
5.4.300.0030.05919.05
5.4.290.0160.06919.07
5.4.280.0030.07618.98
5.4.270.0100.08018.98
5.4.260.0200.03019.20
5.4.250.0070.03619.08
5.4.240.0030.03719.07
5.4.230.0070.04818.90
5.4.220.0060.04818.97
5.4.210.0030.03718.89
5.4.200.0030.03719.05
5.4.190.0000.05218.98
5.4.180.0030.04819.08
5.4.170.0000.04018.91
5.4.160.0000.04519.19
5.4.150.0000.04918.88
5.4.140.0030.03716.51
5.4.130.0000.04116.72
5.4.120.0070.04916.50
5.4.110.0000.05016.54
5.4.100.0070.03116.71
5.4.90.0000.04016.64
5.4.80.0060.03216.78
5.4.70.0030.04216.68
5.4.60.0030.03416.61
5.4.50.0100.06116.67
5.4.40.0030.07616.77
5.4.30.0000.03816.39
5.4.20.0060.03216.45
5.4.10.0060.03216.60
5.4.00.0030.04216.04
5.3.290.0170.02815.46
5.3.280.0030.03615.46
5.3.270.0000.04015.46
5.3.260.0030.03715.46
5.3.250.0030.04015.46
5.3.240.0030.04015.46
5.3.230.0030.03615.46
5.3.220.0000.06315.46
5.3.210.0060.03815.46
5.3.200.0100.03015.46
5.3.190.0140.03715.46
5.3.180.0000.03915.46
5.3.170.0000.04115.46
5.3.160.0030.04015.46
5.3.150.0030.03715.46
5.3.140.0070.05115.46
5.3.130.0070.04015.46
5.3.120.0030.03715.46
5.3.110.0030.03715.46
5.3.100.0060.03415.46
5.3.90.0030.03515.46
5.3.80.0040.03615.46
5.3.70.0000.03715.46
5.3.60.0000.04815.46
5.3.50.0070.07915.46
5.3.40.0000.03715.46
5.3.30.0030.04915.46
5.3.20.0030.03315.46
5.3.10.0000.03915.46
5.3.00.0070.03615.46
5.2.170.0030.06015.46
5.2.160.0070.03715.46
5.2.150.0000.07015.46
5.2.140.0070.03315.46
5.2.130.0030.02815.46
5.2.120.0030.02715.46
5.2.110.0030.02715.46
5.2.100.0000.03115.46
5.2.90.0030.02715.46
5.2.80.0040.02915.46
5.2.70.0030.04015.46
5.2.60.0000.03115.46
5.2.50.0000.03615.46
5.2.40.0000.03115.46
5.2.30.0070.02715.46
5.2.20.0030.03015.46
5.2.10.0030.02615.46
5.2.00.0030.03715.46
5.1.60.0000.03415.46
5.1.50.0030.03615.46
5.1.40.0040.02815.46
5.1.30.0000.05515.46
5.1.20.0000.06015.46
5.1.10.0000.02615.46
5.1.00.0000.03215.46
5.0.50.0070.04615.46
5.0.40.0000.02315.46
5.0.30.0000.03715.46
5.0.20.0000.02115.46
5.0.10.0030.02315.46
5.0.00.0030.02915.46
4.4.90.0040.01415.46
4.4.80.0030.01715.46
4.4.70.0000.01715.46
4.4.60.0030.01315.46
4.4.50.0000.01615.46
4.4.40.0000.02515.46
4.4.30.0030.03615.46
4.4.20.0080.00815.46
4.4.10.0030.01615.46
4.4.00.0030.02315.46
4.3.110.0030.01415.46
4.3.100.0000.01715.46
4.3.90.0030.02315.46
4.3.80.0000.02615.46
4.3.70.0030.01515.46
4.3.60.0030.01315.46
4.3.50.0030.01415.46
4.3.40.0000.05715.46
4.3.30.0000.01715.46
4.3.20.0040.02315.46
4.3.10.0000.02615.46
4.3.00.0000.01615.46

preferences:
41.84 ms | 401 KiB | 5 Q