3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { protected $prop = 1; public function __get(string $name) { echo $name; return $this->prop; } } $a = new A(); echo $a->none;

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.4.130.0090.01118.85
8.4.120.0120.00918.68
8.4.110.0160.00418.95
8.4.100.0120.00518.83
8.4.90.0090.01020.63
8.4.80.0100.01019.00
8.4.70.0080.00618.83
8.4.60.0080.01218.80
8.4.50.0110.00918.78
8.4.40.0030.01618.76
8.4.30.0070.01118.71
8.4.20.0130.00719.79
8.4.10.0090.00024.09
8.3.260.0120.00816.46
8.3.250.0110.00716.61
8.3.240.0060.00216.36
8.3.230.0120.00716.32
8.3.220.0050.00318.89
8.3.210.0120.00818.59
8.3.200.0050.00416.27
8.3.190.0040.00416.96
8.3.180.0070.00818.47
8.3.170.0140.00416.74
8.3.160.0070.01018.89
8.3.150.0120.00618.96
8.3.140.0070.01118.86
8.3.130.0040.00418.16
8.3.120.0110.00018.86
8.3.110.0050.00520.94
8.3.100.0060.00324.06
8.3.90.0120.00326.77
8.3.80.0060.00316.48
8.3.70.0120.00316.58
8.3.60.0120.00316.63
8.3.50.0000.01418.37
8.3.40.0110.00720.04
8.3.30.0070.01318.59
8.3.20.0050.00224.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.290.0090.00117.32
8.2.280.0100.00818.30
8.2.270.0140.00416.69
8.2.260.0000.00816.36
8.2.250.0050.00316.63
8.2.240.0090.00618.97
8.2.230.0040.00422.58
8.2.220.0060.00337.54
8.2.210.0040.00426.77
8.2.200.0060.00316.50
8.2.190.0090.00616.58
8.2.180.0090.00925.92
8.2.170.0070.00719.02
8.2.160.0100.00322.96
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0030.00526.16
8.2.120.0070.00021.02
8.2.110.0030.00620.96
8.2.100.0100.00317.50
8.2.90.0060.00318.91
8.2.80.0050.00317.97
8.2.70.0060.00317.63
8.2.60.0040.00417.93
8.2.50.0080.00018.07
8.2.40.0090.00018.22
8.2.30.0040.00418.05
8.2.20.0040.00420.59
8.2.10.0020.00518.23
8.2.00.0040.00419.10
8.1.330.0110.00916.00
8.1.320.0140.01116.02
8.1.310.0110.00716.00
8.1.300.0030.00620.27
8.1.290.0030.00630.84
8.1.280.0090.01625.92
8.1.270.0080.01224.66
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0060.00323.79
8.1.230.0080.00419.10
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0110.00017.23
8.1.190.0000.00917.23
8.1.180.0050.00318.10
8.1.170.0060.00320.36
8.1.160.0040.00418.72
8.1.150.0040.00418.57
8.1.140.0000.00817.49
8.1.130.0000.00917.37
8.1.120.0040.00417.43
8.1.110.0070.00717.37
8.1.100.0090.00617.37
8.1.90.0160.00017.44
8.1.80.0110.00617.51
8.1.70.0130.00317.40
8.1.60.0140.00717.54
8.1.50.0120.00817.63
8.1.40.0160.00317.54
8.1.30.0130.00617.52
8.1.20.0120.00917.55
8.1.10.0120.00517.58
8.1.00.0160.00317.50
8.0.300.0020.00518.77
8.0.290.0090.00016.63
8.0.280.0030.00318.44
8.0.270.0000.00816.75
8.0.260.0050.00517.37
8.0.250.0080.00017.37
8.0.240.0000.01217.37
8.0.230.0180.00017.37
8.0.220.0090.00717.37
8.0.210.0160.00017.37
8.0.200.0110.00617.37
8.0.190.0090.00717.37
8.0.180.0090.00617.37
8.0.170.0080.00817.37
8.0.160.0080.00717.37
8.0.150.0120.00217.37
8.0.140.0130.00417.37
8.0.130.0070.01017.37
8.0.120.0150.00417.37
8.0.110.0070.00717.37
8.0.100.0110.00417.37
8.0.90.0120.00617.37
8.0.80.0100.00517.37
8.0.70.0090.00917.37
8.0.60.0030.01317.37
8.0.50.0100.00617.37
8.0.30.0140.00317.37
8.0.20.0130.00317.37
8.0.10.0090.00717.37

preferences:
107.49 ms | 403 KiB | 5 Q