3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Captcha { const FIRST_NUM = 1; const SECOND_NUM = 9; private $num1 = rand(FIRST_NUM,SECOND_NUM); private $num2 = rand(FIRST_NUM,SECOND_NUM); function CreatNums(){ return $num1; } }

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.310.0300.04719.13
5.4.300.0270.07319.31
5.4.290.0330.06319.21
5.4.280.0300.06318.87
5.4.270.0330.06718.95
5.4.260.0300.07019.24
5.4.250.0330.06719.24
5.4.240.0300.04318.99
5.4.230.0200.08019.22
5.4.220.0270.07018.98
5.4.210.0230.07718.98
5.4.200.0270.07019.21
5.4.190.0270.07319.21
5.4.180.0300.05719.21
5.4.170.0230.06019.08
5.4.160.0200.07018.93
5.4.150.0200.04019.29
5.4.140.0230.05716.36
5.4.130.0230.07316.32
5.4.120.0200.05716.46
5.4.110.0270.05316.35
5.4.100.0230.07016.41
5.4.90.0270.06316.54
5.4.80.0200.04316.31
5.4.70.0200.03716.44
5.4.60.0270.05316.33
5.4.50.0370.05316.53
5.4.40.0200.03316.52
5.4.30.0200.03316.38
5.4.20.0270.03016.42
5.4.10.0130.04016.51
5.4.00.0200.05015.80
5.3.290.0230.07314.68
5.3.280.0300.06714.49
5.3.270.0270.07014.64
5.3.260.0230.07314.61
5.3.250.0170.04314.58
5.3.240.0300.05014.51
5.3.230.0230.05714.57
5.3.220.0270.06714.68
5.3.210.0270.05314.67
5.3.200.0300.04014.64
5.3.190.0230.07014.78
5.3.180.0200.04014.53
5.3.170.0130.04714.72
5.3.160.0200.05014.58
5.3.150.0230.04014.56
5.3.140.0170.05014.55
5.3.130.0230.07014.70
5.3.120.0300.05714.52
5.3.110.0170.04014.48
5.3.100.0270.07013.98
5.3.90.0170.06314.02
5.3.80.0200.07713.94
5.3.70.0300.06314.13
5.3.60.0300.05713.93
5.3.50.0270.04313.98
5.3.40.0230.07013.84
5.3.30.0200.07014.13
5.3.20.0230.07313.91
5.3.10.0300.06013.84
5.3.00.0300.03313.84
5.2.170.0170.04313.84
5.2.160.0270.04013.84
5.2.150.0200.05713.84
5.2.140.0200.06013.84
5.2.130.0200.05713.84
5.2.120.0230.06013.84
5.2.110.0270.03013.84
5.2.100.0230.05713.84
5.2.90.0170.05713.84
5.2.80.0200.04713.84
5.2.70.0300.02313.84
5.2.60.0200.05013.84
5.2.50.0170.06313.84
5.2.40.0200.05013.84
5.2.30.0100.04013.84
5.2.20.0200.05713.84
5.2.10.0200.06013.84
5.2.00.0230.05013.84
5.1.60.0170.03313.84
5.1.50.0230.03313.84
5.1.40.0170.03013.84
5.1.30.0130.04313.84
5.1.20.0170.05713.84
5.1.10.0130.04713.84
5.1.00.0130.05313.84
5.0.50.0100.05013.84
5.0.40.0100.04313.84
5.0.30.0130.06013.84
5.0.20.0130.04013.84
5.0.10.0130.03713.84
5.0.00.0070.05313.84
4.4.90.0130.02713.84
4.4.80.0100.02013.84
4.4.70.0100.03713.84
4.4.60.0070.03313.84
4.4.50.0070.04013.84
4.4.40.0170.04313.84
4.4.30.0070.01713.84
4.4.20.0070.03713.84
4.4.10.0170.02313.84
4.4.00.0100.05313.84
4.3.110.0130.01713.84
4.3.100.0100.02313.84
4.3.90.0100.02313.84
4.3.80.0070.03713.84
4.3.70.0100.03313.84
4.3.60.0070.03713.84
4.3.50.0170.02013.84
4.3.40.0030.03713.84
4.3.30.0030.02313.84
4.3.20.0030.03713.84
4.3.10.0030.02013.84
4.3.00.0000.02013.84

preferences:
145.38 ms | 1394 KiB | 7 Q