3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __construct($foo, $bar, $foo) {} } $r = new ReflectionClass('Foo'); $params = $r->getConstructor()->getParameters(); var_export($params[2]->name); echo "\n"; echo json_encode($params[2]->name); //echo "\n"; //var_export($params[2]->name[0] == '\u0000'); echo "\n"; var_export(json_encode($params[2]->name) == '"\u0000\u0000\u0000"' || json_encode($params[2]->name) == '"' . "\u0000\u0000\u0000" .'"');

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.6.280.0070.07020.93
5.6.240.0200.07020.62
5.6.230.0170.07020.54
5.6.220.0030.07720.60
5.6.210.0070.04320.41
5.6.200.0030.08721.18
5.6.190.0000.04721.13
5.6.180.0030.04720.94
5.6.170.0030.04021.17
5.6.160.0030.09021.08
5.6.150.0070.08021.14
5.6.140.0030.08720.93
5.6.130.0000.05720.96
5.6.120.0030.06321.14
5.6.110.0130.05721.02
5.6.100.0070.05721.07
5.6.90.0070.05021.07
5.6.80.0070.05020.39
5.6.70.0130.07720.50
5.6.60.0070.04720.43
5.6.50.0070.05020.40
5.6.40.0000.04720.36
5.6.30.0100.07720.38
5.6.20.0200.05020.39
5.6.10.0130.07020.30
5.6.00.0030.08020.45
5.5.380.0000.06720.54
5.5.370.0070.06720.35
5.5.360.0030.05020.49
5.5.350.0070.08320.38
5.5.340.0100.03720.84
5.5.330.0030.07320.91
5.5.320.0070.04020.80
5.5.310.0070.08020.88
5.5.300.0030.05320.92
5.5.290.0000.07020.92
5.5.280.0100.07720.83
5.5.270.0130.08320.92
5.5.260.0000.08320.88
5.5.250.0070.04720.45
5.5.240.0130.07020.25
5.5.230.0070.08720.28
5.5.220.0030.04720.24
5.5.210.0100.04720.30
5.5.200.0070.06720.24
5.5.190.0100.07320.17
5.5.180.0070.04020.23
5.5.160.0000.08720.27
5.5.150.0070.06020.15
5.5.140.0070.07320.23
5.5.130.0170.06720.25
5.5.120.0070.05320.24
5.5.110.0130.05720.17
5.5.100.0070.05019.98
5.5.90.0000.04320.07
5.5.80.0000.07720.02
5.5.70.0100.05020.15
5.5.60.0030.05020.14
5.5.50.0000.04720.05
5.5.40.0030.08320.14
5.5.30.0100.08020.14
5.5.20.0070.05720.05
5.5.10.0030.06020.13
5.5.00.0100.04319.91
5.4.450.0130.04019.43
5.4.440.0030.05319.37
5.4.430.0070.05319.17
5.4.420.0100.07019.53
5.4.410.0000.05719.33
5.4.400.0100.07018.88
5.4.390.0100.07719.09
5.4.380.0100.07318.85
5.4.370.0030.08019.09
5.4.360.0170.06018.85
5.4.350.0030.08018.91
5.4.340.0030.08019.03
5.4.320.0070.08319.04
5.4.310.0070.07719.23
5.4.300.0000.05019.23
5.4.290.0230.05719.07
5.4.280.0100.07718.84
5.4.270.0070.03719.18
5.4.260.0030.05719.16
5.4.250.0030.04018.89
5.4.240.0100.04719.04
5.4.230.0000.07319.12
5.4.220.0030.06318.87
5.4.210.0070.06019.11
5.4.200.0030.05719.08
5.4.190.0130.07019.20
5.4.180.0000.04319.05
5.4.170.0030.07719.04
5.4.160.0130.07019.02
5.4.150.0030.04719.14
5.4.140.0130.06716.45
5.4.130.0100.06016.36
5.4.120.0100.03716.37
5.4.110.0070.07016.38
5.4.100.0030.08016.27
5.4.90.0070.07016.28
5.4.80.0070.04716.32
5.4.70.0070.03716.41
5.4.60.0030.06016.37
5.4.50.0000.04716.46
5.4.40.0100.06316.38
5.4.30.0030.05316.50
5.4.20.0130.06316.46
5.4.10.0070.04716.40
5.4.00.0100.05015.73
5.3.290.0100.07314.78
5.3.280.0030.04014.62
5.3.270.0030.07314.66
5.3.260.0030.05014.54
5.3.250.0100.07314.73
5.3.240.0070.07714.66
5.3.230.0100.06314.70
5.3.220.0130.06714.59
5.3.210.0130.07314.46
5.3.200.0170.06314.63
5.3.190.0170.06314.68
5.3.180.0100.06714.66
5.3.170.0000.06314.67
5.3.160.0070.04714.54
5.3.150.0070.05014.62
5.3.140.0100.03714.57
5.3.130.0130.07014.50
5.3.120.0030.04314.54
5.3.110.0000.08314.58
5.3.100.0130.07014.00
5.3.90.0000.06014.00
5.3.80.0130.06713.95
5.3.70.0100.07014.00
5.3.60.0130.06314.05
5.3.50.0070.07014.04
5.3.40.0000.08013.85
5.3.30.0030.03713.81
5.3.20.0030.04313.67
5.3.10.0030.03313.54
5.3.00.0030.03713.64
5.2.170.0070.04711.03
5.2.160.0030.03311.16
5.2.150.0030.04711.20
5.2.140.0000.03011.04
5.2.130.0030.03311.16
5.2.120.0000.03011.12
5.2.110.0030.02711.16
5.2.100.0000.03011.10
5.2.90.0070.02311.14
5.2.80.0000.03011.11
5.2.70.0000.03010.98
5.2.60.0030.04711.16
5.2.50.0000.03310.93
5.2.40.0030.02710.86
5.2.30.0030.02710.89
5.2.20.0000.03310.91
5.2.10.0030.05310.77
5.2.00.0070.03710.77
5.1.60.0000.04310.05
5.1.50.0000.02710.04
5.1.40.0070.02010.06
5.1.30.0070.02010.44
5.1.20.0000.03010.44
5.1.10.0070.02710.06
5.1.00.0070.03010.13
5.0.50.0030.0278.64
5.0.40.0000.0338.40
5.0.30.0000.0278.23
5.0.20.0030.0138.29
5.0.10.0000.0238.20
5.0.00.0030.0378.05
4.4.90.0000.0306.35
4.4.80.0000.0176.35
4.4.70.0000.0176.35
4.4.60.0070.0136.35
4.4.50.0030.0206.35
4.4.40.0070.0236.35
4.4.30.0030.0136.35
4.4.20.0070.0106.35
4.4.10.0000.0176.35
4.4.00.0070.0436.35
4.3.110.0000.0176.35
4.3.100.0030.0136.35
4.3.90.0030.0136.35
4.3.80.0000.0236.35
4.3.70.0000.0176.35
4.3.60.0000.0136.35
4.3.50.0030.0136.35
4.3.40.0070.0176.35
4.3.30.0030.0106.35
4.3.20.0000.0176.35
4.3.10.0000.0176.35
4.3.00.0000.0136.35

preferences:
135.93 ms | 1398 KiB | 7 Q