3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass{ public function setProperty1($property1){ $this->property1 = $property1; return $this; } public function setProperty2($property2){ $this->property2 = $property2; return $this; } public function setProperty3($property3){ $this->property3 = $property3; return $this; } public function setProperty4($property4){ $this->property4 = $property4; return $this; } public function setProperty5($property5){ $this->property5 = $property5; return $this; } } $obj = new MyClass(); $obj->setProperty1("p1"); $obj->setProperty2(""); $obj->setProperty3(null); echo json_encode($obj);

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.10.0110.00916.97
8.5.00.0140.00819.92
8.4.150.0020.00014.05
8.4.140.0140.00717.68
8.4.130.0120.00918.06
8.4.120.0110.00920.52
8.4.110.0040.00622.67
8.4.100.0080.01117.94
8.4.90.0120.01018.74
8.4.80.0110.00917.95
8.4.70.0080.00917.85
8.4.60.0140.00618.82
8.4.50.0050.00723.87
8.4.40.0130.00619.62
8.4.30.0160.00322.46
8.4.20.0110.00420.79
8.4.10.0030.00719.50
8.3.280.0110.00918.36
8.3.270.0130.00716.43
8.3.260.0040.01216.64
8.3.250.0120.00818.88
8.3.240.0120.00816.73
8.3.230.0110.00516.55
8.3.220.0110.00817.34
8.3.210.0110.00318.41
8.3.200.0050.00316.70
8.3.190.0080.01217.16
8.3.180.0110.00718.36
8.3.170.0130.00617.20
8.3.160.0120.00616.95
8.3.150.0090.00920.51
8.3.140.0030.00617.07
8.3.130.0070.01418.66
8.3.120.0120.00616.54
8.3.110.0000.00916.68
8.3.100.0040.00420.20
8.3.90.0080.00018.30
8.3.80.0090.00018.68
8.3.70.0160.00616.88
8.3.60.0040.01118.56
8.3.50.0120.00817.49
8.3.40.0150.00418.84
8.3.30.0140.00318.84
8.3.20.0050.00321.85
8.3.10.0080.00021.92
8.3.00.0040.00423.56
8.2.290.0070.00420.41
8.2.280.0100.00818.68
8.2.270.0130.00617.46
8.2.260.0070.00316.74
8.2.250.0080.01120.42
8.2.240.0110.00716.98
8.2.230.0080.00020.94
8.2.220.0100.00024.06
8.2.210.0180.00026.77
8.2.200.0070.00418.54
8.2.190.0000.01516.63
8.2.180.0100.01016.63
8.2.170.0100.00622.96
8.2.160.0070.01020.48
8.2.150.0030.00624.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0070.00026.16
8.2.110.0030.00622.06
8.2.100.0030.00917.49
8.2.90.0080.00022.16
8.2.80.0040.00418.04
8.2.70.0080.00018.03
8.2.60.0000.00818.03
8.2.50.0030.00618.10
8.2.40.0000.00720.51
8.2.30.0040.00419.16
8.2.20.0050.00317.94
8.2.10.0060.00319.21
8.2.00.0050.00219.16
8.1.330.0130.00821.88
8.1.320.0090.01016.04
8.1.310.0060.00320.19
8.1.300.0060.00918.52
8.1.290.0000.00918.88
8.1.280.0150.00425.92
8.1.270.0050.00323.79
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0070.00422.42
8.1.230.0030.00720.87
8.1.220.0000.00817.74
8.1.210.0000.00918.77
8.1.200.0090.00317.35
8.1.190.0030.00517.35
8.1.180.0000.00918.10
8.1.170.0000.00818.37
8.1.160.0000.00718.82
8.1.150.0080.00018.80
8.1.140.0050.00218.72
8.1.130.0030.00320.27
8.1.120.0070.00017.30
8.1.110.0050.00317.25
8.1.100.0040.00417.41
8.1.90.0070.00017.28
8.1.80.0020.00517.46
8.1.70.0050.00217.44
8.1.60.0040.00417.51
8.1.50.0000.00717.57
8.1.40.0060.00317.41
8.1.30.0080.00417.63
8.1.20.0040.00417.52
8.1.10.0040.00417.52
8.1.00.0040.00417.39
8.0.300.0070.00019.86
8.0.290.0070.00016.63
8.0.280.0030.00518.49
8.0.270.0070.00017.25
8.0.260.0040.00418.46
8.0.250.0030.00316.83
8.0.240.0000.01017.00
8.0.230.0030.00516.76
8.0.220.0090.00016.77
8.0.210.0050.00216.72
8.0.200.0030.00316.91
8.0.190.0040.00416.93
8.0.180.0040.00416.75
8.0.170.0090.00016.74
8.0.160.0000.00716.80
8.0.150.0000.00716.73
8.0.140.0040.00416.70
8.0.130.0000.00613.22
8.0.120.0000.00816.77
8.0.110.0000.00716.72
8.0.100.0070.00016.88
8.0.90.0070.00016.70
8.0.80.0060.01616.89
8.0.70.0030.00516.66
8.0.60.0030.00416.71
8.0.50.0000.00816.77
8.0.30.0070.01217.00
8.0.20.0120.01216.94
8.0.10.0030.00316.98
8.0.00.0110.00816.73
7.4.330.0050.00015.55
7.4.320.0030.00316.60
7.4.300.0040.00416.57
7.4.290.0000.00716.59
7.4.280.0000.00816.66
7.4.270.0070.00016.47
7.4.260.0040.00416.60
7.4.250.0040.00416.48
7.4.240.0050.00216.50
7.4.230.0030.00316.63
7.4.220.0060.00316.70
7.4.210.0060.01116.56
7.4.200.0030.00316.60
7.4.160.0100.01116.51
7.4.130.0060.01016.53
7.4.120.0120.00416.38
7.4.110.0100.01016.46
7.4.100.0120.00316.34
7.4.90.0070.01016.38
7.4.80.0100.01019.39
7.4.70.0070.01116.38
7.4.60.0070.01016.53
7.4.50.0030.01116.58
7.4.40.0090.00916.39
7.4.00.0050.01214.98
7.3.330.0020.00213.10
7.3.320.0000.00513.10
7.3.310.0030.00416.28
7.3.300.0030.00316.07
7.3.290.0000.00716.20
7.3.280.0150.00616.23
7.3.260.0100.00916.31
7.3.240.0110.00616.28
7.3.230.0030.01516.33
7.3.210.0170.00416.42
7.3.200.0120.00316.29
7.3.190.0030.01316.30
7.3.180.0060.01016.40
7.3.170.0080.00816.29
7.3.160.0060.01116.48
7.3.60.0100.01014.23
7.3.50.0080.00414.73
7.3.40.0060.00614.46
7.3.30.0070.00714.52
7.3.20.0070.00616.22
7.3.10.0100.00316.32
7.3.00.0120.00916.62
7.2.330.0110.00916.39
7.2.320.0110.01116.37
7.2.310.0070.01016.63
7.2.300.0070.01016.73
7.2.290.0130.00316.49
7.2.190.0030.01014.97
7.2.180.0060.00715.06
7.2.170.0060.00914.86
7.2.160.0000.01114.93
7.2.150.0040.01016.57
7.2.140.0080.00416.68
7.2.130.0070.00716.86
7.2.120.0140.00016.96
7.2.110.0110.00016.58
7.2.100.0080.01116.79
7.2.90.0070.00716.66
7.2.80.0040.00816.76
7.2.70.0040.01116.63
7.2.60.0120.00316.91
7.2.50.0100.00316.88
7.2.40.0120.00316.84
7.2.30.0040.01416.90
7.2.20.0040.00916.71
7.2.10.0090.00316.77
7.2.00.0040.00716.80
7.1.300.0070.00715.48
7.1.290.0090.00615.71
7.1.280.0080.00515.71
7.1.270.0040.00815.56
7.1.260.0030.00715.60
7.1.250.0100.00315.57

preferences:
41.08 ms | 403 KiB | 5 Q