3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Hoge { private $val = 1; public function getVal() { return $this->val; } } function check($class_name) { echo "================", $class_name, "\n"; $h = new \ReflectionClass($class_name); echo "abstract? ", $h->isAbstract() ? "true" : "false" , "\n"; echo "trait? ", $h->isTrait() ? "true" : "false" , "\n"; echo "interface? ", $h->isInterface() ? "true" : "false" , "\n"; echo "実体化可能? ", $h->isInstantiable() ? "true" : "false" , "\n"; } check("Hoge");

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.60.0090.00616.50
8.3.50.0090.00921.96
8.3.40.0120.00318.63
8.3.30.0170.00318.71
8.3.20.0080.00020.21
8.3.10.0030.00523.70
8.3.00.0050.00320.67
8.2.180.0060.00916.75
8.2.170.0110.00322.96
8.2.160.0070.00720.28
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0030.00519.17
8.2.120.0040.00426.35
8.2.110.0040.00422.13
8.2.100.0060.00618.04
8.2.90.0030.00519.22
8.2.80.0030.00517.97
8.2.70.0000.01217.63
8.2.60.0080.00017.93
8.2.50.0000.00818.07
8.2.40.0030.00522.15
8.2.30.0070.00020.49
8.2.20.0000.00717.75
8.2.10.0000.00717.97
8.2.00.0040.00418.03
8.1.280.0080.00825.92
8.1.270.0040.00420.39
8.1.260.0080.00028.09
8.1.250.0070.00028.09
8.1.240.0060.00323.79
8.1.230.0070.00419.08
8.1.220.0000.00817.79
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0030.00617.09
8.1.180.0040.00418.10
8.1.170.0040.00418.46
8.1.160.0000.00820.69
8.1.150.0040.00418.82
8.1.140.0040.00419.41
8.1.130.0000.00817.69
8.1.120.0040.00417.44
8.1.110.0040.00417.40
8.1.100.0000.00717.38
8.1.90.0040.00417.35
8.1.80.0050.00217.35
8.1.70.0040.00417.36
8.1.60.0030.00517.50
8.1.50.0090.00017.46
8.1.40.0050.00317.41
8.1.30.0030.00617.54
8.1.20.0000.00817.57
8.1.10.0070.00017.61
8.1.00.0000.00717.39
8.0.300.0040.00418.77
8.0.290.0080.00016.88
8.0.280.0000.00718.50
8.0.270.0030.00317.24
8.0.260.0060.00017.23
8.0.250.0030.00316.98
8.0.240.0030.00316.95
8.0.230.0000.00716.89
8.0.220.0000.00716.90
8.0.210.0000.00716.83
8.0.200.0030.00316.84
8.0.190.0070.00016.85
8.0.180.0050.00216.73
8.0.170.0030.00516.86
8.0.160.0030.00316.77
8.0.150.0030.00416.78
8.0.140.0040.00416.80
8.0.130.0000.00513.30
8.0.120.0040.00416.78
8.0.110.0000.00716.71
8.0.100.0070.00016.84
8.0.90.0000.00716.70
8.0.80.0000.01416.78
8.0.70.0040.00416.62
8.0.60.0080.00016.66
8.0.50.0040.00316.86
8.0.30.0100.00916.98
8.0.20.0090.01217.40
8.0.10.0000.00816.79
8.0.00.0120.00616.82
7.4.330.0050.00016.73
7.4.320.0030.00316.44
7.4.300.0030.00316.59
7.4.290.0030.00616.50
7.4.280.0040.00416.52
7.4.270.0070.00016.49
7.4.260.0030.00316.59
7.4.250.0050.00316.36
7.4.240.0030.00416.54
7.4.230.0040.00416.60
7.4.220.0030.01416.62
7.4.210.0060.00916.47
7.4.200.0000.00716.49
7.4.160.0180.00616.48
7.4.150.0060.01217.40
7.4.140.0140.00517.86
7.4.130.0110.00616.50
7.4.120.0080.00916.55
7.4.110.0150.00316.42
7.4.100.0150.00916.46
7.4.90.0060.01216.54
7.4.80.0160.00319.39
7.4.70.0070.01116.57
7.4.60.0130.00316.55
7.4.50.0130.00316.38
7.4.40.0130.00316.66
7.4.30.0040.01316.35
7.4.00.0030.01214.80
7.3.330.0070.00013.10
7.3.320.0030.00313.29
7.3.310.0030.00316.11
7.3.300.0070.00016.34
7.3.290.0090.00616.24
7.3.280.0080.00816.28
7.3.270.0180.00017.40
7.3.260.0140.00316.34
7.3.250.0100.00916.43
7.3.240.0070.01016.53
7.3.230.0100.00716.51
7.3.210.0120.00916.49
7.3.200.0100.01316.48
7.3.190.0140.00316.57
7.3.180.0090.00616.55
7.3.170.0090.00916.52
7.3.160.0040.01416.66
7.2.330.0060.01316.79
7.2.320.0140.00916.75
7.2.310.0070.01016.43
7.2.300.0090.00816.75
7.2.290.0220.00016.64
7.2.00.0060.00619.62
7.1.100.0060.00318.26
7.1.70.0080.00017.18
7.1.60.0090.01219.52
7.1.50.0120.00617.05
7.1.00.0070.07322.40
7.0.200.0040.00416.98
7.0.60.0070.08320.00
7.0.50.0100.07017.96
7.0.40.0130.07320.14
7.0.30.0400.07720.26
7.0.20.0300.07720.16
7.0.10.0100.08320.21
7.0.00.0070.08320.30
5.6.280.0070.06321.13
5.6.210.0070.08320.73
5.6.200.0100.05718.25
5.6.190.0130.04720.69
5.6.180.0270.04720.63
5.6.170.0400.06720.58
5.6.160.0100.04320.39
5.6.150.0070.03718.29
5.6.140.0070.03718.18
5.6.130.0070.08318.24
5.6.120.0130.08021.15
5.6.110.0030.04321.02
5.6.100.0170.06720.98
5.6.90.0070.04020.98
5.6.80.0030.08720.40
5.5.350.3930.03720.33
5.5.340.0100.06718.10
5.5.330.0130.07720.27
5.5.320.0170.04320.19
5.5.310.0200.07720.34
5.5.300.0100.07717.98
5.5.290.0070.08018.01
5.5.280.0100.07020.85
5.5.270.0130.07720.88
5.5.260.0100.07320.98
5.5.250.0030.08320.80
5.5.240.4100.03320.36

preferences:
37.37 ms | 401 KiB | 5 Q