3v4l.org

run code in 300+ PHP versions simultaneously
<?php class myClass { private $private_var; public $public_var = 'Foobar'; public function setPrivate($value) { $this->private_var = $value; } public function __debugInfo() { return json_decode(json_encode($this), true); } } $class = new myClass(); $class->setPrivate("Baz"); print_r($class);

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.4.10.0130.00717.49
8.3.140.0150.00316.66
8.3.130.0050.00516.79
8.3.120.0030.00618.81
8.3.110.0090.00020.94
8.3.100.0030.00624.06
8.3.90.0040.01126.77
8.3.80.0090.00017.97
8.3.70.0110.00718.30
8.3.60.0060.01518.27
8.3.50.0090.00917.53
8.3.40.0000.01518.50
8.3.30.0090.00618.67
8.3.20.0080.00020.25
8.3.10.0030.00623.59
8.3.00.0050.00319.79
8.2.250.0050.00516.25
8.2.240.0040.00417.18
8.2.230.0040.00422.58
8.2.220.0080.00037.54
8.2.210.0080.00026.77
8.2.200.0040.00416.50
8.2.190.0070.01116.58
8.2.180.0120.00316.75
8.2.170.0080.00822.96
8.2.160.0030.01022.26
8.2.150.0000.00825.66
8.2.140.0030.00724.66
8.2.130.0000.00726.16
8.2.120.0070.00020.76
8.2.110.0030.00622.11
8.2.100.0120.00317.66
8.2.90.0030.00618.09
8.2.80.0040.00420.27
8.2.70.0040.00417.63
8.2.60.0000.00817.80
8.2.50.0030.00618.07
8.2.40.0000.00818.10
8.2.30.0040.00417.96
8.2.20.0040.00417.99
8.2.10.0080.00017.91
8.2.00.0040.00418.13
8.1.300.0060.00318.24
8.1.290.0060.00330.84
8.1.280.0100.01025.92
8.1.270.0000.00824.66
8.1.260.0030.00626.35
8.1.250.0070.01128.09
8.1.240.0040.00422.41
8.1.230.0120.00021.02
8.1.220.0030.00617.74
8.1.210.0050.00318.77
8.1.200.0040.00417.23
8.1.190.0000.00917.11
8.1.180.0000.00818.10
8.1.170.0030.00618.66
8.1.160.0070.00018.75
8.1.150.0000.00720.18
8.1.140.0080.00017.57
8.1.130.0000.00719.01
8.1.120.0060.00317.40
8.1.110.0050.00317.39
8.1.100.0000.00817.32
8.1.90.0030.00517.44
8.1.80.0040.00417.30
8.1.70.0000.00717.33
8.1.60.0060.00317.44
8.1.50.0040.00417.54
8.1.40.0040.00417.55
8.1.30.0000.00817.64
8.1.20.0090.00317.55
8.1.10.0050.00217.44
8.1.00.0040.00417.32
8.0.300.0000.00720.18
8.0.290.0060.00316.75
8.0.280.0000.00718.38
8.0.270.0000.00716.80
8.0.260.0030.00316.87
8.0.250.0000.00716.91
8.0.240.0040.00416.94
8.0.230.0070.00016.77
8.0.220.0030.00316.82
8.0.210.0040.00416.72
8.0.200.0040.00416.89
8.0.190.0040.00416.77
8.0.180.0050.00316.85
8.0.170.0050.00316.76
8.0.160.0040.00416.88
8.0.150.0040.00416.63
8.0.140.0060.00316.80
8.0.130.0000.00513.23
8.0.120.0060.00316.82
8.0.110.0080.00016.80
8.0.100.0040.00416.63
8.0.90.0000.00716.87
8.0.80.0030.01316.80
8.0.70.0040.00416.79
8.0.60.0050.00316.84
8.0.50.0040.00416.83
8.0.30.0060.00917.04
8.0.20.0100.01217.40
8.0.10.0030.00416.99
8.0.00.0110.00716.66
7.4.330.0050.00015.55
7.4.320.0000.00616.51
7.4.300.0000.00616.56
7.4.290.0000.00716.56
7.4.280.0060.00316.65
7.4.270.0000.00816.54
7.4.260.0050.00316.59
7.4.250.0030.00316.49
7.4.240.0030.00316.52
7.4.230.0000.00716.63
7.4.220.0070.00016.61
7.4.210.0090.00716.55
7.4.200.0080.00016.42
7.4.160.0040.01116.47
7.4.150.0090.00917.40
7.4.140.0090.00917.86
7.4.130.0100.00716.56
7.4.120.0080.01216.49
7.4.110.0180.00016.30
7.4.100.0150.01016.51
7.4.90.0090.00916.59
7.4.80.0100.00619.39
7.4.70.0090.01016.62
7.4.60.0090.00616.51
7.4.50.0110.00716.33
7.4.40.0090.01216.55
7.4.00.0120.00014.77
7.3.330.0000.00513.28
7.3.320.0040.00413.27
7.3.310.0000.00716.35
7.3.300.0070.00016.29
7.3.290.0080.00016.14
7.3.280.0090.00816.21
7.3.270.0110.00617.40
7.3.260.0100.01016.45
7.3.250.0100.00816.24
7.3.240.0080.01016.45
7.3.230.0130.00416.37
7.3.210.0120.00616.18
7.3.200.0110.00716.34
7.3.190.0070.01016.44
7.3.180.0120.00316.07
7.3.170.0090.00916.18
7.3.160.0060.01016.30
7.2.330.0090.00916.31
7.2.320.0030.01416.45
7.2.310.0130.00316.65
7.2.300.0060.01316.46
7.2.290.0050.01116.70
7.2.60.0030.00916.57
7.2.20.0150.01317.94
7.2.10.0160.01017.79
7.2.00.0150.00717.94
7.1.200.0000.00815.54
7.1.140.0120.01216.56
7.1.130.0130.01016.91
7.1.120.0140.00716.62
7.1.110.0150.00715.97
7.1.100.0120.01215.83
7.1.90.0190.00916.02
7.1.80.0170.00716.07
7.1.70.0170.01315.51
7.1.60.0280.01333.19
7.1.50.0320.01032.70
7.1.40.0210.01732.62
7.1.30.0330.01932.68
7.1.20.0330.00432.63
7.1.10.0100.01314.83
7.1.00.0140.00914.82

preferences:
30.68 ms | 403 KiB | 5 Q