3v4l.org

run code in 300+ PHP versions simultaneously
<?php namspace Card; class SorryYoureLeaving { protected $to; public function __construct($name) { $this->to = $name; } public function greet() { for ($i = 0; $i < 3; $i++) { echo 'For he\'s a jolly good fellow'; } echo 'And so say all of us'; } } $card = new Card\SorryYoureLeaving('Alec'); $card->greet();

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.350.0160.04712.01
5.4.340.0090.05512.01
5.4.320.0150.05612.49
5.4.310.0070.05712.49
5.4.300.0100.03712.49
5.4.290.0050.04712.50
5.4.280.0180.07212.39
5.4.270.0180.08112.39
5.4.260.0110.07712.39
5.4.250.0180.07212.39
5.4.240.0090.05512.39
5.4.230.0090.04812.38
5.4.220.0100.07912.38
5.4.210.0060.05012.38
5.4.200.0060.04512.38
5.4.190.0100.05312.38
5.4.180.0040.05212.38
5.4.170.0100.05212.38
5.4.160.0060.04212.38
5.4.150.0060.05312.38
5.4.140.0110.06712.07
5.4.130.0150.05412.05
5.4.120.0080.07212.02
5.4.110.0090.04112.01
5.4.100.0120.04612.01
5.4.90.0110.04012.01
5.4.80.0190.08512.01
5.4.70.0080.04412.00
5.4.60.0080.03812.01
5.4.50.0080.05412.01
5.4.40.0080.04612.00
5.4.30.0130.03811.99
5.4.20.0080.03811.99
5.4.10.0150.06611.99
5.4.00.0060.04311.48
5.3.290.0100.04412.80
5.3.280.0150.06012.71
5.3.270.0100.04712.72
5.3.260.0080.04412.72
5.3.250.0060.04712.47
5.3.240.0180.09612.72
5.3.230.0090.05612.71
5.3.220.0150.07612.68
5.3.210.0170.06612.68
5.3.200.0220.10712.68
5.3.190.0300.06812.68
5.3.180.0250.09512.68
5.3.170.0650.17112.67
5.3.160.0250.13512.68
5.3.150.0290.08912.67
5.3.140.1350.10212.66
5.3.130.0210.08112.66
5.3.120.0230.08412.66
5.3.110.0270.06712.66
5.3.100.0200.06212.12
5.3.90.0260.07512.09
5.3.80.0180.07812.08
5.3.70.0290.08212.08
5.3.60.0190.08112.06
5.3.50.0310.08812.00
5.3.40.0230.06712.00
5.3.30.0420.09511.95
5.3.20.0150.06111.73
5.3.10.0230.06911.70
5.3.00.0240.06611.68
5.2.170.0040.0369.18
5.2.160.0100.0429.18
5.2.150.0230.0379.18
5.2.140.0290.0889.18
5.2.130.0090.0669.14
5.2.120.0180.0629.14
5.2.110.0140.0659.15
5.2.100.0250.0779.14
5.2.90.0150.0829.14
5.2.80.0160.0629.14
5.2.70.0170.0629.14
5.2.60.0110.0529.09
5.2.50.0160.0629.06
5.2.40.0090.0549.03
5.2.30.0110.0469.02
5.2.20.0100.0349.01
5.2.10.0160.0718.92
5.2.00.0280.0618.78
5.1.60.0170.0458.07
5.1.50.0060.0608.07
5.1.40.0130.0328.05
5.1.30.0100.0458.40
5.1.20.0190.0558.41
5.1.10.0190.0548.14
5.1.00.0140.0448.14
5.0.50.0180.0396.63
5.0.40.0140.0416.48
5.0.30.0100.0576.29
5.0.20.0210.0366.27
5.0.10.0130.0396.24
5.0.00.0310.1046.23
4.4.90.0110.0754.78
4.4.80.0230.0664.76
4.4.70.0230.0534.75
4.4.60.0370.0534.75
4.4.50.0130.0544.77
4.4.40.0190.1244.71
4.4.30.0390.0924.76
4.4.20.0130.0664.85
4.4.10.0060.0714.85
4.4.00.0030.0734.76
4.3.110.0120.0394.67
4.3.100.0080.0564.66
4.3.90.0120.0484.63
4.3.80.0100.0524.59
4.3.70.0260.0544.63
4.3.60.0260.0404.63
4.3.50.0090.0334.62
4.3.40.0100.0314.54
4.3.30.0090.0493.28
4.3.20.0100.0293.26
4.3.10.0070.0423.22
4.3.00.0070.0176.55

preferences:
143.79 ms | 1394 KiB | 7 Q