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 { private $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); 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.0070.00718.06
8.3.50.0120.00521.97
8.3.40.0110.00418.75
8.3.30.0070.00719.09
8.3.20.0060.00320.40
8.3.10.0080.00023.66
8.3.00.0080.00019.09
8.2.180.0070.01116.50
8.2.170.0070.01022.96
8.2.160.0120.00320.52
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0030.00526.16
8.2.120.0100.00019.02
8.2.110.0060.00322.29
8.2.100.0070.00317.84
8.2.90.0060.00319.18
8.2.80.0080.00017.97
8.2.70.0080.00017.50
8.2.60.0000.01217.93
8.2.50.0070.00418.07
8.2.40.0030.00619.94
8.2.30.0070.00018.15
8.2.20.0000.00817.73
8.2.10.0000.00718.04
8.2.00.0050.00317.62
8.1.280.0070.01425.92
8.1.270.0030.00623.84
8.1.260.0050.00326.35
8.1.250.0060.00328.09
8.1.240.0090.00023.81
8.1.230.0070.00419.16
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0030.00717.23
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0030.00618.30
8.1.160.0040.00421.94
8.1.150.0000.00718.53
8.1.140.0040.00417.35
8.1.130.0080.00017.84
8.1.120.0030.00317.31
8.1.110.0000.00717.39
8.1.100.0000.00917.43
8.1.90.0040.00417.41
8.1.80.0000.00717.46
8.1.70.0030.00317.32
8.1.60.0030.00617.48
8.1.50.0000.00917.37
8.1.40.0090.00017.38
8.1.30.0000.00917.58
8.1.20.0000.00817.46
8.1.10.0000.00817.59
8.1.00.0080.00017.45
8.0.300.0050.00318.77
8.0.290.0000.00717.16
8.0.280.0030.00318.45
8.0.270.0070.00017.31
8.0.260.0030.00317.29
8.0.250.0000.00716.95
8.0.240.0080.00016.94
8.0.230.0040.00416.78
8.0.220.0070.00016.80
8.0.210.0110.00016.75
8.0.200.0060.00016.94
8.0.190.0000.00816.93
8.0.180.0040.00416.88
8.0.170.0000.00816.93
8.0.160.0000.00816.86
8.0.150.0070.00016.89
8.0.140.0040.00316.80
8.0.130.0000.00613.25
8.0.120.0050.00316.80
8.0.110.0070.00016.86
8.0.100.0000.00716.71
8.0.90.0000.00716.74
8.0.80.0070.00816.90
8.0.70.0040.00416.83
8.0.60.0000.00816.87
8.0.50.0030.00516.95
8.0.30.0140.00517.19
8.0.20.0150.00517.40
8.0.10.0000.00716.91
8.0.00.0070.01016.81
7.4.330.0050.00015.00
7.4.320.0030.00316.41
7.4.300.0000.00616.50
7.4.290.0030.00316.52
7.4.280.0000.00716.42
7.4.270.0070.00016.62
7.4.260.0030.00516.54
7.4.250.0050.00316.32
7.4.240.0050.00316.37
7.4.230.0070.00016.63
7.4.220.0070.01116.55
7.4.210.0060.01216.57
7.4.200.0000.00716.55
7.4.190.0070.00016.70
7.4.160.0150.00016.41
7.4.150.0090.00917.40
7.4.140.0140.00517.86
7.4.130.0050.01116.47
7.4.120.0060.01116.63
7.4.110.0150.00416.47
7.4.100.0160.00816.51
7.4.90.0060.00916.52
7.4.80.0090.01419.39
7.4.70.0080.00816.55
7.4.60.0140.00916.33
7.4.50.0000.00816.25
7.4.40.0100.00716.33
7.4.30.0080.00816.55
7.4.10.0040.01414.59
7.4.00.0080.00814.87
7.3.330.0030.00313.15
7.3.320.0000.00513.17
7.3.310.0000.00816.13
7.3.300.0080.00016.05
7.3.290.0030.01016.18
7.3.280.0070.01016.15
7.3.270.0060.01117.40
7.3.260.0110.00716.18
7.3.250.0060.01216.32
7.3.240.0060.01316.44
7.3.230.0100.00716.39
7.3.210.0100.00716.32
7.3.200.0060.01219.39
7.3.190.0030.01316.48
7.3.180.0090.00616.13
7.3.170.0060.00916.56
7.3.160.0110.00616.14
7.3.130.0090.00914.72
7.3.120.0100.00714.92
7.3.110.0130.00614.68
7.3.100.0090.00414.84
7.3.90.0070.01014.99
7.3.80.0090.00615.02
7.3.70.0060.00614.82
7.3.60.0090.00614.73
7.3.50.0000.01114.37
7.3.40.0000.01014.64
7.3.30.0120.00314.43
7.3.20.0090.00316.59
7.3.10.0070.00716.58
7.3.00.0070.00316.60
7.2.330.0080.00816.78
7.2.320.0080.01116.72
7.2.310.0040.01216.36
7.2.300.0060.00916.41
7.2.290.0120.00616.43
7.2.260.0040.01515.21
7.2.250.0140.00414.67
7.2.240.0080.00414.86
7.2.230.0070.01115.23
7.2.220.0070.01014.88
7.2.210.0090.00314.69
7.2.200.0060.01015.03
7.2.190.0060.00915.11
7.2.180.0070.00714.95
7.2.170.0030.01014.71
7.2.160.0080.00614.79
7.2.150.0030.01316.77
7.2.140.0090.00616.93
7.2.130.0030.01016.65
7.2.120.0070.01016.76
7.2.110.0060.00616.98
7.2.100.0000.01217.02
7.2.90.0080.00816.52
7.2.80.0100.00016.91
7.2.70.0120.00416.43
7.2.60.0040.00716.76
7.2.50.0000.01116.71
7.2.40.0100.00616.93
7.2.30.0070.00717.01
7.2.20.0060.00616.89
7.2.10.0030.01416.88
7.2.00.0020.01417.97
7.1.330.0000.01115.82
7.1.320.0030.00615.80
7.1.310.0000.01015.80
7.1.300.0100.00315.70
7.1.290.0080.00315.56
7.1.280.0040.00715.63
7.1.270.0070.00415.62
7.1.260.0070.01015.64
7.1.250.0090.00615.67
7.1.240.0000.01415.73
7.1.230.0060.00615.56
7.1.220.0060.00615.57
7.1.210.0000.01215.69
7.1.200.0060.00915.74
7.1.190.0100.00315.77
7.1.180.0030.00915.80
7.1.170.0040.00415.55
7.1.160.0060.00915.76
7.1.150.0130.00315.85
7.1.140.0040.01115.58
7.1.130.0000.00915.67
7.1.120.0100.00315.55
7.1.110.0090.00615.67
7.1.100.0080.00416.83
7.1.90.0030.01015.68
7.1.80.0060.00315.48
7.1.70.0020.00916.52
7.1.60.0080.01117.71
7.1.50.0120.00516.18
7.1.40.0060.01215.88
7.1.30.0060.00615.67
7.1.20.0070.00315.79
7.1.10.0060.00615.84
7.1.00.0030.04218.95
7.0.330.0080.00815.39
7.0.320.0030.00615.43
7.0.310.0080.00615.33
7.0.300.0040.00815.38
7.0.290.0090.00615.34
7.0.280.0050.00515.35
7.0.270.0030.00715.29
7.0.260.0000.01215.23
7.0.250.0100.00015.18
7.0.240.0030.01015.45
7.0.230.0090.00315.42
7.0.220.0100.00315.55
7.0.210.0090.00415.29
7.0.200.0030.00916.10
7.0.190.0060.01015.16
7.0.180.0030.01215.31
7.0.170.0000.01315.53
7.0.160.0080.00415.34
7.0.150.0030.00715.18
7.0.140.0080.03718.77
7.0.130.0070.00315.48
7.0.120.0060.00615.47
7.0.110.0060.00615.48
7.0.100.0070.00315.39
7.0.90.0330.04017.46
7.0.80.0340.03817.68
7.0.70.0350.04517.59
7.0.60.0270.02817.67
7.0.50.0350.03817.84
7.0.40.0090.04016.67
7.0.30.0080.04316.69
7.0.20.0050.04716.73
7.0.10.0120.03916.77
7.0.00.0030.02516.71
5.6.400.0060.01014.41
5.6.390.0090.00314.59
5.6.380.0090.00614.13
5.6.370.0060.00614.23
5.6.360.0040.00814.16
5.6.350.0000.01414.55
5.6.340.0040.01114.46
5.6.330.0000.01014.30
5.6.320.0040.01113.92
5.6.310.0070.00314.29
5.6.300.0120.00314.26
5.6.290.0040.01414.45
5.6.280.0050.03917.66
5.6.270.0040.00714.24
5.6.260.0030.01014.14
5.6.250.0030.01014.39
5.6.240.0050.03417.58
5.6.230.0090.03917.35
5.6.220.0030.04317.46
5.6.210.0060.04117.39
5.6.200.0050.04317.66
5.6.190.0080.04617.72
5.6.180.0080.04317.59
5.6.170.0020.04917.59
5.6.160.0140.03917.60
5.6.150.0100.04017.67
5.6.140.0100.04017.75
5.6.130.0100.04317.68
5.6.120.0080.04517.69
5.6.110.0120.03217.62
5.6.100.0080.02717.67
5.6.90.0080.04117.77
5.6.80.0050.03817.34
5.6.70.0030.04717.28
5.6.60.0030.04717.40
5.6.50.0130.03317.28
5.6.40.0050.03617.27
5.6.30.0090.04017.36
5.6.20.0150.02617.25
5.6.10.0050.04417.35
5.6.00.0080.02617.36
5.5.380.0080.03217.24
5.5.370.0070.04217.41
5.5.360.0120.03117.21
5.5.350.0130.04117.38
5.5.340.0050.04017.52
5.5.330.0070.03817.72
5.5.320.0100.03817.40
5.5.310.0110.03617.70
5.5.300.0080.04117.50
5.5.290.0060.04517.68
5.5.280.0090.02217.49
5.5.270.0120.03517.47
5.5.260.0070.04817.49
5.5.250.0050.02917.39
5.5.240.0110.03717.23
5.5.230.0050.04617.33
5.5.220.0030.04817.26
5.5.210.0080.03217.21
5.5.200.0050.04617.09
5.5.190.0020.03816.95
5.5.180.0060.02917.22
5.5.170.0090.00014.18
5.5.160.0080.02916.98
5.5.150.0110.03717.27
5.5.140.0070.04517.13
5.5.130.0070.04417.19
5.5.120.0070.03817.04
5.5.110.0050.04617.15
5.5.100.0020.04117.12
5.5.90.0070.04617.23
5.5.80.0070.04417.06
5.5.70.0030.03116.96
5.5.60.0140.03417.07
5.5.50.0130.02217.12
5.5.40.0080.04516.95
5.5.30.0020.04517.18
5.5.20.0100.03517.19
5.5.10.0020.03417.08
5.5.00.0080.04117.24
5.4.450.0030.04116.06
5.4.440.0040.04515.91
5.4.430.0040.04215.94
5.4.420.0060.04315.91
5.4.410.0070.02215.89
5.4.400.0050.03415.87
5.4.390.0050.02815.80
5.4.380.0080.03015.84
5.4.370.0000.04315.75
5.4.360.0020.04515.74
5.4.350.0130.02715.71
5.4.340.0080.02815.79
5.4.330.0000.00812.56
5.4.320.0070.03515.87
5.4.310.0060.04115.73
5.4.300.0080.02615.83
5.4.290.0060.04315.72
5.4.280.0020.05015.87
5.4.270.0070.04015.87
5.4.260.0060.04115.89
5.4.250.0050.04015.79
5.4.240.0050.04115.79
5.4.230.0070.03815.83
5.4.220.0080.04015.71
5.4.210.0060.04015.87
5.4.200.0020.03215.74
5.4.190.0030.03615.79
5.4.180.0030.02715.79
5.4.170.0050.03215.74
5.4.160.0070.04015.69
5.4.150.0050.04315.86
5.4.140.0100.03814.41
5.4.130.0050.03014.51
5.4.120.0040.03814.38
5.4.110.0030.03114.54
5.4.100.0080.03414.49
5.4.90.0040.04114.44
5.4.80.0030.04314.50
5.4.70.0100.03514.54
5.4.60.0070.04314.46
5.4.50.0090.03414.41
5.4.40.0050.04214.47
5.4.30.0050.04314.47
5.4.20.0030.03014.45
5.4.10.0030.03314.52
5.4.00.0070.04014.19
5.3.290.0090.03013.65
5.3.280.0050.03313.66
5.3.270.0090.04013.60
5.3.260.0080.04213.61
5.3.250.0060.03113.65
5.3.240.0060.04113.61
5.3.230.0110.04013.63
5.3.220.0090.03513.55
5.3.210.0070.03913.61
5.3.200.0040.03513.58
5.3.190.0060.03613.59
5.3.180.0070.04213.56
5.3.170.0100.02913.60
5.3.160.0110.03913.52
5.3.150.0100.02813.58
5.3.140.0050.04513.56
5.3.130.0090.04213.63
5.3.120.0070.04313.53
5.3.110.0030.02813.57
5.3.100.0090.03813.30
5.3.90.0100.03913.28
5.3.80.0060.02513.27
5.3.70.0080.03613.31
5.3.60.0060.02913.32
5.3.50.0090.03813.33
5.3.40.0090.03813.33
5.3.30.0080.03113.28
5.3.20.0110.03313.12
5.3.10.0110.03813.12
5.3.00.0080.03513.06
5.2.170.0070.05711.09
5.2.160.0030.06011.17
5.2.150.0100.06011.30
5.2.140.0070.02711.24
5.2.130.0070.05711.15
5.2.120.0070.06011.04
5.2.110.0030.06311.27
5.2.100.0000.06711.11
5.2.90.0030.05711.16
5.2.80.0170.05011.04
5.2.70.0070.05711.21
5.2.60.0070.03011.09
5.2.50.0100.05710.98
5.2.40.0130.05711.05
5.2.30.0030.04710.89
5.2.20.0070.05711.08
5.2.10.0070.05710.80
5.2.00.0130.05310.84
5.1.60.0100.04310.11
5.1.50.0070.04710.10
5.1.40.0000.05710.08
5.1.30.0030.05310.43
5.1.20.0100.03710.44
5.1.10.0030.0579.95
5.1.00.0130.02310.16
5.0.50.0030.0438.70
5.0.40.0030.0208.50
5.0.30.0030.0608.30
5.0.20.0000.0308.32
5.0.10.0030.0378.21
5.0.00.0000.0608.31
4.4.90.0000.0207.30
4.4.80.0030.0337.30
4.4.70.0000.0307.30
4.4.60.0030.0377.30
4.4.50.0000.0377.30
4.4.40.0000.0377.30
4.4.30.0030.0377.30
4.4.20.0030.0307.30
4.4.10.0100.0277.30
4.4.00.0000.0377.30
4.3.110.0000.0177.30
4.3.100.0000.0207.30
4.3.90.0100.0277.30
4.3.80.0000.0537.30
4.3.70.0000.0377.30
4.3.60.0000.0377.30
4.3.50.0000.0277.30
4.3.40.0000.0407.30
4.3.30.0030.0307.30
4.3.20.0000.0377.30
4.3.10.0000.0407.30
4.3.00.0030.0277.30

preferences:
40.16 ms | 401 KiB | 5 Q