3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MultiImageComponent { public $imgs = []; public function __construct() { foreach(func_get_args() as $url) { $this->imgs[] = new Image($url); } } } class Image { private $url = ''; public function __construct($url) { $this->url = $url; } public function getUrl() { return $this->url; } } $mic = new MultiImageCompnent("https://photos.smugmug.com/Comics/Pa-comics/n-xmQS5/i-RZcDzzK/0/2100x20000/i-RZcDzzK-2100x20000.jpg", "http://www.acq-inc.com/assets/ai/img/img_staff.gif", "https://a.fsdn.com/sd/topics/business_64.png");

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.00718.68
8.3.50.0000.01516.10
8.3.40.0100.00618.91
8.3.30.0120.00318.85
8.3.20.0040.00420.78
8.3.10.0080.00023.71
8.3.00.0040.00420.52
8.2.180.0040.01518.31
8.2.170.0140.00022.96
8.2.160.0070.00720.73
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0080.00017.96
8.2.120.0070.00026.35
8.2.110.0030.00722.11
8.2.100.0080.00417.91
8.2.90.0030.00619.34
8.2.80.0050.00317.97
8.2.70.0030.00517.80
8.2.60.0060.00318.03
8.2.50.0000.00818.10
8.2.40.0030.00619.34
8.2.30.0070.00019.25
8.2.20.0040.00418.06
8.2.10.0040.00419.20
8.2.00.0080.00018.13
8.1.280.0140.00725.92
8.1.270.0080.00020.38
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0000.00922.01
8.1.230.0120.00020.65
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0030.00717.35
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0050.00318.53
8.1.160.0040.00418.78
8.1.150.0000.00818.70
8.1.140.0000.00818.81
8.1.130.0030.00317.22
8.1.120.0000.00717.36
8.1.110.0030.00517.32
8.1.100.0000.00717.39
8.1.90.0000.00717.29
8.1.80.0000.00717.31
8.1.70.0000.01017.35
8.1.60.0040.00817.52
8.1.50.0030.00517.39
8.1.40.0080.00017.42
8.1.30.0000.00717.54
8.1.20.0040.00417.61
8.1.10.0040.00417.41
8.1.00.0000.00817.36
8.0.300.0040.00419.64
8.0.290.0040.00416.60
8.0.280.0000.00718.31
8.0.270.0030.00317.13
8.0.260.0000.00716.74
8.0.250.0030.00316.88
8.0.240.0000.00716.98
8.0.230.0040.00417.03
8.0.220.0050.00216.95
8.0.210.0070.00016.77
8.0.200.0050.00216.96
8.0.190.0000.00716.93
8.0.180.0050.00316.96
8.0.170.0080.00016.93
8.0.160.0040.00416.81
8.0.150.0030.00316.89
8.0.140.0040.00416.69
8.0.130.0000.00613.26
8.0.120.0040.00416.95
8.0.110.0050.00216.84
8.0.100.0030.00316.77
8.0.90.0000.00716.94
8.0.80.0090.01216.93
8.0.70.0050.00516.77
8.0.60.0040.00416.86
8.0.50.0040.00416.96
8.0.30.0090.01116.95
8.0.20.0120.00817.22
8.0.10.0000.00816.88
8.0.00.0090.00816.60
7.4.330.0030.00316.83
7.4.320.0030.00316.46
7.4.300.0030.00316.56
7.4.290.0040.00416.55
7.4.280.0040.00416.46
7.4.270.0000.00716.45
7.4.260.0050.00316.36
7.4.250.0030.00316.49
7.4.240.0040.00416.58
7.4.230.0070.00016.29
7.4.220.0040.00416.34
7.4.210.0100.00716.49
7.4.200.0070.00016.55
7.4.160.0080.00916.41
7.4.140.0130.01017.86
7.4.130.0100.00716.42
7.4.120.0100.00716.58
7.4.110.0110.00516.59
7.4.100.0150.00716.44
7.4.90.0140.00416.64
7.4.80.0090.00919.39
7.4.70.0090.01316.61
7.4.60.0060.01016.62
7.4.50.0070.00716.24
7.4.40.0100.00716.48
7.4.10.0150.00414.86
7.4.00.0090.00915.10
7.3.330.0000.00513.18
7.3.320.0040.00413.17
7.3.310.0000.00716.21
7.3.300.0000.00616.20
7.3.290.0030.00316.33
7.3.280.0070.01016.30
7.3.260.0100.01216.46
7.3.240.0110.00816.31
7.3.230.0070.01016.29
7.3.210.0130.00716.48
7.3.200.0070.01016.39
7.3.190.0100.00716.60
7.3.180.0130.00916.30
7.3.170.0140.00416.48
7.3.160.0040.01216.34
7.3.130.0070.01014.66
7.3.120.0090.00914.75
7.3.110.0090.00614.82
7.3.100.0030.01014.85
7.3.90.0060.00914.86
7.3.80.0070.00714.77
7.3.70.0000.00914.79
7.3.60.0100.00614.85
7.3.50.0080.00414.90
7.3.40.0100.00014.88
7.3.30.0050.00714.59
7.3.20.0280.01215.66
7.3.10.0280.00615.47
7.3.00.1660.01015.48
7.2.330.0030.01316.57
7.2.320.0070.01416.36
7.2.310.0120.00616.67
7.2.300.0100.01316.55
7.2.290.0160.01216.24
7.2.260.0110.00414.82
7.2.250.0070.01314.69
7.2.240.0100.00714.89
7.2.230.0090.00614.76
7.2.220.0060.00314.71
7.2.210.0060.00914.95
7.2.200.0080.00314.80
7.2.190.0120.00415.07
7.2.180.0030.01314.96
7.2.170.0070.00714.76
7.2.160.0050.00714.93
7.2.150.0190.01215.91
7.2.140.0340.00515.65
7.2.130.0290.01215.79
7.2.120.0210.00815.55
7.2.110.0280.00315.65
7.2.100.0280.00515.58
7.2.90.0330.01015.82
7.2.80.0370.01115.73
7.2.70.0280.01215.81
7.2.60.0380.00915.56
7.2.50.0330.00815.68
7.2.40.0300.01115.82
7.2.30.0250.00815.76
7.2.20.0320.00315.84
7.2.10.0380.00515.87
7.2.00.0320.00915.87
7.1.330.0030.01015.45
7.1.320.0060.00315.86
7.1.310.0120.00315.51
7.1.300.0030.01415.58
7.1.290.0070.00315.70
7.1.280.0030.00615.73
7.1.270.0280.00514.55
7.1.260.0240.00814.70
7.1.250.0310.00814.49
7.1.240.0030.00615.68
7.1.230.0090.00315.56
7.1.220.0090.00315.50
7.1.210.0000.01315.50
7.1.200.0110.00415.50
7.1.190.0090.00015.36
7.1.180.0040.00415.27
7.1.170.0050.00515.36
7.1.160.0080.00415.79
7.1.150.0060.00915.75
7.1.140.0040.00415.47
7.1.130.0060.00615.59
7.1.120.0040.00815.55
7.1.110.0060.00615.62
7.1.100.0000.01715.46
7.1.90.0130.00015.77
7.1.80.0070.00715.71
7.1.70.0040.00715.55
7.1.60.0060.00315.67
7.1.50.0000.01415.53
7.1.40.0000.01115.27
7.1.30.0030.00915.67
7.1.20.0000.01115.35
7.1.10.0000.01215.52
7.1.00.0090.00615.76

preferences:
52.98 ms | 400 KiB | 5 Q