3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Statystyka { private $stat_ope; public function getStatOpe() { return $this->stat_ope; } public function setStatOpe($stat_ope) { $this->stat_ope = $stat_ope; } } class Rownanie { private $operator; public function changeValueOperator(Statystyka $statystyka) { $this->operator++; $statystyka->setStatOpe($statystyka->getStatOpe() + 1); return $this; } public function getOperator() { return $this->operator; } } $ob = new Rownanie(); $sta = new Statystyka(); echo $ob->getOperator(); echo $ob->changeValueOperator($sta)->getOperator(); echo $ob->changeValueOperator($sta)->getOperator(); echo $ob->changeValueOperator($sta)->getOperator(); echo $ob->changeValueOperator($sta)->getOperator(); echo $ob->changeValueOperator($sta)->getOperator(); echo $ob->changeValueOperator($sta)->getOperator(); echo $sta->getStatOpe();

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.0090.00917.52
8.5.20.0100.00820.27
8.5.10.0100.00920.02
8.5.00.0130.00719.97
8.4.180.0100.01124.00
8.4.170.0150.00619.65
8.4.160.0130.01022.23
8.4.150.0050.00716.91
8.4.140.0130.00717.50
8.4.130.0120.00717.71
8.4.120.0060.00220.83
8.4.110.0070.00222.52
8.4.100.0130.00817.71
8.4.90.0130.00818.84
8.4.80.0090.00917.70
8.4.70.0040.00418.02
8.4.60.0110.01018.90
8.4.50.0120.00717.75
8.4.40.0060.01220.68
8.4.30.0160.00317.56
8.4.20.0100.01017.90
8.4.10.0040.00417.65
8.3.300.0110.01020.41
8.3.290.0100.01020.80
8.3.280.0120.00820.07
8.3.270.0110.00916.52
8.3.260.0120.00816.62
8.3.250.0110.00818.68
8.3.240.0130.00616.30
8.3.230.0130.00716.62
8.3.220.0100.00917.29
8.3.210.0100.00816.68
8.3.200.0060.00216.65
8.3.190.0090.01017.28
8.3.180.0050.00316.34
8.3.170.0070.01117.30
8.3.160.0090.00016.35
8.3.150.0120.00320.84
8.3.140.0060.00316.79
8.3.130.0060.00318.43
8.3.120.0120.00418.93
8.3.110.0060.00320.94
8.3.100.0060.00324.06
8.3.90.0000.00826.77
8.3.80.0050.00516.50
8.3.70.0070.00716.25
8.3.60.0060.01218.33
8.3.50.0120.00821.97
8.3.40.0090.00918.83
8.3.30.0110.00418.79
8.3.20.0040.00420.38
8.3.10.0080.00021.88
8.3.00.0040.00420.93
8.2.300.0110.00821.90
8.2.290.0130.00720.57
8.2.280.0150.00518.56
8.2.270.0070.01317.17
8.2.260.0140.00319.00
8.2.250.0070.00716.66
8.2.240.0070.01017.05
8.2.230.0100.00622.58
8.2.220.0060.00337.54
8.2.210.0040.00426.77
8.2.200.0040.00816.60
8.2.190.0150.00018.23
8.2.180.0180.00416.88
8.2.170.0170.00322.96
8.2.160.0040.01119.21
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00419.76
8.2.120.0050.00326.35
8.2.110.0060.00322.16
8.2.100.0060.00618.22
8.2.90.0080.00019.17
8.2.80.0040.00417.97
8.2.70.0000.00917.75
8.2.60.0060.00317.93
8.2.50.0040.00418.10
8.2.40.0000.00820.59
8.2.30.0070.00020.64
8.2.20.0030.00617.76
8.2.10.0000.00717.95
8.2.00.0070.00017.96
8.1.340.0100.01019.46
8.1.330.0130.00621.99
8.1.320.0130.00616.16
8.1.310.0050.00316.91
8.1.300.0090.00916.16
8.1.290.0050.00518.88
8.1.280.0140.00025.92
8.1.270.0000.00823.97
8.1.260.0040.00428.09
8.1.250.0000.00828.09
8.1.240.0060.00323.92
8.1.230.0040.00818.91
8.1.220.0040.00417.76
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0040.00417.25
8.1.180.0000.00818.10
8.1.170.0040.00418.46
8.1.160.0000.00720.92
8.1.150.0080.00018.76
8.1.140.0040.00419.41
8.1.130.0040.00417.67
8.1.120.0070.00017.36
8.1.110.0000.00717.29
8.1.100.0050.00317.30
8.1.90.0030.00517.40
8.1.80.0040.00417.40
8.1.70.0050.00217.27
8.1.60.0040.00417.53
8.1.50.0060.00317.52
8.1.40.0060.00317.44
8.1.30.0050.00317.72
8.1.20.0000.00817.65
8.1.10.0020.00517.46
8.1.00.0040.00417.54
8.0.300.0040.00418.77
8.0.290.0050.00216.63
8.0.280.0070.00018.37
8.0.270.0090.00016.82
8.0.260.0000.00617.23
8.0.250.0050.00316.95
8.0.240.0000.00717.04
8.0.230.0030.00316.94
8.0.220.0030.00316.95
8.0.210.0030.00516.97
8.0.200.0040.00416.84
8.0.190.0060.00417.01
8.0.180.0050.00316.84
8.0.170.0030.00516.91
8.0.160.0040.00316.97
8.0.150.0030.00316.87
8.0.140.0070.00016.83
8.0.130.0000.00513.29
8.0.120.0020.00516.80
8.0.110.0020.00516.92
8.0.100.0000.00716.81
8.0.90.0070.00016.71
8.0.80.0070.00716.89
8.0.70.0000.00816.75
8.0.60.0070.00016.82
8.0.50.0080.00017.01
8.0.30.0080.01117.01
8.0.20.0100.01017.40
8.0.10.0050.00217.03
8.0.00.0130.00716.70
7.4.330.0020.00215.08
7.4.320.0060.00016.46
7.4.300.0000.00616.60
7.4.290.0030.00316.59
7.4.280.0040.00416.58
7.4.270.0030.00316.52
7.4.260.0000.00716.51
7.4.250.0040.00416.48
7.4.240.0040.00416.51
7.4.230.0030.00316.64
7.4.220.0160.01016.40
7.4.210.0100.01316.56
7.4.200.0000.00816.43
7.4.160.0100.00616.44
7.4.150.0100.00717.40
7.4.140.0220.01717.86
7.4.130.0100.01116.55
7.4.120.0140.00516.48
7.4.110.0070.01016.34
7.4.100.0120.00616.44
7.4.90.0070.01016.54
7.4.80.0120.00619.39
7.4.70.0120.00616.49
7.4.60.0080.00816.61
7.4.50.0110.00016.18
7.4.40.0100.01416.48
7.4.30.0120.00916.47
7.4.00.0030.01015.02
7.3.330.0030.00313.24
7.3.320.0000.00713.27
7.3.310.0000.00716.34
7.3.300.0040.00416.36
7.3.290.0070.00916.26
7.3.280.0090.00716.21
7.3.270.0070.01017.40
7.3.260.0120.00616.39
7.3.250.0120.00716.33
7.3.240.0080.00916.33
7.3.230.0090.00616.39
7.3.210.0150.00716.41
7.3.200.0150.00416.33
7.3.190.0110.01016.42
7.3.180.0030.01216.24
7.3.170.0060.01216.36
7.3.160.0100.00716.23
7.2.330.0110.00716.71
7.2.320.0130.00316.86
7.2.310.0140.01016.93
7.2.300.0110.00616.71
7.2.290.0110.00616.91
7.2.60.0060.01016.86
7.2.00.0120.00319.53
7.1.200.0030.01015.71
7.1.100.0080.00317.69
7.1.70.0030.00316.96
7.1.60.0110.01419.48
7.1.00.0030.07722.40
7.0.200.0030.00316.54
7.0.60.0070.07721.73
7.0.50.0030.05017.77
7.0.40.0270.05320.19
7.0.30.0270.05020.12
7.0.20.0470.07320.14
7.0.10.0330.05720.13
7.0.00.0200.05720.43
5.6.280.0000.07721.07
5.6.210.0030.04020.62
5.6.200.0000.04718.15
5.6.190.0200.06320.68
5.6.180.0230.05320.60
5.6.170.0270.06020.60
5.6.160.0270.06020.61
5.6.150.0270.06320.39
5.6.140.0130.06720.58
5.6.130.0400.06720.39
5.6.120.0370.06020.41
5.6.110.0430.06320.36
5.6.100.0330.07320.39
5.6.90.0470.06720.25
5.6.80.0130.06019.70
5.6.70.0270.05319.81
5.6.60.0100.06319.71
5.6.50.0300.06319.75
5.6.40.0100.05719.75
5.6.30.0230.05319.76
5.6.20.0130.05719.77
5.6.10.0170.05319.93
5.6.00.0230.05019.62
5.5.350.0100.08020.36
5.5.340.0070.08317.96
5.5.330.0270.06020.25
5.5.320.0270.04720.38
5.5.310.0100.06720.40
5.5.300.0170.07020.11
5.5.290.0470.04720.24
5.5.280.0270.07320.23
5.5.270.0500.05720.09
5.5.260.0570.07320.11
5.5.250.0330.05019.96
5.5.240.0300.06019.52
5.5.230.0300.04719.48
5.5.220.0130.06019.57
5.5.210.0200.05319.48
5.5.200.0170.05319.57
5.5.190.0130.06719.58
5.5.180.0170.05719.46
5.5.160.0200.05019.54
5.5.150.0300.04719.56
5.5.140.0170.05719.55
5.5.130.0270.04719.51
5.5.120.3730.06019.34
5.5.110.0300.06019.35
5.5.100.0270.06319.26
5.5.90.0300.05719.32
5.5.80.0200.07719.32
5.5.70.0270.04719.40
5.5.60.0170.05319.47
5.5.50.0230.06719.45
5.5.40.0230.06019.43
5.5.30.0170.06319.46
5.5.20.0030.07319.41
5.5.10.0200.06019.35
5.5.00.0230.06019.37

preferences:
113.86 ms | 1603 KiB | 5 Q