3v4l.org

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

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.01018.31
8.3.50.0080.00816.30
8.3.40.0130.00318.60
8.3.30.0120.00318.58
8.3.20.0050.00320.77
8.3.10.0040.00423.66
8.3.00.0030.00520.43
8.2.180.0150.00416.35
8.2.170.0100.00322.96
8.2.160.0070.00720.68
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00417.97
8.2.120.0080.00026.35
8.2.110.0040.00421.05
8.2.100.0080.00417.91
8.2.90.0030.00517.91
8.2.80.0000.00817.97
8.2.70.0090.00017.80
8.2.60.0040.00418.08
8.2.50.0040.00418.10
8.2.40.0000.00819.40
8.2.30.0000.00719.24
8.2.20.0000.00717.99
8.2.10.0070.00019.05
8.2.00.0040.00418.18
8.1.280.0070.00725.92
8.1.270.0030.00622.25
8.1.260.0050.00326.35
8.1.250.0000.00728.09
8.1.240.0060.00322.48
8.1.230.0060.00622.81
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0060.00317.22
8.1.190.0030.00517.23
8.1.180.0050.00518.10
8.1.170.0000.00818.65
8.1.160.0040.00418.86
8.1.150.0040.00418.82
8.1.140.0060.00319.07
8.1.130.0040.00417.32
8.1.120.0030.00517.38
8.1.110.0030.00517.39
8.1.100.0030.00517.40
8.1.90.0000.00717.38
8.1.80.0070.00017.38
8.1.70.0070.00317.34
8.1.60.0000.01017.48
8.1.50.0030.00617.42
8.1.40.0030.00617.55
8.1.30.0000.00817.68
8.1.20.0070.00017.58
8.1.10.0000.00717.41
8.1.00.0000.00817.42
8.0.300.0080.00021.45
8.0.290.0050.00316.63
8.0.280.0000.00818.37
8.0.270.0030.00517.23
8.0.260.0080.00016.66
8.0.250.0000.00716.76
8.0.240.0030.00316.76
8.0.230.0030.00316.93
8.0.220.0000.00716.87
8.0.210.0030.00316.78
8.0.200.0000.00716.89
8.0.190.0000.00816.85
8.0.180.0040.00416.71
8.0.170.0040.00416.69
8.0.160.0050.00216.72
8.0.150.0040.00416.78
8.0.140.0000.00716.73
8.0.130.0000.00513.23
8.0.120.0040.00416.84
8.0.110.0000.00816.74
8.0.100.0000.00816.84
8.0.90.0040.00416.71
8.0.80.0070.01116.84
8.0.70.0030.00616.77
8.0.60.0040.00416.78
8.0.50.0040.00416.89
8.0.30.0150.00516.99
8.0.20.0030.01916.86
8.0.10.0030.00517.00
8.0.00.0090.00816.75
7.4.330.0050.00016.79
7.4.320.0060.00016.46
7.4.300.0060.00016.57
7.4.290.0000.00716.36
7.4.280.0040.00416.59
7.4.270.0070.00016.58
7.4.260.0030.00316.59
7.4.250.0050.00316.58
7.4.240.0000.00716.64
7.4.230.0000.00716.40
7.4.220.0000.00816.34
7.4.210.0050.01016.55
7.4.200.0070.00016.66
7.4.160.0100.00616.34
7.4.140.0230.00017.86
7.4.130.0120.00616.46
7.4.120.0120.01216.44
7.4.110.0070.01016.49
7.4.100.0200.00016.39
7.4.90.0080.00816.51
7.4.80.0100.00819.39
7.4.70.0120.00916.41
7.4.60.0080.00816.37
7.4.50.0000.01516.41
7.4.40.0070.01116.34
7.4.10.0130.00614.88
7.4.00.0110.00614.97
7.3.330.0020.00213.07
7.3.320.0030.00313.23
7.3.310.0030.00316.19
7.3.300.0000.00716.20
7.3.290.0040.00916.22
7.3.280.0070.00916.22
7.3.260.0120.01016.20
7.3.240.0080.01016.35
7.3.230.0100.01316.25
7.3.210.0070.01316.25
7.3.200.0090.01216.29
7.3.190.0160.01316.33
7.3.180.0090.00816.45
7.3.170.0090.01216.32
7.3.160.0070.01016.25
7.3.130.0110.00714.49
7.3.120.0090.00914.53
7.3.110.0100.00814.57
7.3.100.0030.01314.74
7.3.90.0100.00414.71
7.3.80.0110.00614.51
7.3.70.0030.01114.71
7.3.60.0060.00714.73
7.3.50.0100.00514.69
7.3.40.0060.00514.49
7.3.30.0040.00614.65
7.3.20.0270.00815.80
7.3.10.0260.00715.93
7.3.00.0310.00615.75
7.2.330.0110.00716.68
7.2.320.0090.01316.66
7.2.310.0130.00316.59
7.2.300.0080.01616.46
7.2.290.0110.01116.74
7.2.260.0040.01915.19
7.2.250.0060.01114.86
7.2.240.0050.01214.90
7.2.230.0090.00815.10
7.2.220.0030.01114.99
7.2.210.0090.00615.04
7.2.200.0100.00514.77
7.2.190.0010.01114.78
7.2.180.0020.01614.83
7.2.170.0030.01014.98
7.2.160.0090.00815.11
7.2.150.0330.00715.85
7.2.140.0320.01115.79
7.2.130.0490.00215.80
7.2.120.0490.00515.77
7.2.110.0380.01215.86
7.2.100.0400.00715.76
7.2.90.0390.00515.91
7.2.80.0370.00515.72
7.2.70.0470.00515.64
7.2.60.0330.00815.68
7.2.50.0380.00515.94
7.2.40.0400.01415.90
7.2.30.0370.00615.85
7.2.20.0400.01315.88
7.2.10.0520.01115.84
7.2.00.0340.01215.88
7.1.330.0060.00515.80
7.1.320.0070.00815.78
7.1.310.0040.00915.69
7.1.300.0100.00515.69
7.1.290.0090.00515.57
7.1.280.0030.01015.63
7.1.270.0300.00814.96
7.1.260.0330.00815.06
7.1.250.0390.00614.55
7.1.240.0080.00415.33
7.1.230.0070.00715.79
7.1.220.0030.01015.70
7.1.210.0090.00615.51
7.1.200.0060.00615.85
7.1.190.0090.00015.64
7.1.180.0030.01315.55
7.1.170.0080.00815.43
7.1.160.0060.00615.51
7.1.150.0070.00715.84
7.1.140.0030.00915.40
7.1.130.0030.00715.73
7.1.120.0040.00815.75
7.1.110.0040.00815.85
7.1.100.0140.00015.61
7.1.90.0060.00615.70
7.1.80.0030.00915.50
7.1.70.0060.00615.87
7.1.60.0080.00515.63
7.1.50.0030.01015.66
7.1.40.0000.01315.64
7.1.30.0040.01115.67
7.1.20.0060.00615.82
7.1.10.0090.00415.40
7.1.00.0070.00715.56

preferences:
70.45 ms | 401 KiB | 5 Q