3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $prop; public $ref; public function &__get($name) { $this->ref &= $this->prop; return $this->prop; } public function __set($name, $value) { echo "set $name = $value\n"; } } $foo = new Foo; ++$foo->bar; var_dump($foo->prop);

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.0140.00419.27
8.5.20.0080.00919.34
8.5.10.0070.01016.82
8.5.00.0130.00919.98
8.4.180.0170.00821.49
8.4.170.0060.00323.88
8.4.160.0110.01123.88
8.4.150.0080.00616.94
8.4.140.0160.00517.61
8.4.130.0130.00717.82
8.4.120.0050.00620.52
8.4.110.0050.00722.22
8.4.100.0130.00817.92
8.4.90.0130.00617.86
8.4.80.0070.00317.93
8.4.70.0110.00918.00
8.4.60.0060.00517.67
8.4.50.0100.01217.47
8.4.40.0050.00317.77
8.4.30.0100.01019.23
8.4.20.0100.01019.46
8.4.10.0080.00017.68
8.3.300.0120.00820.79
8.3.290.0110.00920.72
8.3.280.0130.00718.25
8.3.270.0070.01216.51
8.3.260.0060.01016.77
8.3.250.0080.00019.25
8.3.240.0140.00516.54
8.3.230.0110.00916.60
8.3.220.0060.00319.06
8.3.210.0100.01016.55
8.3.200.0110.00816.50
8.3.190.0130.00816.49
8.3.180.0120.00816.66
8.3.170.0030.01216.48
8.3.160.0080.00016.86
8.3.150.0150.00417.07
8.3.140.0080.00017.13
8.3.130.0030.00618.71
8.3.120.0040.00719.01
8.3.110.0150.00720.94
8.3.100.0040.00424.06
8.3.90.0040.00426.77
8.3.80.0050.00518.43
8.3.70.0180.00318.30
8.3.60.0120.00618.43
8.3.50.0080.00518.10
8.3.40.0090.00918.70
8.3.30.0060.01318.85
8.3.20.0040.00419.14
8.3.10.0080.00020.86
8.3.00.0080.00023.48
8.2.300.0130.00717.88
8.2.290.0030.00620.33
8.2.280.0060.00218.56
8.2.270.0120.00616.69
8.2.260.0110.00718.75
8.2.250.0120.00318.66
8.2.240.0090.00016.98
8.2.230.0030.00622.58
8.2.220.0130.00037.54
8.2.210.0100.00026.77
8.2.200.0080.00016.50
8.2.190.0090.00916.58
8.2.180.0130.00816.75
8.2.170.0150.00022.96
8.2.160.0070.00721.10
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0040.00419.82
8.2.120.0080.00026.35
8.2.110.0030.00621.06
8.2.100.0120.00017.86
8.2.90.0000.00818.05
8.2.80.0040.00418.78
8.2.70.0030.00517.93
8.2.60.0000.00717.93
8.2.50.0080.00018.10
8.2.40.0040.00419.59
8.2.30.0000.00719.46
8.2.20.0070.00018.05
8.2.10.0050.00318.18
8.2.00.0000.00719.42
8.1.340.0130.00819.93
8.1.330.0120.00716.62
8.1.320.0050.00316.16
8.1.310.0120.00616.46
8.1.300.0000.00815.97
8.1.290.0030.00630.84
8.1.280.0090.00925.92
8.1.270.0040.00422.19
8.1.260.0060.00326.35
8.1.250.0060.00328.09
8.1.240.0070.00719.42
8.1.230.0090.00420.76
8.1.220.0030.00518.51
8.1.210.0000.00818.77
8.1.200.0000.00817.66
8.1.190.0030.00617.13
8.1.180.0000.00718.10
8.1.170.0060.00318.59
8.1.160.0070.00018.84
8.1.150.0040.00418.94
8.1.140.0050.00217.67
8.1.130.0030.00318.95
8.1.120.0080.00017.49
8.1.110.0030.00617.48
8.1.100.0040.00417.40
8.1.90.0070.00017.42
8.1.80.0080.00017.39
8.1.70.0030.00517.43
8.1.60.0000.00817.54
8.1.50.0000.00817.46
8.1.40.0050.00317.47
8.1.30.0030.00517.57
8.1.20.0060.00317.58
8.1.10.0000.00717.62
8.1.00.0090.00017.49
8.0.300.0030.00918.77
8.0.290.0090.00016.63
8.0.280.0030.00318.45
8.0.270.0050.00217.31
8.0.260.0000.00917.18
8.0.250.0000.00816.99
8.0.240.0000.00616.96
8.0.230.0070.00316.93
8.0.220.0000.00716.86
8.0.210.0030.00516.94
8.0.200.0000.00716.84
8.0.190.0060.00316.85
8.0.180.0000.00816.92
8.0.170.0030.00616.85
8.0.160.0040.00416.75
8.0.150.0000.00816.81
8.0.140.0050.00216.91
8.0.130.0000.00513.39
8.0.120.0060.00316.85
8.0.110.0060.00316.73
8.0.100.0040.00416.90
8.0.90.0000.00716.92
8.0.80.0100.00816.90
8.0.70.0000.00716.90
8.0.60.0000.00716.96
8.0.50.0040.00416.80
8.0.30.0110.00616.93
8.0.20.0040.01517.40
8.0.10.0040.00416.98
8.0.00.0100.00916.81
7.4.330.0020.00215.55
7.4.320.0030.00316.53
7.4.300.0030.00316.46
7.4.290.0000.00716.52
7.4.280.0070.00016.40
7.4.270.0000.00816.61
7.4.260.0000.00816.51
7.4.250.0070.00016.54
7.4.240.0000.00816.42
7.4.230.0030.00316.39
7.4.220.0040.00416.50
7.4.210.0070.00716.55
7.4.200.0040.00416.66
7.4.160.0050.01116.38
7.4.140.0100.00917.86
7.4.130.0100.00716.54
7.4.120.0110.00816.54
7.4.110.0140.00716.52
7.4.100.0100.00716.76
7.4.90.0070.01016.42
7.4.80.0070.01319.39
7.4.70.0100.01216.32
7.4.60.0070.01016.33
7.4.50.0000.01216.29
7.4.40.0100.00716.37
7.4.00.0070.00714.82
7.3.330.0030.00313.34
7.3.320.0060.00013.27
7.3.310.0040.00416.12
7.3.300.0030.00316.32
7.3.290.0030.00316.21
7.3.280.0090.00616.30
7.3.260.0110.00816.28
7.3.240.0100.00816.51
7.3.230.0150.00316.61
7.3.210.0100.00916.60
7.3.200.0090.00616.19
7.3.190.0060.01116.29
7.3.180.0080.01316.59
7.3.170.0110.00516.45
7.3.160.0090.00616.34
7.2.330.0070.01016.80
7.2.320.0120.00616.85
7.2.310.0110.00716.67
7.2.300.0090.00916.78
7.2.290.0040.02216.74
7.2.110.0180.00416.73
7.2.60.0990.00915.01
7.2.50.0930.01015.16
7.2.40.0820.00715.50
7.2.30.1180.00615.49
7.2.20.1240.00915.53
7.2.10.1440.01115.30
7.2.00.0900.00815.44
7.1.200.0040.00815.71
7.1.170.1420.00713.88
7.1.160.0880.01216.72
7.1.150.1580.01016.95
7.1.140.1000.01116.80
7.1.130.1110.00916.77
7.1.120.0930.01316.78
7.1.110.1060.00915.97
7.1.100.0910.00915.84
7.1.90.1120.00716.40
7.1.80.0860.00716.32
7.1.70.1100.00915.27
7.1.60.1180.01233.11
7.1.50.1000.01332.99
7.1.40.1060.01132.68
7.1.30.0940.01332.64
7.1.20.1200.01532.70
7.1.10.1040.01214.68
7.1.00.0860.01014.71

preferences:
114.34 ms | 1401 KiB | 5 Q