3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Drupal { } class Drupal1 { const CORE_COMPATIBILITY = 'Drupal1'; if (class_exists('Drupal') && defined('Drupal::CORE_COMPATIBILITY')) { echo Drupal::CORE_COMPATIBILITY; } if (class_exists('Drupal1') && defined('Drupal1::CORE_COMPATIBILITY')) { echo Drupal1::CORE_COMPATIBILITY; }

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)
5.4.190.0220.05412.39
5.4.180.0190.04612.39
5.4.170.0160.04512.41
5.4.160.0160.05412.39
5.4.150.0160.04412.39
5.4.140.0360.09112.08
5.4.130.0150.04912.06
5.4.120.0180.04412.02
5.4.110.0210.03912.02
5.4.100.0300.06012.02
5.4.90.0150.04712.02
5.4.80.0200.04112.02
5.4.70.0410.08112.01
5.4.60.0130.04512.02
5.4.50.0150.04212.02
5.4.40.0140.04912.00
5.4.30.0220.04412.00
5.4.20.0330.08711.99
5.4.10.0110.04612.00
5.4.00.0140.04311.49
5.3.270.0170.04512.72
5.3.260.0140.04712.72
5.3.250.0150.04612.72
5.3.240.0130.04712.72
5.3.230.0200.04212.71
5.3.220.0190.04412.68
5.3.210.0130.04712.68
5.3.200.0160.04312.68
5.3.190.0160.04512.68
5.3.180.0180.04312.68
5.3.170.0230.06612.67
5.3.160.0100.04912.67
5.3.150.0270.03412.67
5.3.140.0150.04712.66
5.3.130.0150.04612.66
5.3.120.0140.04712.66
5.3.110.0210.04112.66
5.3.100.0170.04512.12
5.3.90.0190.04312.09
5.3.80.0150.04712.09
5.3.70.0350.08512.09
5.3.60.0160.04512.07
5.3.50.0160.04412.02
5.3.40.0150.04412.02
5.3.30.0200.03911.98
5.3.20.0180.04111.77
5.3.10.0360.08311.72
5.3.00.0110.04511.71

preferences:
154.82 ms | 1394 KiB | 7 Q