3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Event { private $propagationStopped = false; public function isPropagationStopped() { return $this->propagationStopped; } public function stopPropagation() { $this->propagationStopped = true; } } class AddFranchiseeEvent extends Event { const EVENT_ID = 'gtt.franchisee_my.event.add_franchisee'; private $franchisee; private $prefix; private $code; private $clientId; public function __construct(Franchisee $franchisee, $prefix, $code, $clientId) { $this->franchisee = $franchisee; $this->prefix = $prefix; $this->code = $code; $this->clientId = $clientId; } public function getFranchisee() { return $this->franchisee; } public function getPrefix() { return $this->prefix; } public function getCode() { return $this->code; } public function getClientId() { return $this->clientId; } } class Franchisee { protected $id; private $parentId; private $shortName; private $fullName; private $branchId; private $status; public function setStatus($status) { $this->status = $status; } public function getStatus() { return $this->status; } public function setFullName($fullName) { $this->fullName = $fullName; } public function getFullName() { return $this->fullName; } public function setId($id) { $this->id = $id; } public function getId() { return $this->id; } public function setParentId($parentId) { $this->parentId = $parentId; } public function getParentId() { return $this->parentId; } public function setShortName($shortName) { $this->shortName = $shortName; } public function getShortName() { return $this->shortName; } public function getBranchId() { return $this->branchId; } public function setBranchId($branchId) { $this->branchId = $branchId; } } $object = new Franchisee(); // new AddFranchiseeEvent(new Franchisee(), 'pref', 121, 12323); $object->setBranchId(100); echo json_encode($object);

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.0140.00416.62
8.3.50.0130.00222.11
8.3.40.0040.01118.68
8.3.30.0140.00719.23
8.3.20.0070.00020.35
8.3.10.0080.00023.69
8.3.00.0040.00419.20
8.2.180.0080.00816.63
8.2.170.0090.00622.96
8.2.160.0100.00320.32
8.2.150.0060.00324.18
8.2.140.0090.00924.66
8.2.130.0050.00326.16
8.2.120.0060.00320.66
8.2.110.0040.00422.27
8.2.100.0090.00317.52
8.2.90.0000.00819.05
8.2.80.0000.00817.97
8.2.70.0000.00817.63
8.2.60.0080.00018.04
8.2.50.0100.00318.07
8.2.40.0040.00418.22
8.2.30.0040.00418.11
8.2.20.0040.00417.72
8.2.10.0050.00318.11
8.2.00.0000.00717.55
8.1.280.0120.00925.92
8.1.270.0040.00423.76
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0030.00624.00
8.1.230.0080.00419.08
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0000.00817.36
8.1.180.0090.00018.10
8.1.170.0120.00018.32
8.1.160.0030.00321.89
8.1.150.0040.00418.63
8.1.140.0000.00717.31
8.1.130.0050.00317.74
8.1.120.0000.00717.43
8.1.110.0000.00717.41
8.1.100.0040.00417.47
8.1.90.0060.00317.39
8.1.80.0040.00417.34
8.1.70.0030.00317.26
8.1.60.0030.00517.62
8.1.50.0040.00417.51
8.1.40.0120.00017.51
8.1.30.0090.00017.61
8.1.20.0040.00417.61
8.1.10.0040.00417.54
8.1.00.0030.00617.53
8.0.300.0000.00719.66
8.0.290.0000.00717.05
8.0.280.0000.00718.33
8.0.270.0040.00417.22
8.0.260.0030.00317.27
8.0.250.0070.00016.90
8.0.240.0000.00716.85
8.0.230.0000.00716.86
8.0.220.0030.00316.89
8.0.210.0070.00016.81
8.0.200.0060.00016.92
8.0.190.0040.00416.91
8.0.180.0000.00816.75
8.0.170.0000.00816.87
8.0.160.0030.00316.86
8.0.150.0040.00416.85
8.0.140.0000.00816.70
8.0.130.0030.00313.30
8.0.120.0040.00416.82
8.0.110.0040.00416.80
8.0.100.0040.00416.82
8.0.90.0040.00416.90
8.0.80.0120.00316.79
8.0.70.0040.00416.71
8.0.60.0080.00016.91
8.0.50.0000.00816.64
8.0.30.0110.00816.75
8.0.20.0150.00417.40
8.0.10.0070.00016.82
8.0.00.0090.01116.92
7.4.330.0000.00515.00
7.4.320.0000.00616.44
7.4.300.0060.00016.66
7.4.290.0060.00016.44
7.4.280.0000.00916.58
7.4.270.0000.00716.62
7.4.260.0050.00216.42
7.4.250.0000.00716.57
7.4.240.0050.00316.61
7.4.230.0030.00316.68
7.4.220.0160.00316.65
7.4.210.0110.00416.68
7.4.200.0000.00716.64
7.4.190.0070.00016.48
7.4.160.0030.01316.57
7.4.150.0100.00717.40
7.4.140.0090.01117.86
7.4.130.0110.00616.39
7.4.120.0060.01116.45
7.4.110.0040.01816.46
7.4.100.0120.00616.48
7.4.90.0090.00916.33
7.4.80.0110.01119.39
7.4.70.0110.00616.79
7.4.60.0100.00716.59
7.4.50.0030.00616.41
7.4.40.0110.00616.43
7.4.30.0070.01116.41
7.4.00.0090.00914.93
7.3.330.0030.00313.32
7.3.320.0020.00213.20
7.3.310.0070.00016.23
7.3.300.0030.00316.18
7.3.290.0070.00716.23
7.3.280.0070.01016.26
7.3.270.0090.00917.40
7.3.260.0070.01816.38
7.3.250.0110.00616.42
7.3.240.0060.01816.50
7.3.230.0060.00916.39
7.3.210.0100.00816.57
7.3.200.0030.01319.39
7.3.190.0110.00716.41
7.3.180.0130.00316.31
7.3.170.0070.01416.27
7.3.160.0090.01316.45
7.3.120.0070.01014.89
7.3.110.0040.01114.86
7.3.100.0000.01314.80
7.3.90.0100.00314.73
7.3.80.0080.00814.87
7.3.70.0040.00814.42
7.3.60.0040.00814.68
7.3.50.0090.00314.74
7.3.40.0000.01614.71
7.3.30.0040.01114.71
7.3.20.0060.00616.47
7.3.10.0090.00916.64
7.3.00.0100.00616.71
7.2.330.0150.00616.39
7.2.320.0160.00616.48
7.2.310.0100.00716.44
7.2.300.0060.01116.43
7.2.290.0060.01016.80
7.2.240.0000.01115.26
7.2.230.0070.00714.94
7.2.220.0030.00915.02
7.2.210.0070.01114.87
7.2.200.0000.01414.78
7.2.190.0060.00914.92
7.2.180.0030.00714.90
7.2.170.0090.00614.99
7.2.160.0100.00315.03
7.2.150.0040.01116.52
7.2.140.0070.01116.86
7.2.130.0100.00716.71
7.2.120.0030.01317.05
7.2.110.0070.01016.95
7.2.100.0030.00816.77
7.2.90.0000.01716.96
7.2.80.0120.00416.84
7.2.70.0000.01216.73
7.2.60.0100.00316.79
7.2.50.0040.01116.95
7.2.40.0030.01616.97
7.2.30.0070.00716.90
7.2.20.0100.00716.76
7.2.10.0040.01417.00
7.2.00.0030.01018.26
7.1.330.0000.01215.54
7.1.320.0030.01315.96
7.1.310.0040.00715.79
7.1.300.0030.00915.82
7.1.290.0070.00715.78
7.1.280.0030.00615.77
7.1.270.0090.00615.76
7.1.260.0110.00415.55
7.1.250.0060.00615.83
7.1.200.0040.00915.62
7.1.100.0040.00818.24
7.1.70.0040.00417.23
7.1.60.0100.01419.70
7.1.50.0120.01516.88
7.1.00.0030.07722.43
7.0.200.0040.00416.60
7.0.140.0100.06722.02
7.0.90.0230.05019.95
7.0.80.0030.04319.85
7.0.70.0070.04019.77
7.0.60.0130.03319.94
7.0.50.0100.06020.32
7.0.40.0130.03319.96
7.0.30.0130.08020.13
7.0.20.0030.08720.04
7.0.10.0100.07720.14
7.0.00.0030.07020.14
5.6.280.0000.07721.09
5.6.240.0070.04720.61
5.6.230.0100.03320.56
5.6.220.0030.07020.59
5.6.210.0170.03320.73
5.6.200.0030.05321.17
5.6.190.0000.05021.14
5.6.180.0000.05021.13
5.6.170.0100.06721.13
5.6.160.0030.08321.04
5.6.150.0130.07321.01
5.6.140.0100.04721.13
5.6.130.0070.04321.06
5.6.120.0070.08321.08
5.6.110.0270.04020.96
5.6.100.0100.08021.09
5.6.90.0100.05321.05
5.6.80.0070.08020.37
5.6.70.0000.08020.34
5.6.60.0130.07720.57
5.6.50.0130.07320.52
5.6.40.0000.07720.49
5.6.30.0070.08020.50
5.6.20.0100.08020.31
5.6.10.0100.04020.34
5.6.00.0000.09020.54
5.5.380.0000.04320.36
5.5.370.0030.05320.42
5.5.360.0030.05720.36
5.5.350.0070.03720.40
5.5.340.0200.03320.83
5.5.330.0030.04020.91
5.5.320.0100.06720.82
5.5.310.0130.06720.91
5.5.300.0070.07020.79
5.5.290.0130.05720.95
5.5.280.0070.08020.84
5.5.270.0100.08320.79
5.5.260.0000.08320.88
5.5.250.0100.08720.75
5.5.240.0070.07720.18
5.5.230.0070.08320.31
5.5.220.0100.08020.32
5.5.210.0170.06320.23
5.5.200.0100.07720.20
5.5.190.0230.05320.25
5.5.180.0100.05720.11
5.5.160.0100.07720.26
5.5.150.0070.06020.26
5.5.140.0030.07320.18
5.5.130.0070.07720.29
5.5.120.0100.07320.28
5.5.110.0070.04720.19
5.5.100.0100.06320.13
5.5.90.0130.08320.12
5.5.80.0130.07320.11
5.5.70.0100.04320.18
5.5.60.0070.04720.18
5.5.50.0170.06720.18
5.5.40.0030.07020.08
5.5.30.0170.06720.02
5.5.20.0070.07320.18
5.5.10.0100.06719.99
5.5.00.0230.06320.05
5.4.450.0000.04319.46
5.4.440.0070.04719.39
5.4.430.0000.07719.28
5.4.420.0100.05019.36
5.4.410.0130.07019.20
5.4.400.0030.08019.13
5.4.390.0070.07719.05
5.4.380.0100.06019.25
5.4.370.0200.06718.85
5.4.360.0100.05719.09
5.4.350.0130.07019.10
5.4.340.0100.07319.13
5.4.320.0030.04719.18
5.4.310.0100.07719.16
5.4.300.0100.06019.23
5.4.290.0000.08319.04
5.4.280.0100.07319.04
5.4.270.0030.04319.12
5.4.260.0030.08019.06
5.4.250.0100.06319.20
5.4.240.0070.04018.87
5.4.230.0130.06019.04
5.4.220.0000.07718.94
5.4.210.0130.07019.19
5.4.200.0100.06019.22
5.4.190.0000.04718.99
5.4.180.0070.08019.06
5.4.170.0070.07719.03
5.4.160.0030.08019.02
5.4.150.0070.05318.92
5.4.140.0070.06316.34
5.4.130.0070.06316.46
5.4.120.0100.06716.34
5.4.110.0070.07716.32
5.4.100.0000.04316.48
5.4.90.0000.07016.49
5.4.80.0130.05316.52
5.4.70.0130.06016.54
5.4.60.0230.04316.43
5.4.50.0030.05016.34
5.4.40.0070.07316.46
5.4.30.0070.07316.36
5.4.20.0070.06716.45
5.4.10.0030.07016.36
5.4.00.0030.07015.84
5.3.290.0000.04714.71
5.3.280.0100.07714.76
5.3.270.0070.08014.60
5.3.260.0030.06314.75
5.3.250.0130.06714.65
5.3.240.0070.07014.56
5.3.230.0070.08014.65
5.3.220.0030.09714.65
5.3.210.0030.04714.71
5.3.200.0070.07314.58
5.3.190.0100.04014.52
5.3.180.0100.07014.54
5.3.170.0130.07014.52
5.3.160.0030.07714.65
5.3.150.0100.07314.64
5.3.140.0070.07314.59
5.3.130.0030.08314.49
5.3.120.0070.07014.68
5.3.110.0130.07014.60
5.3.100.0130.07014.13
5.3.90.0030.05714.14
5.3.80.0200.06013.97
5.3.70.0030.07714.05
5.3.60.0100.04313.92
5.3.50.0070.07313.96
5.3.40.0130.06713.96
5.3.30.0130.05713.92
5.3.20.0070.03313.64
5.3.10.0070.05013.80
5.3.00.0070.05313.59
5.2.170.0100.06011.29
5.2.160.0100.06711.27
5.2.150.0030.05311.07
5.2.140.0070.02711.19
5.2.130.0070.03011.14
5.2.120.0030.05711.20
5.2.110.0000.04011.22
5.2.100.0000.04011.03
5.2.90.0070.06011.27
5.2.80.0070.06011.15
5.2.70.0070.02711.10
5.2.60.0030.03310.97
5.2.50.0030.06311.07
5.2.40.0000.04711.14
5.2.30.0070.03010.93
5.2.20.0030.06310.85
5.2.10.0070.05310.92
5.2.00.0000.03710.61
5.1.60.0030.03310.12
5.1.50.0030.0579.88
5.1.40.0070.05310.08
5.1.30.0130.05310.46
5.1.20.0000.04710.41
5.1.10.0100.05010.10
5.1.00.0030.0339.95
5.0.50.0030.0308.39
5.0.40.0070.0408.51
5.0.30.0070.0608.25
5.0.20.0000.0278.24
5.0.10.0000.0238.20
5.0.00.0070.0638.19
4.4.90.0030.0307.09
4.4.80.0030.0277.09
4.4.70.0030.0337.09
4.4.60.0000.0307.09
4.4.50.0030.0337.09
4.4.40.0000.0277.09
4.4.30.0030.0337.09
4.4.20.0000.0237.09
4.4.10.0070.0277.09
4.4.00.0070.0507.09
4.3.110.0030.0307.09
4.3.100.0070.0137.09
4.3.90.0000.0377.09
4.3.80.0000.0537.09
4.3.70.0000.0407.09
4.3.60.0000.0277.09
4.3.50.0070.0337.09
4.3.40.0000.0337.09
4.3.30.0000.0407.09
4.3.20.0000.0377.09
4.3.10.0000.0407.09
4.3.00.0000.0337.09

preferences:
48.36 ms | 400 KiB | 5 Q