3v4l.org

run code in 300+ PHP versions simultaneously
<?php class weird { var $myvar; function __construct() { $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"; } } ?>

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.0110.00416.63
8.3.50.0110.00821.07
8.3.40.0070.01018.77
8.3.30.0030.01218.54
8.3.20.0040.00420.33
8.3.10.0080.00023.57
8.3.00.0080.00023.54
8.2.180.0070.01116.32
8.2.170.0110.00722.96
8.2.160.0040.01120.38
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0030.00519.70
8.2.120.0080.00026.35
8.2.110.0030.00622.11
8.2.100.0070.00317.68
8.2.90.0080.00019.09
8.2.80.0040.00417.97
8.2.70.0060.00317.50
8.2.60.0040.00417.80
8.2.50.0000.00819.07
8.2.40.0040.00420.47
8.2.30.0030.00619.30
8.2.20.0000.00717.64
8.2.10.0020.00517.90
8.2.00.0000.00717.94
8.1.280.0070.01025.92
8.1.270.0100.01023.79
8.1.260.0030.00728.09
8.1.250.0030.00528.09
8.1.240.0040.00422.29
8.1.230.0070.00419.29
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0080.00017.10
8.1.190.0080.00017.11
8.1.180.0060.00318.10
8.1.170.0000.00818.54
8.1.160.0050.00320.67
8.1.150.0070.00018.78
8.1.140.0000.00819.48
8.1.130.0030.00317.61
8.1.120.0040.00417.36
8.1.110.0040.00417.32
8.1.100.0050.00317.27
8.1.90.0040.00417.39
8.1.80.0050.00317.42
8.1.70.0000.00717.22
8.1.60.0080.00017.50
8.1.50.0040.00417.48
8.1.40.0000.00817.46
8.1.30.0060.00317.57
8.1.20.0030.00617.58
8.1.10.0000.00717.43
8.1.00.0020.00517.36
8.0.300.0080.00018.77
8.0.290.0000.00716.58
8.0.280.0000.00718.41
8.0.270.0030.00317.22
8.0.260.0030.00317.21
8.0.250.0030.00316.85
8.0.240.0030.00316.81
8.0.230.0030.00316.88
8.0.220.0000.00716.83
8.0.210.0000.00816.78
8.0.200.0000.00716.84
8.0.190.0030.00616.82
8.0.180.0040.00416.78
8.0.170.0000.00916.73
8.0.160.0040.00416.79
8.0.150.0030.00316.61
8.0.140.0040.00316.65
8.0.130.0030.00313.22
8.0.120.0060.00316.73
8.0.110.0000.00716.78
8.0.100.0040.00416.91
8.0.90.0070.00016.86
8.0.80.0070.01116.79
8.0.70.0070.00016.67
8.0.60.0040.00416.59
8.0.50.0070.00016.91
8.0.30.0100.00616.93
8.0.20.0120.00817.40
8.0.10.0040.00416.98
8.0.00.0060.01116.63
7.4.330.0000.00516.70
7.4.320.0060.00016.48
7.4.300.0030.00516.51
7.4.290.0040.00416.51
7.4.280.0030.00616.31
7.4.270.0030.00316.48
7.4.260.0030.00316.44
7.4.250.0070.00016.46
7.4.240.0070.00016.47
7.4.230.0030.00316.61
7.4.220.0100.00916.43
7.4.210.0130.00016.57
7.4.200.0030.00316.30
7.4.160.0070.01416.34
7.4.150.0100.01017.40
7.4.140.0130.00917.86
7.4.130.0170.00616.39
7.4.120.0130.00916.54
7.4.110.0100.00716.39
7.4.100.0060.01016.33
7.4.90.0100.00716.28
7.4.80.0170.00019.39
7.4.70.0100.01016.30
7.4.60.0100.01016.39
7.4.50.0100.00316.38
7.4.40.0090.01216.26
7.4.30.0070.01516.33
7.4.00.0070.01015.05
7.3.330.0000.00513.06
7.3.320.0020.00213.16
7.3.310.0040.00416.20
7.3.300.0070.00016.05
7.3.290.0100.00916.19
7.3.280.0060.01016.18
7.3.270.0100.00917.40
7.3.260.0050.01116.43
7.3.250.0130.00616.37
7.3.240.0120.00816.39
7.3.230.0040.01216.49
7.3.210.0090.00916.49
7.3.200.0090.01219.39
7.3.190.0190.00416.31
7.3.180.0060.00916.17
7.3.170.0070.01016.53
7.3.160.0070.01416.20
7.2.330.0090.00916.49
7.2.320.0060.01216.28
7.2.310.0160.00016.32
7.2.300.0120.00416.18
7.2.290.0100.00616.20
7.2.60.0110.00416.76
7.1.200.0040.00715.57
7.1.70.0000.00816.89
7.1.60.0120.01219.27
7.1.50.0120.01216.60
7.1.00.0030.07722.45
7.0.200.0000.01016.58
7.0.60.0200.04319.94
7.0.50.0100.07717.96
7.0.40.0030.04320.18
7.0.30.0300.05020.15
7.0.20.0300.06720.12
7.0.10.0030.04720.22
7.0.00.0030.04720.30
5.6.280.0030.03321.08
5.6.210.0100.05720.61
5.6.200.0100.03718.22
5.6.190.0170.03320.47
5.6.180.0170.04320.50
5.6.170.0230.03720.67
5.6.160.0070.06020.46
5.6.150.0070.07718.19
5.6.140.0000.04318.23
5.6.130.0030.06318.23
5.6.120.0130.04720.97
5.6.110.0070.08721.15
5.6.100.0070.08020.97
5.6.90.0100.03320.99
5.6.80.0030.03720.52
5.5.350.0100.05320.36
5.5.340.0070.05318.00
5.5.330.0100.08320.57
5.5.320.0600.07720.34
5.5.310.0370.07320.23
5.5.300.0170.06717.95
5.5.290.0130.07018.08
5.5.280.0070.06720.80
5.5.270.0070.04020.85
5.5.260.0030.04720.87
5.5.250.0200.06320.56
5.5.240.0070.03720.26

preferences:
45.2 ms | 401 KiB | 5 Q