3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Qwe { public ${''} = 20; public function __construct(){ echo $this->{''}.PHP_EOL; } } ${''}=10; echo ${''}.PHP_EOL; // 10 echo ${null}.PHP_EOL; // 10 $b = new Qwe;

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)
7.2.90.0030.01314.45
7.2.80.2280.00914.52
7.2.70.0120.00414.48
7.2.60.0060.01014.78
7.2.50.0110.00714.93
7.2.40.0310.00314.96
7.2.30.0170.00014.77
7.2.20.0040.01614.57
7.2.10.0100.01014.87
7.2.00.0000.01814.95
7.1.210.3260.00613.71
7.1.200.2160.00313.78
7.1.190.0120.00813.39
7.1.180.0170.00013.35
7.1.170.0090.00913.56
7.1.160.0110.00713.51
7.1.150.0320.00613.61
7.1.140.0090.00913.57
7.1.130.0630.00713.27
7.1.120.0200.00013.78
7.1.110.0250.00613.45
7.1.100.0830.00713.72
7.1.90.1980.01013.63
7.1.80.2090.00713.52
7.1.70.0660.00913.45
7.1.60.0550.01331.79
7.1.50.0250.01431.60
7.1.40.0280.00731.94
7.1.30.0370.00631.78
7.1.20.2810.01031.86
7.1.10.0120.00913.87
7.1.00.2810.00313.48
7.0.310.0150.00013.05
7.0.300.0090.00513.36
7.0.290.0660.00613.25
7.0.280.1090.00312.91
7.0.270.0530.00612.93
7.0.260.0120.00313.27
7.0.250.0100.00313.23
7.0.240.0110.00413.21
7.0.230.4240.01013.08
7.0.220.2410.01013.31
7.0.210.0070.01013.26
7.0.200.0170.00313.11
7.0.190.0150.01213.01
7.0.180.0040.01113.38
7.0.170.0850.00313.59
7.0.160.2520.01013.22
7.0.150.1430.00613.52
7.0.140.0130.00413.50
7.0.130.0110.00312.90
7.0.120.1430.01013.20
7.0.110.0130.01313.11
7.0.100.0060.01013.16
7.0.90.1130.01013.08
7.0.80.0090.00913.09
7.0.70.0090.00613.20
7.0.60.0100.00713.24
7.0.50.0060.01113.51
7.0.40.0220.00713.40
7.0.30.0120.00913.49
7.0.20.0370.00613.18
7.0.10.0170.00013.11
7.0.00.0120.00313.51

preferences:
143 ms | 1394 KiB | 7 Q