3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* @link https://stackoverflow.com/a/79573960/367456 */ $xxx = null; echo '$xxx: '; var_dump($xxx); # echoes: $xxx: NULL echo gettype($xxx), ': ', var_export($xxx, true), "\n"; # echoes: NULL: NULL echo get_debug_type($xxx), "\n"; # echoes: null $xxx = false; echo '$xxx: '; var_dump($xxx); # echoes: $xxx: bool(false) echo gettype($xxx), ': ', var_export($xxx, true), "\n"; # echoes: boolean: false echo get_debug_type($xxx), "\n"; # echoes: bool $xxx = ''; echo '$xxx: '; var_dump($xxx); # echoes: $xxx: string(0) "" echo gettype($xxx), ': ', var_export($xxx, true), "\n"; # echoes: string: '' echo get_debug_type($xxx), "\n"; # echoes: string

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.120.0040.00624.28
8.4.110.0120.01119.00
8.4.100.0150.00517.65
8.4.90.0110.00917.43
8.4.80.0090.01217.48
8.4.70.0140.00919.42
8.4.60.0390.01117.36
8.4.50.0420.00417.65
8.4.40.0360.00617.18
8.4.30.0380.00817.36
8.4.20.0300.00617.25
8.4.10.0390.00717.36
8.3.250.0120.00618.60
8.3.240.0080.00817.30
8.3.230.0140.00616.35
8.3.220.0070.00216.54
8.3.210.0040.00416.60
8.3.200.0390.00816.48
8.3.190.0320.00816.39
8.3.180.0270.00616.56
8.3.170.0220.00616.40
8.3.160.0170.00516.34
8.3.150.0260.00416.58
8.3.140.0280.00616.42
8.3.130.0300.01316.43
8.3.120.0290.01116.72
8.3.110.0290.00816.48
8.3.100.0410.00616.42
8.3.90.0350.01016.25
8.3.80.0390.00916.62
8.3.70.0390.00816.16
8.3.60.0380.01016.29
8.3.50.0430.00516.17
8.3.40.0330.00917.57
8.3.30.0140.00317.57
8.3.20.0200.00217.29
8.3.10.0310.00617.58
8.3.00.0170.00917.61
8.2.290.0140.00420.36
8.2.280.0250.00916.68
8.2.270.0320.00716.32
8.2.260.0430.00616.19
8.2.250.0390.01016.42
8.2.240.0320.00716.25
8.2.230.0350.00616.29
8.2.220.0320.00916.44
8.2.210.0350.01116.39
8.2.200.0260.00916.32
8.2.190.0310.00916.44
8.2.180.0310.00916.28
8.2.170.0310.00917.52
8.2.160.0260.00817.65
8.2.150.0390.00817.55
8.2.140.0300.00617.54
8.2.130.0410.00517.48
8.2.120.0320.01017.61
8.2.110.0330.00817.58
8.2.100.0200.00417.64
8.2.90.0320.00917.59
8.2.80.0320.00817.64
8.2.70.0330.00817.32
8.2.60.0330.00717.39
8.2.50.0340.00917.50
8.2.40.0300.00917.54
8.2.30.0300.00917.41
8.2.20.0290.01017.43
8.2.10.0280.01017.40
8.2.00.0310.00817.52

preferences:
27.53 ms | 403 KiB | 5 Q