3v4l.org

run code in 300+ PHP versions simultaneously
<?php $name = 'aresa'; $value = 'someValue'; $user_id = 'someID'; var_dump("\n[start]" . time() . "|$name|$value|$user_id" . '[end]'); // this derefers $user_id somehow (end it probably evaled to false (which is 0) so $user_id[0] var_dump(PHP_EOL . '[start]' . time() . '|' . $name . '|' . $value . '|' . $user_id . '[end]'); class Foo { public function foo($name = '', $value = '', $user_id = '') { $inputString = "\n[start]" . time() . "|$name|$value|$user_id" . '[end]'; var_dump($inputString); } } $x = new Foo; $x->foo($name, $value, $user_id);

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.4.00.0040.01515.21
7.3.120.0090.00914.92
7.3.110.0030.01514.92
7.3.100.0000.01715.12
7.3.90.0100.00714.61
7.3.80.0030.01014.82
7.3.70.0040.00714.82
7.3.60.0100.00314.68
7.3.50.0100.00314.59
7.3.40.0040.01114.71
7.3.30.0070.00714.80
7.3.20.0090.00616.69
7.3.10.0140.00216.30
7.3.00.0180.00316.41
7.2.250.0100.00714.91
7.2.240.0100.01015.13
7.2.230.0030.01415.05
7.2.220.0030.00615.35
7.2.210.0060.00315.20
7.2.200.0040.00715.07
7.2.190.0090.00915.08
7.2.180.0030.01314.98
7.2.170.0030.01314.86
7.2.130.0080.00816.31
7.2.120.0150.00616.34
7.2.110.0130.01016.31
7.2.100.0070.01116.67
7.2.90.0150.01116.64
7.2.80.0070.01016.11
7.2.70.0080.01716.28
7.2.60.0100.00916.57
7.2.50.0230.00316.66
7.2.40.0210.00316.07
7.2.30.0190.00316.36
7.2.20.0100.01016.13
7.2.10.0200.00416.54
7.2.00.0070.00918.12
7.1.330.0070.00715.93
7.1.320.0060.00615.75
7.1.310.0090.00615.45
7.1.300.0110.00415.75
7.1.290.0040.00715.85
7.1.280.0030.01215.86
7.1.270.0060.00915.83
7.1.260.0030.00715.79
7.1.250.0110.00615.16
7.1.200.0000.01215.82
7.1.100.0060.00618.07
7.1.70.0030.00617.21
7.1.60.0000.02419.40
7.1.50.0110.00016.66
7.1.00.0100.07022.23
7.0.200.0070.00316.66
7.0.140.0000.07722.21
7.0.100.0100.08320.02
7.0.90.0030.05320.00
7.0.80.0030.06019.99
7.0.70.0470.07719.91
7.0.60.0470.08319.88
7.0.50.0470.06020.20
7.0.40.0070.07719.96
7.0.30.0070.05019.94
7.0.20.0030.08720.17
7.0.10.0130.04020.11
7.0.00.0130.07320.15
5.6.280.0070.06721.07
5.6.250.0100.08320.81
5.6.240.0070.08720.73
5.6.230.0070.08320.69
5.6.220.0170.07720.62
5.6.210.0030.08020.65
5.6.200.0100.06021.13
5.6.190.0130.07721.05
5.6.180.0070.06720.96
5.6.170.0130.08021.05
5.6.160.0070.05321.09
5.6.150.0100.06021.05
5.6.140.0100.05020.91
5.6.130.0070.07021.05
5.6.120.0070.07321.02
5.6.110.0030.09021.06
5.6.100.0000.08021.15
5.6.90.0030.08720.98
5.6.80.0030.06020.32
5.6.70.0070.08320.43
5.6.60.0100.07020.40
5.6.50.0130.07020.43
5.6.40.0070.08020.36
5.6.30.0130.07720.53
5.6.20.0030.05020.48
5.6.10.0130.05020.38
5.6.00.0170.06020.41
5.5.380.0100.06020.37
5.5.370.0100.05020.36
5.5.360.0130.07720.54
5.5.350.0100.04720.42
5.5.340.0070.07320.92
5.5.330.0170.06020.93
5.5.320.0130.06720.91
5.5.310.0170.06720.87
5.5.300.0030.07320.79
5.5.290.0130.07720.83
5.5.280.0070.08320.86
5.5.270.0130.06320.82
5.5.260.0100.07720.76
5.5.250.0070.05020.61
5.5.240.0030.08020.26
5.5.230.0130.07320.29
5.5.220.0200.07020.15
5.5.210.0130.07720.08
5.5.200.0000.05020.16
5.5.190.0200.07020.23
5.5.180.0070.05020.25
5.5.160.0070.05720.24
5.5.150.0070.04720.18
5.5.140.0130.07320.08
5.5.130.0030.08320.16
5.5.120.0030.08320.16
5.5.110.0100.06019.99
5.5.100.0000.09320.10
5.5.90.0030.06020.07
5.5.80.0100.08020.06
5.5.70.0100.07020.13
5.5.60.0100.07320.05
5.5.50.0070.08320.03
5.5.40.0100.07020.13
5.5.30.0030.04719.97
5.5.20.0070.06720.14
5.5.10.0100.07019.95
5.5.00.0030.06020.01
5.4.450.0070.07719.41
5.4.440.0130.06319.36
5.4.430.0100.07319.37
5.4.420.0130.07319.24
5.4.410.0070.07719.42
5.4.400.0100.07319.16
5.4.390.0070.06719.13
5.4.380.0070.07318.92
5.4.370.0070.07319.23
5.4.360.0030.08019.09
5.4.350.0070.07718.91
5.4.340.0030.07718.85
5.4.320.0030.08019.21
5.4.310.0070.07019.03
5.4.300.0070.04719.02
5.4.290.0070.08019.17
5.4.280.0030.05719.12
5.4.270.0130.04019.05
5.4.260.0030.05319.13
5.4.250.0070.07319.13
5.4.240.0030.07319.04
5.4.230.0070.07719.18
5.4.220.0130.08019.02
5.4.210.0170.06719.08
5.4.200.0100.07719.04
5.4.190.0130.07319.22
5.4.180.0070.06318.89
5.4.170.0030.08019.04
5.4.160.0100.03719.13
5.4.150.0070.08319.16
5.4.140.0070.05016.29
5.4.130.0070.07716.40
5.4.120.0030.03716.19
5.4.110.0030.08016.27
5.4.100.0000.08716.46
5.4.90.0030.04716.41
5.4.80.0030.07016.26
5.4.70.0130.03016.45
5.4.60.0030.07316.25
5.4.50.0030.04016.47
5.4.40.0070.07016.32
5.4.30.0070.07316.47
5.4.20.0130.06016.29
5.4.10.0070.06716.46
5.4.00.0100.07015.72
5.3.290.0030.07014.79
5.3.280.0000.07014.61
5.3.270.0170.05714.67
5.3.260.0070.07714.55
5.3.250.0030.08014.67
5.3.240.0030.07314.63
5.3.230.0000.06314.66
5.3.220.0100.04014.54
5.3.210.0130.06014.68
5.3.200.0130.06014.59
5.3.190.0100.05314.54
5.3.180.0100.03314.62
5.3.170.0030.07314.65
5.3.160.0070.06314.59
5.3.150.0100.08014.58
5.3.140.0100.07314.68
5.3.130.0070.07314.58
5.3.120.0070.05314.64
5.3.110.0070.07014.57
5.3.100.0130.07714.02
5.3.90.0030.07713.95
5.3.80.0070.05314.01
5.3.70.0100.05014.07
5.3.60.0030.04314.06
5.3.50.0000.04314.04
5.3.40.0030.04314.05
5.3.30.0070.03314.03
5.3.20.0100.03713.72
5.3.10.0100.03013.68
5.3.00.0070.03713.53
5.2.170.0030.03011.28
5.2.160.0070.02711.26
5.2.150.0100.06011.18
5.2.140.0030.03011.04
5.2.130.0070.02711.18
5.2.120.0000.03711.24
5.2.110.0030.03011.01
5.2.100.0030.03011.11
5.2.90.0000.03011.20
5.2.80.0030.02710.96
5.2.70.0100.02311.00
5.2.60.0070.02311.09
5.2.50.0100.02010.93
5.2.40.0030.03011.13
5.2.30.0000.04310.96
5.2.20.0000.03310.95
5.2.10.0100.05010.98
5.2.00.0100.03010.85
5.1.60.0000.03710.05
5.1.50.0030.0279.98
5.1.40.0070.0239.99
5.1.30.0000.03010.27
5.1.20.0000.02710.31
5.1.10.0000.02710.07
5.1.00.0030.02310.07
5.0.50.0030.0308.59
5.0.40.0000.0208.26
5.0.30.0000.0538.31
5.0.20.0000.0208.30
5.0.10.0000.0178.16
5.0.00.0000.0378.24
4.4.90.0000.0176.87
4.4.80.0000.0176.87
4.4.70.0000.0176.87
4.4.60.0000.0176.87
4.4.50.0030.0136.87
4.4.40.0000.0276.87
4.4.30.0030.0176.87
4.4.20.0000.0176.87
4.4.10.0000.0236.87
4.4.00.0000.0276.87
4.3.110.0030.0206.87
4.3.100.0000.0306.87
4.3.90.0000.0136.87
4.3.80.0000.0236.87
4.3.70.0030.0276.87
4.3.60.0000.0136.87
4.3.50.0000.0176.87
4.3.40.0000.0306.87
4.3.30.0000.0176.87
4.3.20.0030.0136.87
4.3.10.0030.0136.87
4.3.00.0030.0106.87

preferences:
42.03 ms | 401 KiB | 5 Q