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\u0000\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.0000.07720.91
5.6.240.0170.07320.64
5.6.230.0100.04020.61
5.6.220.0100.08020.56
5.6.210.0170.07320.77
5.6.200.0070.09021.04
5.6.190.0100.07721.11
5.6.180.0070.07021.06
5.6.170.0200.07020.92
5.6.160.0170.07021.17
5.6.150.0030.06721.01
5.6.140.0070.08321.04
5.6.130.0100.08021.04
5.6.120.0070.06321.14
5.6.110.0000.06720.93
5.6.100.0070.04321.16
5.6.90.0030.05321.05
5.6.80.0030.04320.45
5.6.70.0100.04020.31
5.6.60.0030.04020.51
5.6.50.0070.03720.55
5.6.40.0070.03320.31
5.6.30.0030.04020.42
5.6.20.0030.04020.35
5.6.10.0130.02720.29
5.6.00.0030.04020.36
5.5.380.0130.07720.38
5.5.370.0100.07320.43
5.5.360.0070.05020.37
5.5.350.0030.06320.43
5.5.340.0030.08320.83
5.5.330.0030.06320.84
5.5.320.0030.05020.88
5.5.310.0130.07720.91
5.5.300.0070.06320.91
5.5.290.0170.06720.92
5.5.280.0070.08720.92
5.5.270.0030.08020.90
5.5.260.0070.05020.87
5.5.250.0100.03720.71
5.5.240.0000.06020.02
5.5.230.0030.04020.02
5.5.220.0000.04320.15
5.5.210.0030.03720.19
5.5.200.0000.05020.25
5.5.190.0070.03720.17
5.5.180.0000.04720.11
5.5.160.0070.03720.25
5.5.150.0070.05720.18
5.5.140.0030.05020.26
5.5.130.0070.03720.20
5.5.120.0030.05020.18
5.5.110.0070.03320.20
5.5.100.0070.03720.11
5.5.90.0030.03720.05
5.5.80.0000.04320.15
5.5.70.0030.04020.10
5.5.60.0100.03320.05
5.5.50.0030.04020.05
5.5.40.0030.04019.99
5.5.30.0030.04020.11
5.5.20.0070.04020.05
5.5.10.0070.04020.03
5.5.00.0070.03720.10
5.4.450.0100.07319.48
5.4.440.0000.06319.46
5.4.430.0030.05019.20
5.4.420.0000.07319.57
5.4.410.0130.08019.10
5.4.400.0070.06018.85
5.4.390.0000.04319.04
5.4.380.0100.03319.06
5.4.370.0070.03319.21
5.4.360.0030.04019.09
5.4.350.0100.03719.23
5.4.340.0100.03018.90
5.4.320.0030.03718.90
5.4.310.0070.03019.13
5.4.300.0000.04018.90
5.4.290.0030.03319.17
5.4.280.0070.03318.90
5.4.270.0070.03018.90
5.4.260.0030.03319.13
5.4.250.0000.04719.23
5.4.240.0030.03318.85
5.4.230.0100.03319.04
5.4.220.0000.05719.23
5.4.210.0000.04019.15
5.4.200.0000.04318.89
5.4.190.0030.03718.89
5.4.180.0000.04019.02
5.4.170.0100.04018.94
5.4.160.0000.04318.82
5.4.150.0000.03719.10
5.4.140.0000.04016.40
5.4.130.0070.03316.39
5.4.120.0070.02716.14
5.4.110.0070.03316.43
5.4.100.0070.03316.36
5.4.90.0000.03716.43
5.4.80.0000.03716.33
5.4.70.0030.06016.33
5.4.60.0070.05716.46
5.4.50.0070.04016.44
5.4.40.0030.07316.48
5.4.30.0000.08316.31
5.4.20.0270.03316.29
5.4.10.0070.04316.36
5.4.00.0100.04715.89
5.3.290.0030.03314.80
5.3.280.0100.04314.54
5.3.270.0070.03714.68
5.3.260.0030.03714.63
5.3.250.0100.03314.66
5.3.240.0030.03714.67
5.3.230.0030.03714.57
5.3.220.0000.03314.63
5.3.210.0100.03714.63
5.3.200.0070.03714.68
5.3.190.0170.02314.53
5.3.180.0000.04014.49
5.3.170.0030.03714.55
5.3.160.0070.03014.70
5.3.150.0000.04314.59
5.3.140.0070.04014.70
5.3.130.0000.08014.52
5.3.120.0030.04714.51
5.3.110.0030.07714.66
5.3.100.0070.07714.02
5.3.90.0100.04713.97
5.3.80.0030.06314.05
5.3.70.0130.07014.04
5.3.60.0070.07014.02
5.3.50.0030.07713.83
5.3.40.0100.04713.98
5.3.30.0070.04014.00
5.3.20.0130.05013.77
5.3.10.0070.05713.66
5.3.00.0100.05013.66
5.2.170.0100.02711.17
5.2.160.0100.05311.15
5.2.150.0070.06011.20
5.2.140.0070.06311.14
5.2.130.0100.05711.16
5.2.120.0070.05711.13
5.2.110.0070.02710.99
5.2.100.0030.06311.00
5.2.90.0100.05710.99
5.2.80.0070.04711.16
5.2.70.0130.04011.18
5.2.60.0030.05011.14
5.2.50.0070.04310.91
5.2.40.0100.05011.02
5.2.30.0100.05710.96
5.2.20.0130.05310.99
5.2.10.0130.05310.91
5.2.00.0170.05010.73
5.1.60.0130.03710.04
5.1.50.0000.04310.07
5.1.40.0030.04010.06
5.1.30.0070.04310.43
5.1.20.0100.05010.27
5.1.10.0070.0479.95
5.1.00.0000.03310.19
5.0.50.0130.0338.66
5.0.40.0070.0378.37
5.0.30.0030.0678.27
5.0.20.0030.0438.32
5.0.10.0030.0338.16
5.0.00.0000.0478.24
4.4.90.0030.0337.49
4.4.80.0030.0237.49
4.4.70.0030.0237.49
4.4.60.0030.0207.49
4.4.50.0000.0337.49
4.4.40.0070.0477.49
4.4.30.0030.0337.49
4.4.20.0030.0377.49
4.4.10.0030.0337.49
4.4.00.0000.0407.49
4.3.110.0000.0377.49
4.3.100.0030.0337.49
4.3.90.0070.0277.49
4.3.80.0000.0577.49
4.3.70.0030.0237.49
4.3.60.0030.0337.49
4.3.50.0000.0407.49
4.3.40.0000.0407.49
4.3.30.0000.0237.49
4.3.20.0000.0207.49
4.3.10.0030.0307.49
4.3.00.0000.0337.49

preferences:
144.03 ms | 1394 KiB | 7 Q