3v4l.org

run code in 300+ PHP versions simultaneously
<?php (function(string $thing){ echo $thing; }) (new class { function __toString() => 'thing'; }); expects: 'thing';

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.6.140.0030.05318.18
5.6.130.0100.05018.23
5.6.120.0070.04720.99
5.6.110.0130.08021.03
5.6.100.0100.08321.11
5.6.90.0000.04720.98
5.6.80.0100.05720.39
5.5.300.0030.03717.95
5.5.290.0030.05017.94
5.5.280.0100.08020.77
5.5.270.0070.03720.87
5.5.260.0070.08320.80
5.5.250.0030.08320.64
5.5.240.0130.06020.19
5.4.450.0670.06719.47
5.4.440.0830.04719.57
5.4.430.0630.06319.62
5.4.420.0670.06019.62
5.4.410.0630.06319.57
5.4.400.0870.06319.28
5.4.390.0700.05718.97
5.4.380.0870.05718.83
5.4.370.0730.05719.28
5.4.360.0730.05319.14
5.4.350.0870.03319.25
5.4.340.0770.04718.82
5.4.320.0700.05319.14
5.4.310.0630.05719.25
5.4.300.0730.05319.05
5.4.290.0670.05319.21
5.4.280.0700.05719.29
5.4.270.0700.05319.32
5.4.260.0730.05019.26
5.4.250.0670.05319.11
5.4.240.0770.04719.29
5.4.230.0730.04719.24
5.4.220.0700.05718.99
5.4.210.0670.05318.97
5.4.200.0700.05719.27
5.4.190.0730.05018.82
5.4.180.0800.04319.36
5.4.170.0700.05319.27
5.4.160.0830.07318.95
5.4.150.0970.06719.25
5.4.140.0800.06016.72
5.4.130.0630.05316.56
5.4.120.0870.07016.31
5.4.110.0770.05316.25
5.4.100.0770.04716.62
5.4.90.0670.05016.53
5.4.80.0700.04716.44
5.4.70.0000.04016.17
5.4.60.0200.04716.49
5.4.50.0300.06716.44
5.4.40.0230.07016.52
5.4.30.0030.04716.25
5.4.20.0030.06716.42
5.4.10.0300.03716.22

preferences:
128.24 ms | 1398 KiB | 7 Q