3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { static function bar($a) { echo $a; } } $r = new ReflectionClass('foo'); $m = $r->getMethod('bar'); $m->invokeArgs('some_other_class_name', ['baz']); $m->invokeArgs(42, ['baz']); $m->invokeArgs(new DateTime, ['baz']); $m->invokeArgs($r, ['baz']);

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.10.0000.00820.63
8.3.140.0070.01116.56
8.3.130.0100.00718.50
8.3.120.0120.00019.04
8.3.110.0130.00616.60
8.3.100.0000.00924.06
8.3.90.0050.00326.77
8.3.80.0070.00317.97
8.3.70.0130.00916.75
8.3.60.0040.01116.50
8.3.50.0110.00821.95
8.3.40.0040.01118.66
8.3.30.0170.00018.91
8.3.20.0040.00418.89
8.3.10.0080.00021.85
8.3.00.0000.00822.29
8.2.260.0000.00720.78
8.2.250.0130.00616.81
8.2.240.0070.00317.15
8.2.230.0030.00520.94
8.2.220.0070.00437.54
8.2.210.0030.00526.77
8.2.200.0030.00616.50
8.2.190.0130.00616.75
8.2.180.0170.00318.41
8.2.170.0090.00622.96
8.2.160.0080.00821.00
8.2.150.0040.00424.18
8.2.140.0050.00224.66
8.2.130.0040.00422.25
8.2.120.0000.00826.35
8.2.110.0080.00321.00
8.2.100.0090.00317.84
8.2.90.0000.00817.91
8.2.80.0040.00419.27
8.2.70.0030.00517.50
8.2.60.0100.00017.50
8.2.50.0040.00417.63
8.2.40.0060.00319.35
8.2.30.0030.00519.25
8.2.20.0040.00417.68
8.2.10.0060.00318.00
8.2.00.0040.00418.10
8.1.310.0100.01018.57
8.1.300.0130.00720.13
8.1.290.0030.00618.88
8.1.280.0090.01225.92
8.1.270.0040.00423.88
8.1.260.0000.00728.09
8.1.250.0040.00428.09
8.1.240.0080.00322.34
8.1.230.0080.00820.83
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0000.00817.36
8.1.190.0080.00017.22
8.1.180.0000.00818.10
8.1.170.0000.00917.62
8.1.160.0030.00322.04
8.1.150.0040.00418.82
8.1.140.0040.00419.50
8.1.130.0000.00817.74
8.1.120.0040.00417.46
8.1.110.0050.00317.45
8.1.100.0040.00417.33
8.1.90.0070.00017.30
8.1.80.0040.00417.38
8.1.70.0000.00817.43
8.1.60.0000.00717.43
8.1.50.0030.00617.52
8.1.40.0060.00317.36
8.1.30.0030.00517.54
8.1.20.0020.00517.52
8.1.10.0050.00317.55
8.1.00.0040.00417.42
8.0.300.0070.00019.93
8.0.290.0000.00916.75
8.0.280.0050.00218.34
8.0.270.0030.00317.21
8.0.260.0030.00717.19
8.0.250.0030.00317.00
8.0.240.0000.00716.95
8.0.230.0030.00317.02
8.0.220.0030.00516.95
8.0.210.0000.00716.89
8.0.200.0090.00017.00
8.0.190.0040.00416.84
8.0.180.0050.00316.81
8.0.170.0040.00416.82
8.0.160.0070.00016.85
8.0.150.0000.00716.74
8.0.140.0030.00416.79
8.0.130.0000.00513.33
8.0.120.0030.00516.86
8.0.110.0050.00316.78
8.0.100.0070.00017.00
8.0.90.0000.00716.87
8.0.80.0000.01516.78
8.0.70.0000.00816.88
8.0.60.0040.00416.77
8.0.50.0000.00716.76
8.0.30.0070.01016.88
8.0.20.0090.01017.40
8.0.10.0040.00417.05
8.0.00.0090.00917.02
7.4.330.0050.00015.08
7.4.320.0000.00616.48
7.4.300.0000.00916.59
7.4.290.0000.00716.69
7.4.280.0060.00316.71
7.4.270.0030.00316.76
7.4.260.0040.00716.64
7.4.250.0000.00816.50
7.4.240.0070.00016.63
7.4.230.0040.00416.66
7.4.220.0090.00916.66
7.4.210.0090.00916.61
7.4.200.0040.00416.84
7.4.160.0070.00816.64
7.4.150.0030.01317.40
7.4.140.0110.00517.86
7.4.130.0080.00816.67
7.4.120.0120.00516.62
7.4.110.0110.01116.73
7.4.100.0150.00616.71
7.4.90.0090.00916.77
7.4.80.0090.01219.39
7.4.70.0070.01016.75
7.4.60.0070.01116.69
7.4.50.0030.01216.76
7.4.40.0090.00916.81
7.4.30.0150.00616.64
7.4.10.0060.01015.18
7.4.00.0080.01015.04
7.3.330.0030.00313.45
7.3.320.0060.00013.45
7.3.310.0040.00416.36
7.3.300.0070.00016.39
7.3.290.0070.00016.31
7.3.280.0080.00816.42
7.3.270.0120.00617.40
7.3.260.0080.00916.52
7.3.250.0120.00816.48
7.3.240.0110.00816.62
7.3.230.0140.01016.57
7.3.210.0110.00616.51
7.3.200.0080.00816.77
7.3.190.0060.01116.57
7.3.180.0170.00316.59
7.3.170.0150.00316.73
7.3.160.0040.01716.55
7.3.130.0060.01314.87
7.3.120.0050.01314.94
7.3.110.0050.01214.86
7.3.100.0050.01115.07
7.3.90.0090.00714.97
7.3.80.0100.00514.98
7.3.70.0110.00214.68
7.3.60.0050.00514.99
7.3.50.0080.00414.90
7.3.40.0090.00414.99
7.3.30.0080.00514.99
7.3.20.0070.00716.70
7.3.10.0110.00516.69
7.3.00.0090.00516.72
7.2.330.0150.00316.95
7.2.320.0160.00616.87
7.2.310.0070.01416.86
7.2.300.0060.01216.93
7.2.290.0120.00516.71
7.2.260.0100.01015.47
7.2.250.0070.01015.01
7.2.240.0080.00815.34
7.2.230.0060.01015.09
7.2.220.0080.00515.05
7.2.210.0070.01015.07
7.2.200.0070.00415.24
7.2.190.0050.00815.05
7.2.180.0080.00814.92
7.2.170.0040.00914.89
7.2.160.0030.01015.28
7.2.150.0060.00616.89
7.2.140.0050.00516.99
7.2.130.0070.01017.02
7.2.120.0070.00717.05
7.2.110.0090.00617.12
7.2.100.0110.00316.80
7.2.90.0000.00917.09
7.2.80.0030.01216.97
7.2.70.0000.01217.19
7.2.60.0040.00716.93
7.2.50.0030.00917.11
7.2.40.0070.00716.78
7.2.30.0030.00717.05
7.2.20.0040.01117.05
7.2.10.0030.01016.90
7.2.00.0100.00818.05
7.1.330.0070.00715.82
7.1.320.0050.00915.71
7.1.310.0080.00815.58
7.1.300.0030.01216.03
7.1.290.0060.00615.78
7.1.280.0050.00715.96
7.1.270.0050.00615.71
7.1.260.0060.00615.84
7.1.250.0000.01315.81
7.1.240.0040.00415.93
7.1.230.0040.01215.97
7.1.220.0030.01015.82
7.1.210.0040.00715.88
7.1.200.0080.00615.89
7.1.190.0070.00715.79
7.1.180.0030.01015.88
7.1.170.0000.00915.68
7.1.160.0060.00615.86
7.1.150.0030.00615.76
7.1.140.0090.00315.81
7.1.130.0060.00315.95
7.1.120.0100.00715.64
7.1.110.0070.01015.92
7.1.100.0030.00715.63
7.1.90.0060.00315.80
7.1.80.0070.00715.66
7.1.70.0050.01016.54
7.1.60.0050.00917.79
7.1.50.0070.00715.97
7.1.40.0100.00715.73
7.1.30.0030.01215.90
7.1.20.0070.00715.91
7.1.10.0070.01015.45
7.1.00.0080.03719.15
7.0.330.0060.00615.20
7.0.320.0030.00915.52
7.0.310.0100.00315.55
7.0.300.0060.00315.62
7.0.290.0070.00715.55
7.0.280.0030.00915.45
7.0.270.0070.00715.40
7.0.260.0070.01015.46
7.0.250.0030.00715.57
7.0.240.0050.00515.73
7.0.230.0060.00615.43
7.0.220.0040.00415.35
7.0.210.0100.00715.66
7.0.200.0130.01015.16
7.0.190.0060.00615.29
7.0.180.0000.01315.29
7.0.170.0030.01215.71
7.0.160.0040.01215.63
7.0.150.0060.00315.63
7.0.140.0030.01015.75
7.0.130.0030.01015.66
7.0.120.0080.00615.67
7.0.110.0080.00015.20
7.0.100.0180.02717.78
7.0.90.0130.03117.85
7.0.80.0100.02917.78
7.0.70.0070.03317.69
7.0.60.0100.03217.81
7.0.50.0100.03317.88
7.0.40.0080.03117.04
7.0.30.0080.03516.79
7.0.20.0070.03616.97
7.0.10.0020.03716.98
7.0.00.0090.03416.91
5.6.400.0000.01014.46
5.6.390.0060.00614.44
5.6.380.0070.00714.18
5.6.370.0100.00714.61
5.6.360.0070.00714.60
5.6.350.0060.00614.54
5.6.340.0090.00314.52
5.6.330.0090.00014.68
5.6.320.0040.00914.46
5.6.310.0170.00014.59
5.6.300.0000.01214.54
5.6.290.0030.00914.52
5.6.280.0090.00614.59
5.6.270.0000.01214.45
5.6.260.0030.00714.22
5.6.250.0100.03217.39
5.6.240.0050.03717.50
5.6.230.0110.02817.45
5.6.220.0110.04317.67
5.6.210.0130.02817.57
5.6.200.0080.03217.74
5.6.190.0100.03317.74
5.6.180.0080.03417.70
5.6.170.0160.02517.79
5.6.160.0080.04017.70
5.6.150.0080.03517.91
5.6.140.0030.04117.86
5.6.130.0140.03317.84
5.6.120.0100.03317.80
5.6.110.0130.03317.76
5.6.100.0120.03017.84
5.6.90.0200.02717.71
5.6.80.0120.03817.39
5.6.70.0030.03617.40
5.6.60.0070.03217.40
5.6.50.0080.03017.58
5.6.40.0050.03317.39
5.6.30.0120.03717.54
5.6.20.0070.03617.41
5.6.10.0100.04217.29
5.6.00.0050.04817.33

preferences:
65.78 ms | 403 KiB | 5 Q