3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait DataCollector { protected static $CollectionData = array(); static function setData( $data ) { self::$CollectionData[] = $data; } static function getCollectedData() { return DataCollector::$CollectionData; } } class dataHandler { use DataCollector { getCollectedData as public; } } class Form {} class Field extends Form { use DataCollector { getCollectedData as private; }; public function __construct( $type, $text = NULL ) { self::setData( $type ); } } $Field1 = new Field( 'text' ); $Field2 = new Field( 'html', 'hello' ); var_dump( dataHandler::getCollectedData() );

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.170.0150.04712.40
5.4.160.0130.04712.39
5.4.150.0150.05512.39
5.4.140.0110.04612.08
5.4.130.0150.04412.06
5.4.120.0150.04312.03
5.4.110.0150.05512.02
5.4.100.0130.04512.03
5.4.90.0160.04412.02
5.4.80.0140.04512.02
5.4.70.0100.04712.02
5.4.60.0150.04212.02
5.4.50.0180.05112.02
5.4.40.0130.04312.00
5.4.30.0160.06012.00
5.4.20.0130.04012.00
5.4.10.0150.04212.00
5.4.00.0160.04011.50
5.3.270.0140.04712.72
5.3.260.0210.05912.72
5.3.250.0140.04712.72
5.3.240.0200.05012.72
5.3.230.0150.04512.71
5.3.220.0150.05312.68
5.3.210.0170.04512.68
5.3.200.0150.04312.68
5.3.190.0160.05112.68
5.3.180.0170.06012.67
5.3.170.0110.04612.67
5.3.160.0120.04512.67
5.3.150.0240.05512.67
5.3.140.0120.04412.66
5.3.130.0140.04612.66
5.3.120.0160.05212.66
5.3.110.0130.04312.66
5.3.100.0110.04612.12
5.3.90.0140.04412.08
5.3.80.0120.04512.08
5.3.70.0150.04312.07
5.3.60.0160.04212.06
5.3.50.0160.04212.00
5.3.40.0140.04312.00
5.3.30.0130.04211.95
5.3.20.0210.05411.73
5.3.10.0110.04211.69
5.3.00.0180.05111.67

preferences:
134.74 ms | 1394 KiB | 7 Q