3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { function first(){ } function second(){ } } $foo = new Foo(); $reflect = new ReflectionClass($foo); $props = $reflect->getMethods(); foreach ($props as $prop) { print $prop->getName() . "\n"; }

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.1.60.0040.00417.59
8.1.50.0000.00817.48
8.1.40.0080.00017.54
8.1.30.0030.00517.62
8.1.20.0060.00317.71
8.1.10.0060.00317.54
8.1.00.0070.00017.52
8.0.190.0030.00417.01
8.0.180.0000.00716.91
8.0.170.0000.00816.88
8.0.160.0040.00416.90
8.0.150.0030.00516.78
8.0.140.0030.00516.89
8.0.130.0000.00613.39
8.0.120.0000.00816.76
8.0.110.0040.00416.86
8.0.100.0030.00516.72
8.0.90.0000.00717.00
8.0.80.0060.00916.85
8.0.70.0040.00416.89
8.0.60.0040.00416.85
8.0.50.0050.00216.78
8.0.30.0150.00417.05
8.0.20.0130.00617.40
8.0.10.0070.00017.04
8.0.00.0070.01216.80
7.4.290.0030.00316.64
7.4.280.0030.00316.52
7.4.270.0000.00816.61
7.4.260.0030.00616.48
7.4.250.0000.00716.51
7.4.240.0030.00416.58
7.4.230.0070.00016.70
7.4.220.0060.01216.50
7.4.210.0110.00416.66
7.4.200.0050.00216.57
7.4.190.0030.00316.68
7.4.160.0030.01316.49
7.4.150.0090.00917.40
7.4.140.0140.00317.86
7.4.130.0060.01416.37
7.4.120.0140.00616.38
7.4.110.0040.01216.41
7.4.100.0030.01416.53
7.4.90.0110.01116.51
7.4.80.0170.00316.57
7.4.70.0060.00916.62
7.4.60.0110.00716.61
7.4.50.0000.00816.51
7.4.40.0030.01322.77
7.4.30.0100.00616.38
7.4.00.0060.01015.10
7.3.330.0030.00213.14
7.3.320.0000.00513.09
7.3.310.0080.00016.25
7.3.300.0040.00416.25
7.3.290.0100.00316.30
7.3.280.0060.00916.28
7.3.270.0000.01717.40
7.3.260.0120.00616.57
7.3.250.0200.00016.60
7.3.240.0090.00916.59
7.3.230.0160.00616.39
7.3.210.0060.01016.36
7.3.200.0130.00319.39
7.3.190.0060.01216.25
7.3.180.0160.00016.38
7.3.170.0030.01416.50
7.3.160.0080.01116.47
7.3.120.0070.00714.70
7.2.330.0070.01016.47
7.2.320.0100.01016.71
7.2.310.0100.00716.66
7.2.300.0070.01016.75
7.2.290.0150.00916.84
7.2.60.0180.01016.78
7.1.200.0060.00915.66
7.1.70.0040.00417.02
7.1.60.0110.00719.32
7.1.50.0040.00816.64
7.1.00.0030.07322.28
7.0.200.0070.00416.50
7.0.140.0000.07722.00
7.0.100.0470.08320.01
7.0.90.0300.04019.89
7.0.80.0430.07019.95
7.0.70.0600.06720.13
7.0.60.0570.07319.73
7.0.50.0400.08320.27
7.0.40.0100.08020.15
7.0.30.0170.07320.10
7.0.20.0100.08020.11
7.0.10.0030.08020.07
7.0.00.0070.08720.03
5.6.280.0000.07320.89
5.6.250.0030.09020.70
5.6.240.0000.09020.64
5.6.230.0030.05320.63
5.6.220.0070.07720.56
5.6.210.0030.08720.69
5.6.200.0100.06721.05
5.6.190.0070.07321.04
5.6.180.0270.06720.95
5.6.170.0100.07721.04
5.6.160.0100.07321.09
5.6.150.0100.07021.06
5.6.140.0030.08321.05
5.6.130.0100.07721.05
5.6.120.0130.07021.05
5.6.110.0170.07020.94
5.6.100.0100.05021.01
5.6.90.0070.05321.02
5.6.80.0100.07320.34
5.6.70.0030.08020.41
5.6.60.0130.07320.39
5.6.50.0170.07020.48
5.6.40.0030.08720.53
5.6.30.0130.07320.45
5.6.20.0100.07320.30
5.6.10.0000.08720.30
5.6.00.0130.07020.41
5.5.380.0070.04320.45
5.5.370.0130.07720.52
5.5.360.0100.08020.38
5.5.350.0130.08020.43
5.5.340.0170.07020.94
5.5.330.0070.07320.89
5.5.320.0200.07320.80
5.5.310.0070.08320.88
5.5.300.0100.08020.93
5.5.290.0070.05320.92
5.5.280.0070.09720.89
5.5.270.0070.07020.82
5.5.260.0100.08720.73
5.5.250.0130.07320.73
5.5.240.0000.08020.25
5.5.230.0070.07720.21
5.5.220.0070.04720.11
5.5.210.0130.08020.16
5.5.200.0130.07020.24
5.5.190.0070.08020.08
5.5.180.0070.07020.27
5.5.160.0030.08020.07
5.5.150.0070.07320.25
5.5.140.0030.07720.25
5.5.130.0130.07020.27
5.5.120.0070.08020.08
5.5.110.0100.07720.23
5.5.100.0130.04320.02
5.5.90.0030.08020.11
5.5.80.0100.07320.07
5.5.70.0070.03720.07
5.5.60.0100.07020.16
5.5.50.0000.05720.06
5.5.40.0100.07020.15
5.5.30.0100.07320.15
5.5.20.0100.07320.05
5.5.10.0170.06720.09
5.5.00.0000.08720.11
5.4.450.0100.07019.51
5.4.440.0130.07019.21
5.4.430.0130.05719.39
5.4.420.0100.07719.24
5.4.410.0170.06719.30
5.4.400.0100.07019.05
5.4.390.0030.06318.91
5.4.380.0000.05019.13
5.4.370.0070.05019.16
5.4.360.0030.07719.09
5.4.350.0100.06718.85
5.4.340.0030.08019.13
5.4.320.0170.06318.88
5.4.310.0070.07019.21
5.4.300.0100.07018.88
5.4.290.0030.07719.03
5.4.280.0030.08019.14
5.4.270.0070.07719.05
5.4.260.0070.07719.21
5.4.250.0100.07319.10
5.4.240.0100.06719.13
5.4.230.0000.07719.08
5.4.220.0130.06719.20
5.4.210.0130.06018.95
5.4.200.0070.08019.13
5.4.190.0130.06719.04
5.4.180.0070.04719.05
5.4.170.0000.08019.15
5.4.160.0000.08319.02
5.4.150.0070.04718.88
5.4.140.0030.08016.43
5.4.130.0030.06316.33
5.4.120.0000.07316.45
5.4.110.0030.07316.43
5.4.100.0070.06716.49
5.4.90.0070.08716.47
5.4.80.0030.07316.47
5.4.70.0100.06316.33
5.4.60.0030.04716.41
5.4.50.0030.08016.32
5.4.40.0030.07316.54
5.4.30.0130.06316.36
5.4.20.0130.06716.48
5.4.10.0000.07316.31
5.4.00.0170.06015.88
5.3.290.0170.06714.72
5.3.280.0100.07014.74
5.3.270.0070.07314.55
5.3.260.0100.07714.54
5.3.250.0070.05314.69
5.3.240.0030.07714.62
5.3.230.0070.07714.63
5.3.220.0070.07014.57
5.3.210.0070.06714.67
5.3.200.0030.07714.63
5.3.190.0070.06714.58
5.3.180.0030.05014.62
5.3.170.0030.08014.57
5.3.160.0230.06314.54
5.3.150.0030.08014.64
5.3.140.0170.06714.49
5.3.130.0070.04314.58
5.3.120.0070.07314.48
5.3.110.0100.06714.66
5.3.100.0030.06014.11
5.3.90.0030.05714.04
5.3.80.0100.07314.06
5.3.70.0100.06014.11
5.3.60.0100.07014.14
5.3.50.0070.07013.91
5.3.40.0100.07013.93
5.3.30.0030.05013.80
5.3.20.0100.07013.76
5.3.10.0070.04013.60
5.3.00.0070.05313.78
5.2.170.0000.04011.06
5.2.160.0070.06311.01
5.2.150.0070.05711.21
5.2.140.0030.06011.09
5.2.130.0070.06011.24
5.2.120.0030.04311.20
5.2.110.0030.04711.24
5.2.100.0000.03011.22
5.2.90.0030.03311.23
5.2.80.0030.03011.22
5.2.70.0000.03011.09
5.2.60.0030.03011.12
5.2.50.0030.03310.96
5.2.40.0000.03011.12
5.2.30.0070.02311.04
5.2.20.0030.02710.88
5.2.10.0070.02310.93
5.2.00.0070.02310.81
5.1.60.0000.02710.12
5.1.50.0000.03010.07
5.1.40.0070.01710.05
5.1.30.0030.02310.27
5.1.20.0000.02710.42
5.1.10.0030.0309.92
5.1.00.0100.01710.07
5.0.50.0000.0209.90
5.0.40.0070.0309.90
5.0.30.0030.0409.90
5.0.20.0030.0239.90
5.0.10.0000.0309.90
5.0.00.0000.0339.90
4.4.90.0030.0209.90
4.4.80.0000.0139.90
4.4.70.0030.0179.90
4.4.60.0030.0139.90
4.4.50.0000.0139.90
4.4.40.0000.0279.90
4.4.30.0000.0139.90
4.4.20.0070.0179.90
4.4.10.0000.0339.90
4.4.00.0030.0439.90
4.3.110.0030.0179.90
4.3.100.0000.0139.90
4.3.90.0030.0139.90
4.3.80.0000.0239.90
4.3.70.0000.0239.90
4.3.60.0000.0179.90
4.3.50.0000.0209.90
4.3.40.0000.0239.90
4.3.30.0030.0209.90
4.3.20.0000.0279.90
4.3.10.0000.0139.90
4.3.00.0030.0179.90

preferences:
14.73 ms | 406 KiB | 5 Q