3v4l.org

run code in 300+ PHP versions simultaneously
<?php function initialize_properties_here(array $properties) { $properties['bar'] = 123; } class Foo { private int $bar = 123; public function __get(string $name) { $props = ['bar' => & $this->bar]; initialize_properties_here($props); return $this->$name; } } var_dump((new Foo())->bar);

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.01116.75
8.3.50.0130.00621.15
8.3.40.0170.00318.97
8.3.30.0140.00018.89
8.3.20.0040.00420.34
8.3.10.0070.00021.91
8.3.00.0050.00320.95
8.2.180.0110.01116.50
8.2.170.0040.01122.96
8.2.160.0140.00019.26
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00022.29
8.2.120.0040.00426.35
8.2.110.0040.00421.11
8.2.100.0060.00617.91
8.2.90.0090.00017.97
8.2.80.0050.00317.97
8.2.70.0060.00318.05
8.2.60.0000.00818.09
8.2.50.0050.00318.10
8.2.40.0040.00420.61
8.2.30.0070.00020.63
8.2.20.0000.00817.61
8.2.10.0050.00218.06
8.2.00.0000.00718.23
8.1.280.0060.01225.92
8.1.270.0100.01023.97
8.1.260.0040.00428.09
8.1.250.0050.00328.09
8.1.240.0040.00423.92
8.1.230.0000.01120.90
8.1.220.0040.00417.74
8.1.210.0050.00518.77
8.1.200.0060.00317.23
8.1.190.0040.00417.51
8.1.180.0040.00418.10
8.1.170.0050.00318.71
8.1.160.0040.00420.89
8.1.150.0000.00818.83
8.1.140.0050.00319.57
8.1.130.0030.00317.70
8.1.120.0000.00817.43
8.1.110.0060.00317.35
8.1.100.0080.00017.35
8.1.90.0060.00317.47
8.1.80.0030.00517.46
8.1.70.0000.00717.44
8.1.60.0030.00517.62
8.1.50.0000.00817.45
8.1.40.0000.00817.54
8.1.30.0040.00417.65
8.1.20.0000.00717.67
8.1.10.0040.00417.34
8.1.00.0040.00417.52
8.0.300.0040.00419.58
8.0.290.0000.00816.63
8.0.280.0000.00718.36
8.0.270.0070.00017.13
8.0.260.0000.00717.15
8.0.250.0070.00016.87
8.0.240.0000.00616.89
8.0.230.0050.00216.96
8.0.220.0000.00716.86
8.0.210.0040.00416.79
8.0.200.0090.00016.84
8.0.190.0000.00816.93
8.0.180.0070.00016.86
8.0.170.0040.00416.83
8.0.160.0090.00016.96
8.0.150.0000.00716.80
8.0.140.0090.00016.68
8.0.130.0030.00313.36
8.0.120.0040.00416.73
8.0.110.0040.00416.84
8.0.100.0040.00416.78
8.0.90.0000.00816.77
8.0.80.0130.00616.89
8.0.70.0040.00416.93
8.0.60.0070.00016.75
8.0.50.0040.00416.91
8.0.30.0080.01017.16
8.0.20.0090.00917.40
8.0.10.0040.00417.04
8.0.00.0090.01016.84
7.4.330.0000.00515.08
7.4.320.0000.00616.61
7.4.300.0060.00016.41
7.4.290.0000.00616.64
7.4.280.0070.00016.45
7.4.270.0040.00416.56
7.4.260.0000.00716.50
7.4.250.0070.00016.54
7.4.240.0040.00416.41
7.4.230.0040.00416.48
7.4.220.0090.01116.48
7.4.210.0160.00516.48
7.4.200.0070.00016.41
7.4.160.0060.00916.35
7.4.150.0070.01017.40
7.4.140.0090.00917.86
7.4.130.0050.01216.50
7.4.120.0130.00416.50
7.4.110.0070.01016.40
7.4.100.0060.01216.63
7.4.90.0120.00616.50
7.4.80.0140.00319.39
7.4.70.0060.01016.59
7.4.60.0060.01016.58
7.4.50.0090.00616.50
7.4.40.0120.00616.59
7.4.30.0130.00916.54
7.3.330.0050.00013.07
7.3.320.0060.00013.24
7.3.310.0040.00416.00
7.3.300.0030.00316.07
7.3.290.0040.00416.01
7.3.280.0090.01016.21
7.3.270.0070.01017.40
7.3.260.0140.00316.12
7.3.250.0090.01016.30
7.3.240.0040.01416.25
7.3.230.0070.01016.39
7.3.210.0090.00916.30
7.3.200.0140.00316.17
7.3.190.0070.01016.34
7.3.180.0070.00716.21
7.3.170.0060.01316.35
7.3.160.0060.01016.11
7.2.330.0110.00716.41
7.2.320.0030.01316.52
7.2.310.0080.00816.37
7.2.300.0100.00616.48
7.2.290.0160.00016.16
7.0.40.0030.06720.25
7.0.30.0300.06720.06
7.0.20.0370.05020.29
7.0.10.0370.05020.18
7.0.00.0400.05020.38
5.6.190.0230.05020.77
5.6.180.0400.05320.47
5.6.170.0200.06320.70
5.6.160.0300.05320.45
5.6.150.0330.05020.39
5.6.140.0230.06320.40
5.6.130.0370.04720.41
5.6.120.0130.05720.41
5.6.110.0100.05720.34
5.6.100.0130.08020.40
5.6.90.0130.06320.34
5.6.80.0100.06019.83
5.6.70.0230.06019.75
5.6.60.0100.05319.68
5.6.50.0200.06019.61
5.6.40.0300.05019.71
5.6.30.0300.05319.77
5.6.20.0330.06019.66
5.6.10.0330.05719.79
5.6.00.0230.05719.72
5.5.330.0170.06320.41
5.5.320.0330.05320.36
5.5.310.0330.06320.38
5.5.300.0270.06020.17
5.5.290.0200.06020.21
5.5.280.0070.06320.00
5.5.270.0270.04320.38
5.5.260.0170.05020.09
5.5.250.0230.07020.00
5.5.240.0130.05319.58
5.5.230.0330.05019.61
5.5.220.0100.05719.77
5.5.210.0100.05319.50
5.5.200.0370.04319.54
5.5.190.0330.06719.54
5.5.180.0530.06719.54
5.5.160.0200.04719.48
5.5.150.0070.06019.55
5.5.140.0100.05719.54
5.5.130.0500.07019.55
5.5.120.0300.05719.45
5.5.110.0370.05019.44
5.5.100.0330.04719.46
5.5.90.0300.05319.45
5.5.80.0370.04019.25
5.5.70.0130.05319.44
5.5.60.0270.04019.43
5.5.50.0230.05319.45
5.5.40.0370.04319.44
5.5.30.0230.05719.36
5.5.20.0200.06719.46
5.5.10.0300.05319.48
5.5.00.0370.05019.61

preferences:
57.35 ms | 401 KiB | 5 Q