3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = function (): bool { var_dump(__FUNCTION__ . ' is called'); return true; }; define('TEST', false); var_dump('Valuate TEST constant'); if(defined('TEST') && $test()) { var_dump('Test is called'); } echo PHP_EOL; echo PHP_EOL; var_dump('Valuate DOES_NOT_EXISTS constant'); if(defined('DOES_NOT_EXISTS') && $test()) { var_dump('Should not be called'); }

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.70.0060.01016.50
8.3.60.0040.01118.12
8.3.50.0150.00616.55
8.3.40.0110.00721.97
8.3.30.0060.01020.21
8.3.20.0000.00724.18
8.3.10.0060.00324.66
8.3.00.0080.00026.16
8.2.190.0060.01316.75
8.2.180.0040.01118.41
8.2.170.0140.00018.56
8.2.160.0100.00722.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0090.00026.16
8.2.120.0080.00019.66
8.2.110.0060.00320.85
8.2.100.0040.00717.72
8.2.90.0050.00518.09
8.2.80.0100.00517.13
8.2.70.0120.00617.00
8.2.60.0110.00517.50
8.2.50.0100.00717.38
8.2.40.0160.00017.25
8.2.30.0100.00717.50
8.2.20.0080.00817.13
8.2.10.0080.01117.63
8.2.00.0090.00917.49
8.1.280.0040.01125.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00922.30
8.1.230.0060.00621.04
8.1.220.0090.00917.25
8.1.210.0090.00916.88
8.1.200.0110.00917.00
8.1.190.0070.00417.13
8.1.180.0150.00317.13
8.1.170.0090.00917.13
8.1.160.0140.00317.11
8.1.150.0140.00516.98
8.1.140.0140.00317.00
8.1.130.0150.00317.34
8.1.120.0170.00017.38
8.1.110.0130.00317.00
8.1.100.0120.00617.00
8.1.90.0150.00317.00
8.1.80.0070.01017.00
8.1.70.0110.00817.38
8.1.60.0170.00317.11
8.1.50.0130.00717.38
8.1.40.0070.01117.25
8.1.30.0150.00417.25
8.1.20.0180.00017.11
8.1.10.0100.01017.47
8.1.00.0150.00417.38
8.0.300.0040.00420.00
8.0.290.0170.00016.72
8.0.280.0120.00616.72
8.0.270.0120.00616.72
8.0.260.0130.00416.72
8.0.250.0110.00716.72
8.0.240.0170.00016.72
8.0.230.0110.00616.72
8.0.220.0160.00316.72
8.0.210.0040.01316.72
8.0.200.0080.01116.72
8.0.190.0120.00616.73
8.0.180.0040.01316.72
8.0.170.0160.00016.72
8.0.160.0080.00816.72
8.0.150.0080.01016.72
8.0.140.0130.00316.72
8.0.130.0070.00716.75
8.0.120.0130.00416.72
8.0.110.0160.00016.72
8.0.100.0170.00016.72
8.0.90.0100.00816.72
8.0.80.0170.00016.72
8.0.70.0080.00816.72
8.0.60.0070.01016.72
8.0.50.0100.00716.72
8.0.30.0060.01216.72
8.0.20.0110.00616.72
8.0.10.0080.00816.88

preferences:
49.13 ms | 401 KiB | 5 Q