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.4.120.0040.00522.13
8.4.110.0100.00918.85
8.4.100.0030.00817.86
8.4.90.0130.00917.77
8.4.80.0160.00817.58
8.4.70.0100.00917.72
8.4.60.0130.00818.44
8.4.50.0100.01017.72
8.4.40.0030.00517.81
8.4.30.0090.00020.31
8.4.20.0100.01019.75
8.4.10.0040.00419.41
8.3.250.0130.00618.77
8.3.240.0140.00516.60
8.3.230.0070.00316.71
8.3.220.0050.00317.30
8.3.210.0130.00616.73
8.3.200.0090.00316.56
8.3.190.0060.01117.35
8.3.180.0090.01218.46
8.3.170.0090.00016.48
8.3.160.0030.01418.92
8.3.150.0060.01217.19
8.3.140.0000.00918.27
8.3.130.0070.00416.61
8.3.120.0090.00920.55
8.3.110.0150.00320.94
8.3.100.0030.00624.06
8.3.90.0080.00026.77
8.3.80.0000.00816.50
8.3.70.0030.01216.58
8.3.60.0040.01116.63
8.3.50.0060.01219.93
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.290.0060.00320.29
8.2.280.0120.00618.36
8.2.270.0140.00418.73
8.2.260.0000.00916.84
8.2.250.0050.00316.63
8.2.240.0000.00817.05
8.2.230.0030.00522.58
8.2.220.0030.00637.54
8.2.210.0040.00426.77
8.2.200.0100.00016.50
8.2.190.0070.00716.75
8.2.180.0140.00725.92
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.330.0110.00821.66
8.1.320.0110.00415.86
8.1.310.0040.00417.83
8.1.300.0070.01118.41
8.1.290.0060.00318.88
8.1.280.0130.00625.92
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:
122.03 ms | 403 KiB | 5 Q