3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Campaign { public static function createNewCampaign( Name $name, Description $description, CampaignType $type, Budget $budget ): self { $campaign = new self; $campaign->name = $name; $campaign->description = $description; $campaign->type = $type; $campaign->budget = $budget; return $campaign; } public static function createNewCampaignWithTrackingUrlTemplate( Name $name, Description $description, CampaignType $type, Budget $budget, TrackingUrlTemplate $template ): self { $campaign = self::createNewCampaign(...func_get_args()); $campaign->updateTrackingUrlTemplate($template); return $campaign; } public static function createNewCampaignWithCustomParameters( Name $name, Description $description, CampaignType $type, Budget $budget, CustomParameters $customParameters ): self { $campaign = self::createNewCampaign(...func_get_args()); $campaign->updateCustomParameters($customParameters); return $campaign; } public static function createCampaignWithTrackingUrlTemplateAndCustomParameters( Name $name, Description $description, CampaignType $type, Budget $budget, TrackingUrlTemplate $template, CustomParameters $customParameters ) { $campaign = self::createNewCampaign(...func_get_args()); $campaign->updateTrackingUrlTemplate($template); $campaign->updateCustomParameters($customParameters); return $campaign; } }

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.5.30.0070.01021.35
8.5.20.0090.00818.25
8.5.10.0100.01016.47
8.5.00.0140.00720.07
8.4.180.0130.00825.65
8.4.170.0100.01424.00
8.4.160.0080.00423.93
8.4.150.0090.00416.78
8.4.140.0140.01117.55
8.4.130.0100.01117.64
8.4.120.0100.00922.04
8.4.110.0130.00618.86
8.4.100.0120.00818.52
8.4.90.0100.01118.72
8.4.80.0150.00418.59
8.4.70.0110.01019.58
8.4.60.0110.00920.41
8.4.50.0130.00718.46
8.4.40.0160.00319.09
8.4.30.0130.00719.23
8.4.20.0100.01017.49
8.4.10.0060.00919.42
8.3.300.0100.01120.80
8.3.290.0110.00820.93
8.3.280.0120.00818.27
8.3.270.0090.01116.44
8.3.260.0130.00516.42
8.3.250.0120.00818.58
8.3.240.0090.00616.34
8.3.230.0110.00916.56
8.3.220.0130.00518.95
8.3.210.0130.00616.38
8.3.200.0070.00216.36
8.3.190.0110.00916.94
8.3.180.0110.00816.49
8.3.170.0130.00620.55
8.3.160.0110.00717.18
8.3.150.0110.00716.95
8.3.140.0030.00617.40
8.3.130.0100.00018.21
8.3.120.0040.00818.88
8.3.110.0070.01320.94
8.3.100.0030.00616.74
8.3.90.0110.00326.77
8.3.80.0070.00318.43
8.3.70.0040.01118.18
8.3.60.0040.01118.30
8.3.50.0040.01317.34
8.3.40.0110.00418.84
8.3.30.0040.01118.42
8.3.20.0040.00420.30
8.3.10.0050.00320.73
8.3.00.0000.00720.95
8.2.300.0100.01118.79
8.2.290.0110.00820.25
8.2.280.0070.01318.34
8.2.270.0080.00818.80
8.2.260.0090.00316.43
8.2.250.0120.00616.38
8.2.240.0070.00417.07
8.2.230.0050.00322.58
8.2.220.0030.00624.06
8.2.210.0080.00026.77
8.2.200.0060.00316.50
8.2.190.0120.00616.58
8.2.180.0140.00718.36
8.2.170.0030.01422.96
8.2.160.0070.00720.23
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00419.38
8.2.120.0040.00426.35
8.2.110.0030.00620.52
8.2.100.0050.00917.55
8.2.90.0040.00417.78
8.2.80.0080.00022.25
8.2.70.0030.00617.50
8.2.60.0080.00017.38
8.2.50.0050.00317.55
8.2.40.0040.00420.64
8.2.30.0030.00619.22
8.2.20.0020.00517.96
8.2.10.0000.00717.89
8.2.00.0040.00418.02
8.1.340.0090.01119.71
8.1.330.0100.00921.76
8.1.320.0080.01115.93
8.1.310.0000.00818.18
8.1.300.0000.00918.00
8.1.290.0080.00030.84
8.1.280.0100.01025.92
8.1.270.0030.00522.01
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0080.00422.00
8.1.230.0040.00723.99
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0000.00817.23
8.1.190.0000.00917.11
8.1.180.0000.00818.10
8.1.170.0060.00318.62
8.1.160.0040.00418.91
8.1.150.0050.00218.80
8.1.140.0000.00819.41
8.1.130.0000.00718.71
8.1.120.0070.00317.42
8.1.110.0000.00717.38
8.1.100.0040.00417.27
8.1.90.0000.00817.43
8.1.80.0040.00417.27
8.1.70.0000.00717.36
8.1.60.0040.00417.40
8.1.50.0030.00517.32
8.1.40.0030.00617.43
8.1.30.0040.00417.40
8.1.20.0080.00017.57
8.1.10.0000.00917.47
8.1.00.0040.00417.36
8.0.300.0050.00220.04
8.0.290.0050.00216.63
8.0.280.0070.00018.37
8.0.270.0070.00017.10
8.0.260.0000.00718.71
8.0.250.0000.00716.89
8.0.240.0030.00616.84
8.0.230.0080.00016.84
8.0.220.0040.00416.83
8.0.210.0070.00016.81
8.0.200.0000.00716.89
8.0.190.0090.00016.90
8.0.180.0000.00716.82
8.0.170.0050.00316.82
8.0.160.0030.00316.86
8.0.150.0030.00516.71
8.0.140.0020.00516.73
8.0.130.0060.00013.23
8.0.120.0040.00416.70
8.0.110.0040.00416.63
8.0.100.0030.00616.83
8.0.90.0040.00416.88
8.0.80.0060.01016.79
8.0.70.0080.00016.80
8.0.60.0040.00416.80
8.0.50.0030.00616.79
8.0.30.0100.00816.88
8.0.20.0130.00717.40
8.0.10.0000.00716.78
8.0.00.0070.01016.65
7.4.330.0000.00515.55
7.4.320.0000.00716.42
7.4.300.0060.00016.47
7.4.290.0050.00216.43
7.4.280.0080.00016.47
7.4.270.0000.00716.57
7.4.260.0020.00516.58
7.4.250.0050.00216.37
7.4.240.0030.00316.42
7.4.230.0080.00016.17
7.4.220.0100.01316.52
7.4.210.0030.01116.50
7.4.200.0000.00716.63
7.4.160.0150.00316.35
7.4.150.0030.01317.40
7.4.140.0140.00417.86
7.4.130.0110.01116.43
7.4.120.0080.01116.48
7.4.110.0140.00316.27
7.4.100.0140.00316.50
7.4.90.0030.01516.09
7.4.80.0090.00919.39
7.4.70.0080.00816.44
7.4.60.0060.01116.26
7.4.50.0080.00816.34
7.4.40.0120.00316.46
7.4.30.0110.00616.59
7.4.00.0100.00614.50
7.3.330.0000.00513.19
7.3.320.0030.00313.01
7.3.310.0080.00016.22
7.3.300.0030.00316.00
7.3.290.0090.01016.22
7.3.280.0090.00716.17
7.3.270.0120.00617.40
7.3.260.0100.00916.37
7.3.250.0110.00916.31
7.3.240.0090.00716.22
7.3.230.0060.01016.32
7.3.210.0090.01216.20
7.3.200.0100.00716.19
7.3.190.0080.01116.32
7.3.180.0140.00316.17
7.3.170.0070.01016.37
7.3.160.0120.00916.12
7.3.00.0000.01016.66
7.2.330.0080.00816.41
7.2.320.0120.00616.56
7.2.310.0070.01116.57
7.2.300.0070.01016.62
7.2.290.0100.01016.30
7.2.130.0030.01016.54
7.2.120.0100.00316.59
7.2.110.0040.01116.42
7.2.100.0030.01416.74
7.2.90.0040.01116.98
7.2.80.0110.00416.40
7.2.70.0100.00716.66
7.2.60.0060.00616.38
7.2.50.0060.00916.52
7.2.40.0060.00616.68
7.2.30.0040.00816.78
7.2.20.0100.00316.85
7.2.10.0080.00316.75
7.2.00.0040.00816.75
7.1.250.0040.00715.48
7.1.240.0030.01015.36
7.1.230.0080.00315.49
7.1.220.0050.00515.43
7.1.210.0030.00615.57
7.1.200.0080.00415.47
7.1.190.0000.01015.47
7.1.180.0070.00315.50
7.1.170.0060.00615.37
7.1.160.0080.00315.16
7.1.150.0000.01215.36
7.1.140.0070.01015.65
7.1.130.0070.00715.67
7.1.120.0080.00315.65
7.1.110.0030.00915.40
7.1.100.0040.00815.60
7.1.90.0100.00315.45
7.1.80.0030.01015.24
7.1.70.1040.00615.22
7.1.60.1280.01124.41
7.1.50.1470.01224.29
7.1.40.1310.01024.09
7.1.30.1900.00823.75
7.1.20.1340.00823.95
7.1.10.1480.01014.89
7.1.00.0080.00615.20
7.0.330.0030.00915.11
7.0.320.0040.00414.58
7.0.310.0070.00715.10
7.0.300.0070.00315.13
7.0.290.0030.00715.17
7.0.280.0080.00414.73
7.0.270.0070.00714.84
7.0.260.0000.00814.87
7.0.250.0040.00715.11
7.0.240.0070.00415.03
7.0.230.0090.00614.97
7.0.220.0000.01014.91
7.0.210.0030.00615.04
7.0.200.1620.00614.82
7.0.190.1650.00714.88
7.0.180.1130.01014.54
7.0.170.1990.00914.78
7.0.160.1570.00814.74
7.0.150.1740.00914.45
7.0.140.0060.01114.85
7.0.130.0110.00614.83
7.0.120.0090.00914.81
7.0.110.0090.00614.65
7.0.100.0090.00914.51
7.0.90.0070.00814.68
7.0.80.0100.00714.88
7.0.70.0060.01014.75
7.0.60.0090.01014.82
7.0.50.0140.00914.75
7.0.40.0050.01013.77
7.0.30.1760.00813.87
7.0.20.1590.00913.86
7.0.10.1400.01013.88
7.0.00.1400.01013.76
5.6.380.0030.01014.20

preferences:
90.66 ms | 1607 KiB | 5 Q