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.0040.01118.56
8.3.50.0120.00921.20
8.3.40.0070.00718.92
8.3.30.0080.00618.79
8.3.20.0000.00720.16
8.3.10.0050.00321.73
8.3.00.0040.00423.66
8.2.180.0070.00716.50
8.2.170.0040.01122.96
8.2.160.0040.01120.39
8.2.150.0030.00624.18
8.2.140.0030.00524.66
8.2.130.0040.00419.82
8.2.120.0070.00026.35
8.2.110.0090.00022.00
8.2.100.0040.00717.93
8.2.90.0000.00919.26
8.2.80.0050.00317.97
8.2.70.0040.00417.50
8.2.60.0040.00417.92
8.2.50.0000.00918.07
8.2.40.0000.00720.56
8.2.30.0030.00419.47
8.2.20.0000.00717.67
8.2.10.0070.00318.13
8.2.00.0040.00418.25
8.1.280.0090.01225.92
8.1.270.0140.00024.02
8.1.260.0110.00028.09
8.1.250.0040.00428.09
8.1.240.0090.00022.30
8.1.230.0040.00719.00
8.1.220.0080.00017.78
8.1.210.0030.00618.77
8.1.200.0080.00017.47
8.1.190.0030.00617.23
8.1.180.0000.00818.10
8.1.170.0090.00018.50
8.1.160.0070.00020.70
8.1.150.0000.00818.96
8.1.140.0060.00319.48
8.1.130.0000.00717.66
8.1.120.0040.00417.43
8.1.110.0040.00417.45
8.1.100.0080.00017.34
8.1.90.0040.00417.52
8.1.80.0000.00817.47
8.1.70.0000.00717.37
8.1.60.0030.00617.63
8.1.50.0050.00317.54
8.1.40.0040.00417.52
8.1.30.0080.00017.69
8.1.20.0000.00817.67
8.1.10.0040.00417.57
8.1.00.0000.00917.51
8.0.300.0070.00018.77
8.0.290.0040.00416.88
8.0.280.0000.00718.39
8.0.270.0030.00317.17
8.0.260.0030.00317.23
8.0.250.0070.00017.08
8.0.240.0000.00616.93
8.0.230.0030.00316.93
8.0.220.0000.00716.86
8.0.210.0070.00016.85
8.0.200.0030.00316.91
8.0.190.0030.00617.08
8.0.180.0050.00316.96
8.0.170.0040.00416.94
8.0.160.0030.00316.98
8.0.150.0050.00516.98
8.0.140.0040.00416.88
8.0.130.0050.00013.38
8.0.120.0000.00816.96
8.0.110.0040.00417.02
8.0.100.0030.00517.00
8.0.90.0000.00816.86
8.0.80.0110.01016.87
8.0.70.0000.00716.88
8.0.60.0100.00016.87
8.0.50.0040.00416.80
8.0.30.0140.00817.08
8.0.20.0090.01017.40
8.0.10.0030.00517.07
8.0.00.0110.00716.90
7.4.330.0000.00616.79
7.4.320.0030.00316.67
7.4.300.0050.00316.48
7.4.290.0040.00416.54
7.4.280.0060.00316.43
7.4.270.0050.00316.54
7.4.260.0050.00216.41
7.4.250.0040.00416.48
7.4.240.0060.00216.60
7.4.230.0030.00316.55
7.4.220.0170.00716.73
7.4.210.0030.01116.56
7.4.200.0000.00716.61
7.4.160.0080.00816.73
7.4.150.0110.00717.40
7.4.140.0030.01517.86
7.4.130.0090.01116.68
7.4.120.0070.01016.54
7.4.110.0130.01016.66
7.4.100.0180.00416.64
7.4.90.0110.00716.55
7.4.80.0140.00319.39
7.4.70.0090.01316.57
7.4.60.0060.01016.64
7.4.50.0100.00716.54
7.4.40.0100.00716.50
7.4.30.0060.01216.59
7.4.00.0030.01414.88
7.3.330.0000.00513.55
7.3.320.0050.00013.45
7.3.310.0070.00016.48
7.3.300.0000.00716.39
7.3.290.0060.00916.45
7.3.280.0080.01116.41
7.3.270.0100.00717.40
7.3.260.0160.00316.44
7.3.250.0080.00816.56
7.3.240.0090.00916.57
7.3.230.0120.00416.60
7.3.210.0100.00716.37
7.3.200.0150.00619.39
7.3.190.0040.01716.39
7.3.180.0130.00316.50
7.3.170.0110.01116.44
7.3.160.0130.00316.38
7.2.330.0070.01116.49
7.2.320.0060.01216.53
7.2.310.0080.00816.50
7.2.300.0100.00716.79
7.2.290.0110.00616.65
7.2.60.0110.00816.91
7.2.00.0000.01419.41
7.1.200.0000.00915.64
7.1.100.0060.00618.19
7.1.70.0030.00717.18
7.1.60.0110.01419.27
7.1.50.0060.01216.99
7.1.00.0100.07022.49
7.0.200.0090.00016.47
7.0.60.0070.04721.66
7.0.50.0100.07717.89
7.0.40.0000.07020.13
7.0.30.0370.06720.07
7.0.20.0400.07020.15
7.0.10.0130.08020.06
7.0.00.0130.08020.15
5.6.280.0100.03320.89
5.6.210.0070.06720.57
5.6.200.0200.04318.16
5.6.190.0000.04720.52
5.6.180.0200.04320.42
5.6.170.0170.06020.58
5.6.160.0030.08320.71
5.6.150.0100.04018.18
5.6.140.0100.06318.18
5.6.130.0070.04318.14
5.6.120.0070.04721.02
5.6.110.0130.08321.09
5.6.100.0000.09021.09
5.6.90.0030.04020.97
5.6.80.0000.04020.39
5.5.350.0000.07720.39
5.5.340.0130.07017.99
5.5.330.0100.03720.35
5.5.320.0270.07320.30
5.5.310.0300.06020.34
5.5.300.0030.08317.94
5.5.290.0100.05718.03
5.5.280.0200.07720.78
5.5.270.0070.04320.85
5.5.260.0070.07320.80
5.5.250.0230.06720.59
5.5.240.0100.03720.19

preferences:
54.58 ms | 401 KiB | 5 Q