3v4l.org

run code in 300+ PHP versions simultaneously
<?php class weird { var $myvar; var $other; var $blee = 'bleeblee'; var $bla; function __construct() { $myvar = 'other'; ${'myvar'} = 'blee'; ${'$myvar'} = 'bla'; $this->myvar = "A"; $this->$myvar = "B"; $this->${'myvar'} = "C"; $this->${'$myvar'} = "D"; echo 'this->myvar: '.$this->myvar."\n"; echo 'this->$myvar: '.$this->$myvar."\n"; echo 'this->${\'myvar\'}: '.$this->${'myvar'}."\n"; echo 'this->${\'$myvar\'}: '.$this->${'$myvar'}."\n"; echo 'this->$$$$$$$myvar: '.$this->$$myvar."\n"; echo 'this->$$$$$$${\'$$$myvar\'}: ' . $this->$$$$$$${'$$$myvar'}."\n"; } } $obj = new weird;

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.0000.01416.63
8.3.50.0100.01316.38
8.3.40.0110.00418.65
8.3.30.0040.01118.71
8.3.20.0070.00020.18
8.3.10.0040.00423.61
8.3.00.0040.00423.56
8.2.180.0120.00918.29
8.2.170.0090.00622.96
8.2.160.0140.00320.46
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0000.00819.64
8.2.120.0040.00426.35
8.2.110.0110.00022.07
8.2.100.0040.00817.80
8.2.90.0040.00419.22
8.2.80.0080.00017.97
8.2.70.0030.00617.38
8.2.60.0080.00018.04
8.2.50.0040.00418.07
8.2.40.0070.00020.55
8.2.30.0000.00819.52
8.2.20.0000.00717.83
8.2.10.0060.00318.10
8.2.00.0000.00818.08
8.1.280.0100.00725.92
8.1.270.0110.00723.84
8.1.260.0040.00428.09
8.1.250.0000.00828.09
8.1.240.0120.00020.82
8.1.230.0110.00019.03
8.1.220.0050.00317.79
8.1.210.0030.00518.77
8.1.200.0090.00017.35
8.1.190.0080.00017.36
8.1.180.0000.00818.10
8.1.170.0080.00018.46
8.1.160.0070.00020.66
8.1.150.0040.00418.89
8.1.140.0090.00319.51
8.1.130.0070.00017.72
8.1.120.0050.00317.50
8.1.110.0040.00417.52
8.1.100.0020.00517.45
8.1.90.0040.00417.48
8.1.80.0000.00817.37
8.1.70.0000.00817.48
8.1.60.0040.00417.63
8.1.50.0060.00317.47
8.1.40.0030.00517.58
8.1.30.0040.00417.69
8.1.20.0040.00417.68
8.1.10.0000.00917.51
8.1.00.0000.00817.60
8.0.300.0040.00418.77
8.0.290.0050.00316.63
8.0.280.0020.00518.45
8.0.270.0070.00017.28
8.0.260.0060.00017.20
8.0.250.0030.00317.02
8.0.240.0030.00317.07
8.0.230.0040.00417.05
8.0.220.0000.00716.96
8.0.210.0000.00716.96
8.0.200.0000.00617.05
8.0.190.0040.00416.91
8.0.180.0000.00916.92
8.0.170.0040.00416.99
8.0.160.0040.00417.08
8.0.150.0020.00516.96
8.0.140.0040.00416.84
8.0.130.0000.00613.34
8.0.120.0000.00816.96
8.0.110.0040.00416.94
8.0.100.0000.00816.95
8.0.90.0000.00816.96
8.0.80.0120.00616.90
8.0.70.0000.00816.81
8.0.60.0030.00517.02
8.0.50.0000.00716.86
8.0.30.0130.00517.18
8.0.20.0130.00617.40
8.0.10.0040.00417.12
8.0.00.0110.00816.81
7.4.330.0030.00316.67
7.4.320.0030.00316.65
7.4.300.0000.00716.47
7.4.290.0000.00716.63
7.4.280.0000.00916.54
7.4.270.0000.00716.42
7.4.260.0040.00416.50
7.4.250.0060.00316.57
7.4.240.0030.00316.54
7.4.230.0030.00316.68
7.4.220.0070.01316.57
7.4.210.0100.00716.43
7.4.200.0070.00016.51
7.4.160.0120.00316.53
7.4.150.0130.00717.40
7.4.140.0110.01017.86
7.4.130.0080.01016.48
7.4.120.0140.00616.52
7.4.110.0030.01716.64
7.4.100.0130.00616.71
7.4.90.0110.00716.84
7.4.80.0120.00719.39
7.4.70.0090.00816.47
7.4.60.0100.00616.65
7.4.50.0100.00716.37
7.4.40.0090.00716.58
7.4.30.0120.01216.68
7.4.00.0080.00814.89
7.3.330.0020.00213.39
7.3.320.0000.00513.31
7.3.310.0040.00416.31
7.3.300.0040.00416.44
7.3.290.0060.01116.41
7.3.280.0120.00616.43
7.3.270.0120.00617.40
7.3.260.0000.01816.44
7.3.250.0070.01116.53
7.3.240.0120.01216.52
7.3.230.0130.00316.39
7.3.210.0080.00816.60
7.3.200.0030.02019.39
7.3.190.0100.01016.55
7.3.180.0150.00016.52
7.3.170.0130.00316.59
7.3.160.0070.01016.58
7.3.10.0080.00816.85
7.3.00.0030.01016.59
7.2.330.0040.01516.71
7.2.320.0140.00316.71
7.2.310.0100.00616.90
7.2.300.0110.01516.89
7.2.290.0070.01016.71
7.2.130.0030.01317.07
7.2.120.0030.01016.93
7.2.110.0070.00716.96
7.2.100.0040.00716.97
7.2.90.0100.00616.98
7.2.80.0070.00316.91
7.2.70.0060.01016.63
7.2.60.0070.00817.07
7.2.50.0110.00416.85
7.2.40.0100.00316.93
7.2.30.0000.01517.12
7.2.20.0120.00616.99
7.2.10.0100.00316.80
7.2.00.0070.00818.14
7.1.250.0070.00715.82
7.1.200.0070.00715.77
7.1.100.0030.01317.74
7.1.70.0030.01216.91
7.1.60.0160.00919.27
7.1.50.0070.01417.04
7.1.00.0030.07722.25
7.0.200.0030.00716.92
7.0.60.0130.03321.77
7.0.50.0100.07717.89
7.0.40.0070.04720.31
7.0.30.0270.06320.30
7.0.20.0300.05320.06
7.0.10.0070.09020.12
7.0.00.0130.07720.21
5.6.280.0070.06021.09
5.6.210.0100.06720.63
5.6.200.0000.04318.18
5.6.190.0070.07020.50
5.6.180.0370.04020.41
5.6.170.0200.04320.54
5.6.160.0070.06320.47
5.6.150.0070.07318.16
5.6.140.0100.07718.25
5.6.130.0030.04018.18
5.6.120.0170.08021.01
5.6.110.0030.07720.99
5.6.100.0130.07321.04
5.6.90.0030.09020.88
5.6.80.0070.07020.41
5.5.350.0100.04720.45
5.5.340.0070.04017.99
5.5.330.0030.04720.57
5.5.320.0470.05320.27
5.5.310.0470.05720.39
5.5.300.0070.07717.98
5.5.290.0070.05317.98
5.5.280.0070.06020.88
5.5.270.0300.04020.66
5.5.260.0100.07320.78
5.5.250.0130.06320.68
5.5.240.0070.04320.27

preferences:
53.21 ms | 401 KiB | 5 Q