3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Example { protected $attributes = []; public string $email { get => $this->attributes['email']; set => $this->attributes['email'] = strtolower($value); } } $example = new Example; $example->email = 'should only appear once'; var_dump($example);

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.60.0400.00817.34
8.4.50.0370.00817.61
8.4.40.0400.00917.54
8.4.30.0410.00717.55
8.4.20.0390.01017.32
8.4.10.0380.01117.27
8.3.200.0370.00716.80
8.3.190.0380.00716.59
8.3.180.0400.00816.46
8.3.170.0430.01016.45
8.3.160.0430.01016.42
8.3.150.0360.00716.49
8.3.140.0380.00916.56
8.3.130.0370.00516.32
8.3.120.0290.01416.81
8.3.110.0350.00616.43
8.3.100.0360.00916.63
8.3.90.0340.01116.46
8.3.80.0220.00616.64
8.3.70.0370.00916.61
8.3.60.0350.00816.56
8.3.50.0410.00716.60
8.3.40.0460.01017.66
8.3.30.0430.01017.46
8.3.20.0310.00617.35
8.3.10.0280.01017.47
8.3.00.0170.00817.27
8.2.280.0300.00816.69
8.2.270.0310.00916.52
8.2.260.0300.00916.43
8.2.250.0310.00816.40
8.2.240.0290.01016.44
8.2.230.0270.01216.48
8.2.220.0280.01216.38
8.2.210.0300.01016.11
8.2.200.0290.01316.37
8.2.190.0260.00916.61
8.2.180.0250.01016.16
8.2.170.0320.00717.39
8.2.160.0320.00617.64
8.2.150.0280.00917.30
8.2.140.0320.01217.31
8.2.130.0340.01217.33
8.2.120.0290.00817.54
8.2.110.0300.01017.52
8.2.100.0280.01017.63
8.2.90.0330.00717.34
8.2.80.0310.00917.43
8.2.70.0330.00817.60
8.2.60.0300.01117.45
8.2.50.0330.00817.25
8.2.40.0370.00517.46
8.2.30.0360.00517.35
8.2.20.0330.01117.32
8.2.10.0290.01117.31
8.2.00.0270.00617.18

preferences:
153.85 ms | 997 KiB | 7 Q