3v4l.org

run code in 300+ PHP versions simultaneously
<?php $name = 'aresa'; $value = 'someValue'; $user_id = 'someID'; echo '1-->'; 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] echo '2-->'; var_dump(PHP_EOL . '[start]' . time() . '|' . $name . '|' . $value . '|' . $user_id . '[end]'); class Foo { public function bar($name = '', $value = '', $user_id = '') { $inputString = "\n[start]" . time() . "|$name|$value|$user_id" . '[end]'; echo '3-->'; var_dump($inputString); } } $x = new Foo; $x->bar($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.0070.00915.09
7.3.120.0060.01114.95
7.3.110.0050.01314.91
7.3.100.0070.00714.80
7.3.90.0080.00914.58
7.3.80.0030.00914.88
7.3.70.0060.01014.86
7.3.60.0060.01014.85
7.3.50.0050.01114.95
7.3.40.0090.00614.78
7.3.30.0080.00114.91
7.3.20.0050.01116.44
7.3.10.0110.00416.67
7.3.00.0060.00916.55
7.2.250.0080.00915.15
7.2.240.0100.00914.99
7.2.230.0060.01315.09
7.2.220.0050.00814.75
7.2.210.0080.00915.16
7.2.200.0070.00514.80
7.2.190.0030.01214.86
7.2.180.0060.00915.09
7.2.170.0070.00515.07
7.1.330.0050.00915.76
7.1.320.0050.00715.86
7.1.310.0060.00715.92
7.1.300.0060.00515.81
7.1.290.0030.01215.71
7.1.280.0070.00915.62
7.1.270.0040.00615.88
7.1.260.0090.00715.77
7.1.200.0110.02215.66
7.1.100.0070.01118.02
7.1.70.0030.00716.93
7.1.60.0060.01919.40
7.1.50.0070.00416.79
7.1.00.0000.08022.32
7.0.200.0030.00716.90
7.0.140.0030.07322.18
7.0.90.0030.06019.87
7.0.80.0030.05319.93
7.0.70.0070.08019.93
7.0.60.0130.03319.86
7.0.50.0130.07320.28
7.0.40.0030.04319.95
7.0.30.0070.06020.03
7.0.20.0030.07320.12
7.0.10.0070.09319.99
7.0.00.0170.07720.07
5.6.280.0030.07321.12
5.6.240.0100.04020.52
5.6.230.0030.08020.63
5.6.220.0170.04020.65
5.6.210.0030.05020.56
5.6.200.0100.08721.04
5.6.190.0070.05721.06
5.6.180.0130.07721.07
5.6.170.0200.07320.96
5.6.160.0130.08020.96
5.6.150.0070.08021.05
5.6.140.0100.04021.12
5.6.130.0000.09020.96
5.6.120.0170.07320.96
5.6.110.0070.08021.01
5.6.100.0070.07021.07
5.6.90.0030.09321.04
5.6.80.0130.06720.33
5.6.70.0070.07720.42
5.6.60.0100.04720.39
5.6.50.0070.07720.47
5.6.40.0070.07720.32
5.6.30.0130.07320.29
5.6.20.0170.05720.30
5.6.10.0030.08020.41
5.6.00.0100.07320.36
5.5.380.0130.06720.37
5.5.370.0170.06020.59
5.5.360.0030.09020.35
5.5.350.0130.04320.32
5.5.340.0100.06020.84
5.5.330.0070.04720.80
5.5.320.0130.08020.93
5.5.310.0100.07720.89
5.5.300.0170.05720.86
5.5.290.0130.07020.90
5.5.280.0070.09020.65
5.5.270.0070.07320.71
5.5.260.0070.04720.79
5.5.250.0100.07720.58
5.5.240.0170.05320.29
5.5.230.0170.07020.25
5.5.220.0030.04320.24
5.5.210.0000.05320.27
5.5.200.0030.07320.14
5.5.190.0100.07020.00
5.5.180.0100.08020.25
5.5.160.0100.07720.25
5.5.150.0130.07720.24
5.5.140.0070.08720.27
5.5.130.0070.08720.17
5.5.120.0130.07320.28
5.5.110.0070.07720.26
5.5.100.0130.03720.16
5.5.90.0130.06719.95
5.5.80.0070.08020.13
5.5.70.0170.05020.07
5.5.60.0100.04020.09
5.5.50.0000.06020.16
5.5.40.0030.08320.15
5.5.30.0030.04320.09
5.5.20.0130.06720.05
5.5.10.0130.07319.98
5.5.00.0130.04020.12
5.4.450.0030.08719.27
5.4.440.0100.07319.37
5.4.430.0270.06319.18
5.4.420.0130.06719.37
5.4.410.0030.04319.04
5.4.400.0030.08019.23
5.4.390.0030.04719.14
5.4.380.0000.08319.13
5.4.370.0070.07319.05
5.4.360.0030.04019.13
5.4.350.0200.06319.18
5.4.340.0170.07318.88
5.4.320.0000.08319.04
5.4.310.0170.06019.03
5.4.300.0100.07719.05
5.4.290.0100.04719.24
5.4.280.0000.06018.94
5.4.270.0130.07018.94
5.4.260.0070.06718.84
5.4.250.0170.07019.11
5.4.240.0130.07018.86
5.4.230.0130.07318.94
5.4.220.0130.07318.84
5.4.210.0070.08019.11
5.4.200.0070.04018.84
5.4.190.0070.03718.84
5.4.180.0030.08318.86
5.4.170.0070.07719.12
5.4.160.0100.07719.10
5.4.150.0030.04318.88
5.4.140.0100.07016.32
5.4.130.0170.06316.42
5.4.120.0030.04016.41
5.4.110.0070.03316.36
5.4.100.0030.03716.50
5.4.90.0030.03716.46
5.4.80.0100.03016.41
5.4.70.0030.03716.33
5.4.60.0000.04016.45
5.4.50.0100.03016.37
5.4.40.0030.03716.30
5.4.30.0070.03316.32
5.4.20.0030.03716.36
5.4.10.0100.06316.33
5.4.00.0130.06315.85
5.3.290.0030.07014.73
5.3.280.0100.08314.71
5.3.270.0100.07014.72
5.3.260.0070.05714.68
5.3.250.0000.08014.61
5.3.240.0030.04314.70
5.3.230.0070.06314.70
5.3.220.0000.05014.64
5.3.210.0030.04714.63
5.3.200.0030.03714.61
5.3.190.0030.03714.64
5.3.180.0030.03714.71
5.3.170.0000.04014.64
5.3.160.0030.04014.57
5.3.150.0000.05314.50
5.3.140.0130.02714.50
5.3.130.0000.04014.66
5.3.120.0100.03014.64
5.3.110.0030.07714.48
5.3.100.0170.06014.04
5.3.90.0030.06714.09
5.3.80.0170.05714.09
5.3.70.0100.03014.13
5.3.60.0030.06313.99
5.3.50.0130.06713.85
5.3.40.0070.05713.97
5.3.30.0030.05713.96
5.3.20.0070.04713.83
5.3.10.0030.03313.71
5.3.00.0000.04313.76
5.2.170.0000.04311.21
5.2.160.0100.03711.26
5.2.150.0030.03011.05
5.2.140.0030.04711.24
5.2.130.0070.03011.02
5.2.120.0030.03011.09
5.2.110.0030.03011.03
5.2.100.0030.03011.15
5.2.90.0030.03011.22
5.2.80.0000.03011.11
5.2.70.0000.03310.96
5.2.60.0000.03011.10
5.2.50.0070.02710.88
5.2.40.0000.03310.89
5.2.30.0030.02710.98
5.2.20.0030.03311.02
5.2.10.0000.03310.78
5.2.00.0030.03010.78
5.1.60.0070.02010.61
5.1.50.0030.04710.61
5.1.40.0030.03010.61
5.1.30.0030.02310.61
5.1.20.0000.03710.61
5.1.10.0030.02310.61
5.1.00.0030.02710.61
5.0.50.0000.02710.61
5.0.40.0030.03010.61
5.0.30.0030.03010.61
5.0.20.0030.03010.61
5.0.10.0000.02310.61
5.0.00.0000.03310.61
4.4.90.0030.01310.61
4.4.80.0000.01710.61
4.4.70.0030.01310.61
4.4.60.0030.01310.61
4.4.50.0030.01310.61
4.4.40.0000.02310.61
4.4.30.0000.02010.61
4.4.20.0070.01310.61
4.4.10.0000.01710.61
4.4.00.0000.02710.61
4.3.110.0000.02010.61
4.3.100.0000.01710.61
4.3.90.0030.01710.61
4.3.80.0000.02310.61
4.3.70.0100.01010.61
4.3.60.0030.01310.61
4.3.50.0000.01310.61
4.3.40.0000.02010.61
4.3.30.0000.02010.61
4.3.20.0000.01710.61
4.3.10.0030.01710.61
4.3.00.0000.01310.61

preferences:
37.07 ms | 400 KiB | 5 Q