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; protected $parentId; protected $shortName; protected $fullName; public $branchId; protected $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.70.0110.00416.58
8.3.60.0100.00316.75
8.3.50.0090.01022.06
8.3.40.0080.00818.67
8.3.30.0100.00719.27
8.3.20.0080.00020.29
8.3.10.0040.00423.48
8.3.00.0040.00419.07
8.2.180.0120.00916.50
8.2.170.0060.01222.96
8.2.160.0070.00720.39
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0070.00419.17
8.2.110.0030.00622.13
8.2.100.0130.00017.73
8.2.90.0060.00317.75
8.2.80.0030.00517.97
8.2.70.0060.00317.80
8.2.60.0000.00818.22
8.2.50.0000.00818.10
8.2.40.0080.00019.94
8.2.30.0000.00818.31
8.2.20.0040.00417.80
8.2.10.0070.00017.91
8.2.00.0000.00817.68
8.1.280.0130.00725.92
8.1.270.0080.00023.92
8.1.260.0050.00326.35
8.1.250.0000.00828.09
8.1.240.0050.00522.19
8.1.230.0090.00319.12
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0080.00017.23
8.1.190.0040.00417.10
8.1.180.0070.00318.10
8.1.170.0000.00818.51
8.1.160.0070.00021.88
8.1.150.0000.00718.69
8.1.140.0050.00317.27
8.1.130.0000.00717.88
8.1.120.0000.00817.42
8.1.110.0030.00617.36
8.1.100.0000.00817.44
8.1.90.0000.00717.33
8.1.80.0070.00017.46
8.1.70.0000.00717.36
8.1.60.0040.00417.49
8.1.50.0030.00517.44
8.1.40.0000.01117.40
8.1.30.0030.00617.65
8.1.20.0000.00817.56
8.1.10.0030.00617.60
8.1.00.0080.00017.50
8.0.300.0070.00019.77
8.0.290.0000.00816.75
8.0.280.0030.00318.33
8.0.270.0000.00816.74
8.0.260.0040.00418.52
8.0.250.0070.00016.99
8.0.240.0040.00416.94
8.0.230.0030.00316.94
8.0.220.0000.00716.85
8.0.210.0040.00416.80
8.0.200.0070.00016.77
8.0.190.0060.00316.75
8.0.180.0000.00716.86
8.0.170.0000.00816.88
8.0.160.0000.00716.85
8.0.150.0050.00216.83
8.0.140.0050.00316.68
8.0.130.0050.00013.26
8.0.120.0040.00416.82
8.0.110.0040.00416.74
8.0.100.0000.00716.80
8.0.90.0040.00316.89
8.0.80.0080.01116.89
8.0.70.0040.00416.73
8.0.60.0000.00816.66
8.0.50.0000.00816.80
8.0.30.0070.01217.07
8.0.20.0120.01017.41
8.0.10.0070.00016.78
8.0.00.0110.00716.85
7.4.330.0030.00315.02
7.4.320.0000.00716.56
7.4.300.0000.00616.58
7.4.290.0040.00416.50
7.4.280.0030.00516.49
7.4.270.0040.00316.54
7.4.260.0050.00216.57
7.4.250.0000.00716.52
7.4.240.0020.00516.52
7.4.230.0070.00016.35
7.4.220.0140.00416.46
7.4.210.0060.01316.43
7.4.200.0030.00316.60
7.4.190.0040.00416.78
7.4.160.0110.00516.67
7.4.150.0210.00317.40
7.4.140.0120.00617.86
7.4.130.0120.00416.41
7.4.120.0080.01016.53
7.4.110.0080.01616.79
7.4.100.0150.00616.76
7.4.90.0030.01416.62
7.4.80.0090.00919.39
7.4.70.0110.01116.50
7.4.60.0100.00716.40
7.4.50.0030.00516.60
7.4.40.0160.00616.54
7.4.30.0070.01116.48
7.4.00.0080.00814.87
7.3.330.0000.00713.26
7.3.320.0050.00013.12
7.3.310.0030.00316.23
7.3.300.0030.00316.29
7.3.290.0100.00716.25
7.3.280.0050.01316.25
7.3.270.0090.00917.40
7.3.260.0120.00416.21
7.3.250.0130.00816.22
7.3.240.0160.00616.23
7.3.230.0110.00716.39
7.3.210.0060.01116.20
7.3.200.0080.00819.39
7.3.190.0170.00016.51
7.3.180.0090.01216.54
7.3.170.0060.01316.61
7.3.160.0130.00316.22
7.3.120.0100.00714.77
7.3.10.0100.00316.56
7.3.00.0090.00616.61
7.2.330.0000.01716.43
7.2.320.0170.00016.72
7.2.310.0040.01916.62
7.2.300.0040.01416.45
7.2.290.0060.01516.70
7.2.130.0120.00316.58
7.2.120.0060.00616.76
7.2.110.0040.01116.84
7.2.100.0040.00717.00
7.2.90.0060.01016.73
7.2.80.0030.01016.88
7.2.70.0100.00016.85
7.2.60.0050.01116.84
7.2.50.0060.00916.91
7.2.40.0100.00717.04
7.2.30.0060.00316.94
7.2.20.0040.01816.76
7.2.10.0180.00716.93
7.2.00.0100.01016.73
7.1.250.0050.00515.55
7.1.200.0000.01415.89
7.1.70.0070.00717.13
7.1.60.0110.01519.70
7.1.50.0070.00716.87
7.1.00.0030.07022.30
7.0.200.0000.00716.73
7.0.140.0000.07722.16
7.0.90.0270.06019.96
7.0.80.0300.04019.99
7.0.70.0330.04019.97
7.0.60.0170.04320.06
7.0.50.0300.04020.40
7.0.40.0070.04020.17
7.0.30.0030.04720.08
7.0.20.0130.03319.95
7.0.10.0100.03020.13
7.0.00.0070.06720.00
5.6.280.0130.06721.07
5.6.240.0070.05720.65
5.6.230.0200.03320.70
5.6.220.0030.05020.73
5.6.210.0000.04320.52
5.6.200.0070.04020.99
5.6.190.0070.04021.09
5.6.180.0030.04021.11
5.6.170.0070.07021.13
5.6.160.0000.07021.13
5.6.150.0070.03720.98
5.6.140.0070.06020.93
5.6.130.0030.04320.98
5.6.120.0100.05721.02
5.6.110.0000.08321.15
5.6.100.0170.07321.15
5.6.90.0230.07721.07
5.6.80.0100.04320.39
5.6.70.0300.05720.49
5.6.60.0100.07320.56
5.6.50.0030.07020.42
5.6.40.0100.08020.48
5.6.30.0070.08720.31
5.6.20.0070.07720.41
5.6.10.0030.07720.51
5.6.00.0100.07320.41
5.5.380.0030.04320.39
5.5.370.0100.08320.41
5.5.360.0000.04320.58
5.5.350.0100.06320.36
5.5.340.0000.04320.80
5.5.330.0070.03720.84
5.5.320.0030.05020.86
5.5.310.0030.04020.80
5.5.300.0030.08020.85
5.5.290.0030.05720.77
5.5.280.0030.04320.80
5.5.270.0070.08020.79
5.5.260.0130.07720.63
5.5.250.0130.06020.70
5.5.240.0030.06320.19
5.5.230.0100.05320.32
5.5.220.0100.07720.32
5.5.210.0070.07020.16
5.5.200.0130.07320.30
5.5.190.0270.06720.28
5.5.180.0070.04720.25
5.5.160.0030.08320.26
5.5.150.0070.08020.26
5.5.140.0100.07720.22
5.5.130.0000.06020.27
5.5.120.0100.07320.22
5.5.110.0070.08320.09
5.5.100.0100.07720.10
5.5.90.0230.06720.18
5.5.80.0170.06720.00
5.5.70.0000.06320.15
5.5.60.0100.07320.18
5.5.50.0000.07720.11
5.5.40.0030.05320.05
5.5.30.0030.05720.06
5.5.20.0170.06320.18
5.5.10.0130.07020.08
5.5.00.0030.08020.04
5.4.450.0100.03319.45
5.4.440.0030.05019.48
5.4.430.0130.07019.21
5.4.420.0100.07719.55
5.4.410.0070.06319.32
5.4.400.0070.03719.19
5.4.390.0070.07718.87
5.4.380.0070.05318.90
5.4.370.0100.07319.03
5.4.360.0130.05019.09
5.4.350.0130.06719.14
5.4.340.0070.08018.95
5.4.320.0070.07019.04
5.4.310.0030.07019.03
5.4.300.0100.07019.23
5.4.290.0130.07019.12
5.4.280.0070.04719.13
5.4.270.0100.07718.95
5.4.260.0100.07018.84
5.4.250.0100.06319.12
5.4.240.0100.06319.16
5.4.230.0000.04719.21
5.4.220.0230.05719.09
5.4.210.0100.03718.89
5.4.200.0030.08019.04
5.4.190.0070.07719.05
5.4.180.0070.08019.17
5.4.170.0100.07019.11
5.4.160.0100.06719.03
5.4.150.0030.05319.14
5.4.140.0100.06016.26
5.4.130.0070.07316.40
5.4.120.0070.07316.33
5.4.110.0030.05316.47
5.4.100.0130.06016.44
5.4.90.0130.06316.44
5.4.80.0230.04716.33
5.4.70.0030.04016.51
5.4.60.0170.06016.47
5.4.50.0000.08016.46
5.4.40.0100.04316.39
5.4.30.0030.03716.41
5.4.20.0170.05716.37
5.4.10.0000.04316.48
5.4.00.0100.06315.82
5.3.290.0170.06314.64
5.3.280.0030.07314.61
5.3.270.0100.07714.66
5.3.260.0070.08014.75
5.3.250.0030.07714.77
5.3.240.0100.07314.77
5.3.230.0030.07714.55
5.3.220.0130.07014.63
5.3.210.0070.05714.52
5.3.200.0070.07014.51
5.3.190.0070.07014.62
5.3.180.0100.06314.69
5.3.170.0070.07314.74
5.3.160.0000.04314.60
5.3.150.0030.05014.66
5.3.140.0070.06314.63
5.3.130.0070.03714.50
5.3.120.0070.05714.58
5.3.110.0000.04714.57
5.3.100.0030.04714.03
5.3.90.0130.06314.01
5.3.80.0030.07014.11
5.3.70.0130.06314.07
5.3.60.0070.07714.12
5.3.50.0100.07313.87
5.3.40.0070.07014.04
5.3.30.0100.07714.02
5.3.20.0070.06713.71
5.3.10.0100.06013.74
5.3.00.0100.06013.73
5.2.170.0000.05311.04
5.2.160.0000.06011.20
5.2.150.0130.04711.04
5.2.140.0030.05311.18
5.2.130.0000.03711.00
5.2.120.0070.05311.14
5.2.110.0030.04711.05
5.2.100.0030.03011.19
5.2.90.0030.04011.19
5.2.80.0000.03311.13
5.2.70.0030.04311.20
5.2.60.0030.04010.98
5.2.50.0100.05311.11
5.2.40.0070.06011.03
5.2.30.0130.05011.14
5.2.20.0030.06311.04
5.2.10.0030.06710.83
5.2.00.0070.06010.80
5.1.60.0130.04310.04
5.1.50.0030.05010.11
5.1.40.0000.05010.00
5.1.30.0070.05010.23
5.1.20.0100.05310.40
5.1.10.0100.04010.22
5.1.00.0030.03010.16
5.0.50.0000.0438.43
5.0.40.0000.0238.45
5.0.30.0030.0538.36
5.0.20.0000.0478.33
5.0.10.0070.0238.21
5.0.00.0030.0408.29
4.4.90.0000.0207.88
4.4.80.0070.0237.88
4.4.70.0000.0337.88
4.4.60.0000.0337.88
4.4.50.0070.0177.88
4.4.40.0070.0507.88
4.4.30.0070.0337.88
4.4.20.0070.0177.88
4.4.10.0030.0377.88
4.4.00.0030.0337.88
4.3.110.0000.0337.88
4.3.100.0030.0337.88
4.3.90.0030.0377.88
4.3.80.0030.0277.88
4.3.70.0070.0307.88
4.3.60.0030.0337.88
4.3.50.0070.0307.88
4.3.40.0070.0407.88
4.3.30.0000.0377.88
4.3.20.0070.0307.88
4.3.10.0000.0407.88
4.3.00.0100.0237.88

preferences:
47.1 ms | 401 KiB | 5 Q