3v4l.org

run code in 300+ PHP versions simultaneously
<?php class SensitiveValue { public function __construct(public $value) {} public function __debugInfo(): array { return []; } } function foo($value) { bar($value); } function bar($value) { var_dump($value); throw new Exception(); } foo(new SensitiveValue('my_password'));

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.10.0130.00616.86
8.5.00.0140.00720.14
8.4.150.0020.00014.05
8.4.140.0060.00317.76
8.4.130.0120.00818.12
8.4.120.0040.00420.51
8.4.110.0070.01320.40
8.4.100.0110.00918.01
8.4.90.0110.00918.27
8.4.80.0100.01019.95
8.4.70.0110.00819.73
8.4.60.0370.01017.87
8.4.50.0350.01117.93
8.4.40.0390.01017.70
8.4.30.0380.01017.88
8.4.20.0400.01017.43
8.4.10.0430.00917.70
8.3.280.0020.00014.05
8.3.270.0120.00716.73
8.3.260.0110.00816.63
8.3.250.0030.00819.17
8.3.240.0110.00816.63
8.3.230.0070.00416.70
8.3.220.0050.00216.68
8.3.210.0050.00716.80
8.3.200.0420.00716.66
8.3.190.0320.00616.81
8.3.180.0390.00816.25
8.3.170.0230.00716.60
8.3.160.0230.00916.41
8.3.150.0200.00216.48
8.3.140.0160.00416.79
8.3.130.0230.00216.52
8.3.120.0360.00616.82
8.3.110.0310.01016.58
8.3.100.0330.01016.77
8.3.90.0410.00716.76
8.3.80.0390.00916.66
8.3.70.0380.00816.67
8.3.60.0430.00716.47
8.3.50.0360.01316.42
8.3.40.0340.01117.36
8.3.30.0320.00917.64
8.3.20.0300.00317.79
8.3.10.0330.00917.78
8.3.00.0320.00917.73
8.2.290.0080.01218.82
8.2.280.0270.01016.95
8.2.270.0330.00716.55
8.2.260.0300.01016.48
8.2.250.0340.00616.88
8.2.240.0320.00716.52
8.2.230.0340.00616.68
8.2.220.0290.01216.73
8.2.210.0300.01116.50
8.2.200.0350.01016.38
8.2.190.0240.00416.62
8.2.180.0130.00816.67
8.2.170.0380.00617.73
8.2.160.0360.00717.57
8.2.150.0300.01017.71
8.2.140.0230.00417.64
8.2.130.0200.00617.38
8.2.120.0530.00917.22
8.2.110.0330.00917.63
8.2.100.0320.00817.50
8.2.90.0320.00817.64
8.2.80.0280.00817.70
8.2.70.0240.01117.42
8.2.60.0300.00917.45
8.2.50.0330.00617.58
8.2.40.0300.00817.26
8.2.30.0320.00617.29
8.2.20.0230.00617.41
8.2.10.0130.00417.48
8.2.00.0100.00717.54

preferences:
57.35 ms | 403 KiB | 5 Q