3v4l.org

run code in 500+ PHP versions simultaneously
<?php class ReplacementArray { private $data; public function __construct( $data ) { $this->data = $data; } } $o = new ReplacementArray( [ 1 ] ); var_export( serialize( $o ) );

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.70.0050.00318.60
8.5.60.0120.00716.91
8.5.50.0120.00516.79
8.5.30.0110.00718.02
8.5.20.0100.00720.11
8.5.10.0120.00616.75
8.5.00.0080.01422.95
8.4.220.0050.00419.30
8.4.210.0060.00419.43
8.4.180.0150.00721.90
8.4.170.0140.00723.84
8.4.160.0130.00922.00
8.4.150.0070.00716.80
8.4.140.0110.00917.41
8.4.130.0230.00518.32
8.4.120.0160.00517.71
8.4.90.0090.01217.68
8.3.310.0090.00818.24
8.3.300.0130.00620.67
8.3.290.0080.01120.74
8.3.280.0250.00616.06
8.3.270.0110.00816.55
8.3.260.0070.00216.70
8.3.250.0060.00316.72
8.3.180.0130.00716.46
8.3.50.0040.00416.77
8.2.310.0090.01018.14
8.2.300.0120.01020.31
8.1.340.0100.01121.63

preferences:
50.7 ms | 604 KiB | 5 Q