3v4l.org

run code in 300+ PHP versions simultaneously
<?php class gimmeName{ public $array = array('Tisha', 'Vesta', 'Josephine'); public function giveMeUniqueName(){ shuffle($this->array); return array_shift($this->array); } } $gn = new gimmeName; echo $gn->giveMeUniqueName() . PHP_EOL; echo $gn->giveMeUniqueName() . PHP_EOL; echo $gn->giveMeUniqueName() . PHP_EOL;

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.3.00.0140.00016.61
7.2.130.0100.00716.56
7.2.120.0130.00316.76
7.2.110.0080.00616.65
7.2.100.0110.00816.40
7.2.90.0060.01016.84
7.2.80.0070.01016.68
7.2.70.0120.00417.10
7.2.60.0060.00916.75
7.2.50.0030.01316.87
7.2.40.0140.00316.93
7.2.30.0040.01216.98
7.2.20.0170.00016.81
7.2.10.0170.00316.91
7.2.00.0090.00618.15
7.1.250.0030.01015.75
7.1.240.0070.00715.70
7.1.230.0070.00715.37
7.1.220.0040.00815.81
7.1.210.0030.01015.78
7.1.200.0030.01115.84
7.1.190.0100.00315.59
7.1.180.0030.01315.67
7.1.170.0090.00615.71
7.1.160.0050.00515.91
7.1.150.0160.00015.83
7.1.140.0090.00915.66
7.1.130.0090.00615.45
7.1.120.0090.00915.86
7.1.110.0070.01015.89
7.1.100.0100.00715.63
7.1.90.0110.00815.82
7.1.80.0090.00915.65
7.1.70.0090.00616.27
7.1.60.0060.00816.61
7.1.50.0090.01215.98
7.1.40.0080.01115.54
7.1.30.0060.01215.55
7.1.20.0120.00415.71
7.1.10.0070.00715.83
7.1.00.0110.04218.96
7.0.330.0080.00415.22
7.0.320.0110.00415.19
7.0.310.0030.00915.10
7.0.300.0090.00615.11
7.0.290.0080.00415.25
7.0.280.0060.00915.15
7.0.270.0100.00314.92
7.0.260.0070.01014.97
7.0.250.0090.00615.04
7.0.240.0120.00415.36
7.0.230.0160.00315.11
7.0.220.0100.01015.25
7.0.210.0110.00315.20
7.0.200.0320.00714.99
7.0.190.0110.00715.09
7.0.180.0160.00615.20
7.0.170.0100.01315.31
7.0.160.0100.00715.25
7.0.150.0160.00615.32
7.0.140.0180.00715.16
7.0.130.0120.01215.23
7.0.120.0140.00715.20
7.0.110.0080.04317.79
7.0.100.0280.03817.67
7.0.90.0270.04917.68
7.0.80.0480.03717.71
7.0.70.0240.05017.80
7.0.60.0200.04017.73
7.0.50.0260.03217.67
7.0.40.0310.04116.76
7.0.30.0310.02916.84
7.0.20.0120.03916.76
7.0.10.0250.02916.62
7.0.00.0180.04816.66
5.6.380.0040.00713.89
5.6.370.0000.01314.36
5.6.360.0060.00314.05
5.6.350.0040.01213.79
5.6.340.0030.00714.16
5.6.330.0040.00813.79
5.6.320.0090.00314.10
5.6.310.0090.00614.31
5.6.300.0070.01414.61
5.6.290.0070.00714.48
5.6.280.0110.00814.14
5.6.270.0110.00814.30
5.6.260.0110.04717.64
5.6.250.0130.03417.50
5.6.240.0170.04617.73
5.6.230.0140.03917.66
5.6.220.0160.03517.41
5.6.210.0090.03417.56
5.6.200.0120.04817.49
5.6.190.0170.03117.55
5.6.180.0110.04117.38
5.6.170.0120.02917.58
5.6.160.0100.04317.51
5.6.150.0070.04717.55
5.6.140.0050.04017.64
5.6.130.0130.03317.72
5.6.120.0100.04417.32
5.6.110.0100.04517.52
5.6.100.0120.03017.45
5.6.90.0070.03117.61
5.6.80.0120.03017.23
5.6.70.0050.03217.13
5.6.60.0110.03517.21
5.6.50.0070.03317.27
5.6.40.0110.03017.11
5.6.30.0070.03217.27
5.6.20.0050.04617.24
5.6.10.0120.03017.45
5.6.00.0020.03817.25

preferences:
30.82 ms | 401 KiB | 5 Q