3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); trait Macroable { public function __call($name, $args) { } } class Builder { use Macroable { __call as macroCall; } /** * Insert new records into the database. * * @param array $values * @return bool */ public function insert(array $values) { } } $ref = new \ReflectionClass(Builder::class); $method = $ref->getMethod('insert'); var_dump($method->getDeclaringClass()->getTraitAliases());

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.3.40.0150.00718.68
8.3.30.0060.00918.54
8.3.20.0030.00524.18
8.3.10.0060.00324.66
8.3.00.0040.00426.16
8.2.170.0080.00818.83
8.2.160.0070.00722.96
8.2.150.0000.00725.66
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00419.66
8.2.110.0030.00720.39
8.2.100.0080.00417.78
8.2.90.0000.00917.84
8.2.80.0030.00617.97
8.2.70.0050.00317.63
8.2.60.0040.00418.04
8.2.50.0040.00417.58
8.2.40.0000.00817.63
8.2.30.0060.00317.70
8.2.20.0000.00719.35
8.2.10.0040.00417.63
8.2.00.0000.00919.23
8.1.270.0040.00422.15
8.1.260.0030.00526.35
8.1.250.0070.00028.09
8.1.240.0040.00422.34
8.1.230.0070.00422.70
8.1.220.0030.00517.76
8.1.210.0000.00818.79
8.1.200.0060.00317.35
8.1.190.0060.00317.25
8.1.180.0060.00319.01
8.1.170.0050.00317.62
8.1.160.0000.00718.77
8.1.150.0000.00718.61
8.1.140.0050.00217.45
8.1.130.0030.00318.86
8.1.120.0080.00317.50
8.1.110.0000.00817.39
8.1.100.0050.00217.52
8.1.90.0070.00017.49
8.1.80.0030.00617.53
8.1.70.0000.00717.48
8.1.60.0040.00417.57
8.1.50.0040.00417.57
8.1.40.0030.00517.51
8.1.30.0030.00517.66
8.1.20.0030.00517.67
8.1.10.0000.00717.54
8.1.00.0040.00417.38
8.0.300.0000.00720.03
8.0.290.0040.00416.63
8.0.280.0040.00318.35
8.0.270.0070.00016.70
8.0.260.0080.00018.37
8.0.250.0030.00616.95
8.0.240.0070.00017.00
8.0.230.0070.00016.83
8.0.220.0000.00716.93
8.0.210.0030.00316.77
8.0.200.0070.00016.82
8.0.190.0060.00316.87
8.0.180.0000.00716.81
8.0.170.0080.00016.82
8.0.160.0080.00016.80
8.0.150.0040.00416.75
8.0.140.0040.00416.85
8.0.130.0030.00313.25
8.0.120.0050.00213.31
8.0.110.0120.00013.36
8.0.100.0120.00013.38
8.0.90.0090.00313.34
8.0.80.0040.00813.31
8.0.70.0130.00013.25
8.0.60.0040.00813.33
8.0.50.0050.00813.31
8.0.30.0120.00013.31
8.0.20.0060.00613.39
8.0.10.0120.00013.41
8.0.00.0000.00713.37
7.4.330.0060.00015.55
7.4.320.0000.00616.62
7.4.300.0000.00716.59
7.4.290.0040.00416.43
7.4.280.0030.00716.50
7.4.270.0040.00416.50
7.4.260.0000.00716.57
7.4.250.0000.00513.15
7.4.240.0090.00413.40
7.4.230.0140.00013.27
7.4.220.0080.00413.36
7.4.210.0080.00413.19
7.4.200.0090.00313.29
7.4.190.0080.00513.33
7.4.180.0060.00613.45
7.4.160.0070.00713.27
7.4.150.0130.00013.16
7.4.140.0120.00013.28
7.4.130.0110.00013.16
7.4.120.0120.00013.13
7.4.110.0110.00013.14
7.4.100.0050.00713.20
7.4.90.0090.00313.28
7.4.80.0100.00313.20
7.4.70.0100.00313.21
7.4.60.0100.00313.14
7.4.50.0090.00413.03
7.4.40.0100.00313.05
7.4.30.0130.00013.13
7.4.20.0130.00013.08
7.4.10.0130.00013.23
7.4.00.0130.00013.26
7.3.330.0050.00516.21
7.3.320.0120.00012.94
7.3.310.0080.00613.13
7.3.300.0140.00012.98
7.3.290.0120.00013.04
7.3.280.0100.00213.20
7.3.270.0100.00513.11
7.3.260.0140.00013.16
7.3.250.0040.01113.16
7.3.240.0120.00313.16
7.3.230.0120.00013.20
7.3.220.0080.00513.16
7.3.210.0070.00513.06
7.3.200.0120.00013.08
7.3.190.0130.00012.96
7.3.180.0090.00413.00
7.3.170.0130.00013.03
7.3.160.0080.00013.07
7.3.150.0000.00512.95
7.3.140.0110.00013.00
7.3.130.0100.00013.17
7.3.120.0040.00713.17
7.3.110.0090.00012.96
7.3.100.0050.00313.00
7.3.90.0050.00513.19
7.3.80.0050.00512.94
7.3.70.0000.00713.20
7.3.60.0060.00013.33
7.3.50.0050.00213.23
7.3.40.0060.00313.32
7.3.30.0050.00413.32
7.3.20.0060.00315.00
7.3.10.0040.00415.05
7.3.00.0040.00415.03

preferences:
62.56 ms | 400 KiB | 5 Q