3v4l.org

run code in 300+ PHP versions simultaneously
<?php function f(string $name): bool { if (in_array($name, ['__construct', '__destruct', '__unset', '__wakeup', '__clone'], true)) { return true; } return false; } function g2(string $name): bool { if ($name === '__construct' || $name === '__destruct') { return true; } return false; }

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)
8.5.10.0100.00716.42
8.5.00.0120.00919.41
8.4.160.0090.01320.35
8.4.150.0020.00014.05
8.4.140.0160.00617.54
8.4.130.0110.00618.07
8.4.120.0090.01120.33
8.4.110.0130.00722.63
8.4.100.0210.00918.81
8.4.90.0250.01019.95
8.4.80.0300.00619.33
8.4.70.0120.00519.12
8.4.60.0230.00719.14
8.4.50.0240.00719.38
8.4.40.0180.00918.49
8.4.30.0150.00419.91
8.4.20.0220.00818.69
8.4.10.0220.01019.30
8.3.280.0120.01319.94
8.3.270.0140.00516.64
8.3.260.0130.00616.61
8.3.250.0130.00518.64
8.3.240.0040.00516.64
8.3.230.0150.00317.43
8.3.220.0120.00818.63
8.3.210.0120.00518.49
8.3.200.0130.00517.37
8.3.190.0210.00717.45
8.3.180.0210.00618.57
8.3.170.0210.00417.84
8.3.160.0120.00919.45
8.3.150.0160.00517.69
8.3.140.0100.00719.55
8.3.130.0190.00618.25
8.3.120.0170.00818.48
8.3.110.0170.00919.58
8.3.100.0240.00521.17
8.3.90.0250.00822.56
8.3.80.0270.00518.09
8.3.70.0240.01118.17
8.3.60.0260.00818.17
8.3.50.0280.01117.17
8.3.40.0230.00920.71
8.3.30.0140.00519.03
8.3.20.0130.00521.73
8.3.10.0150.00721.85
8.3.00.0170.00922.71
8.2.290.0190.00719.08
8.2.280.0220.00818.38
8.2.270.0200.01018.30
8.2.260.0230.00417.19
8.2.250.0220.00917.33
8.2.240.0200.00518.71
8.2.230.0210.00520.23
8.2.220.0190.00727.79
8.2.210.0180.00722.61
8.2.200.0080.00617.26
8.2.190.0190.00917.43
8.2.180.0230.00817.21
8.2.170.0220.00821.23
8.2.160.0200.00921.07
8.2.150.0220.00422.54
8.2.140.0180.00521.99
8.2.130.0210.00622.73
8.2.120.0200.00519.34
8.2.110.0230.00420.15
8.2.100.0230.00718.40
8.2.90.0250.00818.35
8.2.80.0240.00818.28
8.2.70.0220.00718.36
8.2.60.0240.00818.36
8.2.50.0230.00918.30
8.2.40.0240.00618.57
8.2.30.0230.00518.37
8.2.20.0160.00818.46
8.2.10.0240.00618.33
8.2.00.0270.00218.36
8.1.330.0220.00720.75
8.1.320.0200.00718.04
8.1.310.0190.00618.05
8.1.300.0190.00917.75
8.1.290.0210.00424.38
8.1.280.0220.00521.94
8.1.270.0150.00921.79
8.1.260.0220.00422.66
8.1.250.0150.00323.64
8.1.240.0100.00320.67
8.1.230.0120.00618.86
8.1.220.0200.00318.21
8.1.210.0200.00318.33
8.1.200.0180.00518.20
8.1.190.0250.00418.23
8.1.180.0200.00818.18
8.1.170.0200.00518.26
8.1.160.0210.00618.24
8.1.150.0190.00318.17
8.1.140.0230.00418.22
8.1.130.0200.00718.15
8.1.120.0230.00518.20
8.1.110.0200.00818.28
8.1.100.0210.00718.25
8.1.90.0190.00718.27
8.1.80.0160.01118.27
8.1.70.0210.00718.27
8.1.60.0240.00218.37
8.1.50.0210.00718.39
8.1.40.0160.00518.40
8.1.30.0170.00718.42
8.1.20.0150.00618.45
8.1.10.0170.00417.91
8.1.00.0180.00717.74
8.0.300.0190.00517.49
8.0.290.0220.00517.51
8.0.280.0190.00417.43
8.0.270.0170.00417.49
8.0.260.0230.00417.55
8.0.250.0190.00717.49
8.0.240.0190.00617.44
8.0.230.0200.00717.53
8.0.220.0170.00817.41
8.0.210.0220.00317.47
8.0.200.0200.00617.54
8.0.190.0220.00317.44
8.0.180.0200.00517.51
8.0.170.0230.00417.52
8.0.160.0210.00717.45
8.0.150.0180.00817.46
8.0.140.0220.00417.44
8.0.130.0190.00617.42
8.0.120.0230.00217.50
8.0.110.0210.00517.38
8.0.100.0190.00617.41
8.0.90.0210.00317.39
8.0.80.0170.00717.44
8.0.70.0200.00517.42
8.0.60.0210.00517.45
8.0.50.0180.00617.52
8.0.30.0200.00617.42
8.0.20.0160.00617.53
8.0.10.0180.00317.59

preferences:
37.06 ms | 403 KiB | 5 Q