3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Person { private $string; public function __constructor(string $string) { $this->string = $string; } } function test_types(Person $person = null) { if ($person instanceof Person) { echo "TRUE"; } }

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.0040.01216.63
8.3.50.0090.00916.34
8.3.40.0070.00718.49
8.3.30.0100.01018.67
8.3.20.0070.00020.34
8.3.10.0080.00323.66
8.3.00.0040.00423.51
8.2.180.0110.00416.32
8.2.170.0140.00718.88
8.2.160.0090.00522.96
8.2.150.0060.00325.66
8.2.140.0050.00224.66
8.2.130.0070.00020.52
8.2.120.0050.00326.35
8.2.110.0060.00321.05
8.2.100.0110.00018.09
8.2.90.0000.00818.97
8.2.80.0000.00917.97
8.2.70.0050.00317.38
8.2.60.0050.00317.80
8.2.50.0040.00418.10
8.2.40.0050.00220.47
8.2.30.0040.00420.91
8.2.20.0040.00417.98
8.2.10.0000.00717.98
8.2.00.0000.00817.81
8.1.280.0160.00325.92
8.1.270.0070.00022.14
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0090.00022.75
8.1.230.0070.00420.43
8.1.220.0040.00717.74
8.1.210.0030.00518.77
8.1.200.0050.00517.22
8.1.190.0060.00317.11
8.1.180.0050.00218.10
8.1.170.0080.00018.50
8.1.160.0040.00418.63
8.1.150.0040.00420.00
8.1.140.0030.00319.12
8.1.130.0030.00718.94
8.1.120.0040.00317.24
8.1.110.0050.00317.33
8.1.100.0040.00417.19
8.1.90.0040.00417.22
8.1.80.0070.00017.27
8.1.70.0000.00717.38
8.1.60.0030.00517.36
8.1.50.0000.00717.34
8.1.40.0000.00717.30
8.1.30.0080.00017.52
8.1.20.0000.00817.43
8.1.10.0030.00617.29
8.1.00.0040.00417.21
8.0.300.0050.00319.15
8.0.290.0040.00416.58
8.0.280.0000.00718.19
8.0.270.0040.00417.09
8.0.260.0060.00318.30
8.0.250.0000.00616.84
8.0.240.0050.00316.73
8.0.230.0070.00016.81
8.0.220.0000.00716.61
8.0.210.0030.00516.80
8.0.200.0000.00616.66
8.0.190.0040.00416.86
8.0.180.0000.00716.66
8.0.170.0000.00716.82
8.0.160.0070.00016.79
8.0.150.0030.00716.71
8.0.140.0080.00016.64
8.0.130.0030.00313.27
8.0.120.0070.00016.63
8.0.110.0040.00416.67
8.0.100.0040.00416.63
8.0.90.0000.00716.73
8.0.80.0060.00916.71
8.0.70.0050.00216.79
8.0.60.0040.00416.76
8.0.50.0000.00716.58
8.0.30.0100.00616.86
8.0.20.0140.00717.40
8.0.10.0050.00316.98
8.0.00.0080.01216.54
7.4.330.0020.00215.55
7.4.320.0000.00716.47
7.4.300.0060.00016.48
7.4.290.0030.00316.38
7.4.280.0030.00316.39
7.4.270.0040.00416.43
7.4.260.0030.00316.48
7.4.250.0070.00016.34
7.4.240.0030.00516.52
7.4.230.0030.00316.16
7.4.220.0130.00616.54
7.4.210.0110.01416.56
7.4.200.0030.00316.26
7.4.160.0130.00516.33
7.4.150.0150.00817.40
7.4.140.0110.01217.86
7.4.130.0080.00816.16
7.4.120.0110.00916.38
7.4.110.0070.01016.41
7.4.100.0090.00916.29
7.4.90.0070.01016.48
7.4.80.0070.01019.39
7.4.70.0140.00316.34
7.4.60.0040.01216.31
7.4.50.0090.00616.37
7.4.40.0030.01316.25
7.4.30.0140.00316.34
7.4.00.0080.00615.07
7.3.330.0020.00213.00
7.3.320.0000.00613.15
7.3.310.0000.00616.20
7.3.300.0030.00316.08
7.3.290.0080.00716.15
7.3.280.0100.00716.16
7.3.270.0060.01317.40
7.3.260.0150.00216.23
7.3.250.0120.00516.32
7.3.240.0110.00816.17
7.3.230.0080.00816.33
7.3.210.0030.01416.29
7.3.200.0030.01316.29
7.3.190.0030.01316.19
7.3.180.0130.00316.18
7.3.170.0130.00316.23
7.3.160.0120.00416.27
7.3.120.0100.00714.33
7.3.110.0070.01014.34
7.3.100.0040.00814.93
7.3.90.0030.01314.74
7.3.80.0100.00714.97
7.3.70.0080.00814.66
7.3.60.0120.00314.78
7.3.50.0070.01014.59
7.3.40.0100.00314.82
7.3.30.0000.01214.48
7.3.20.0110.00716.56
7.3.10.0100.00716.40
7.3.00.0070.00716.36
7.2.330.0130.00316.24
7.2.320.0030.01316.27
7.2.310.0110.00816.57
7.2.300.0130.00916.38
7.2.290.0160.00716.57
7.2.240.0060.00614.51
7.2.230.0030.01414.49
7.2.220.0000.01814.67
7.2.210.0100.00715.02
7.2.200.0040.00715.04
7.2.190.0060.00914.63
7.2.180.0000.01414.49
7.2.170.0080.00614.71
7.2.160.0100.00714.54
7.2.150.0000.01216.77
7.2.140.0070.01016.84
7.2.130.0040.00716.71
7.2.120.0040.00816.82
7.2.110.0070.00716.77
7.2.100.0040.00816.79
7.2.90.0030.01016.80
7.2.80.0080.00416.82
7.2.70.0030.01416.94
7.2.60.0020.01216.85
7.2.50.0060.00616.70
7.2.40.0070.00316.63
7.2.30.0080.00616.65
7.2.20.0060.01016.76
7.2.10.0060.00616.60
7.2.00.0070.01016.79
7.1.330.0070.00715.43
7.1.320.0030.00815.43
7.1.310.0100.00615.30
7.1.300.0040.01115.59
7.1.290.0040.01115.24
7.1.280.0000.01415.37
7.1.270.0090.00315.66
7.1.260.0070.00415.56
7.1.250.0000.01715.71
7.1.200.0060.00915.55
7.1.110.0730.01315.99
7.1.100.0730.00716.14
7.1.90.0860.00715.61
7.1.80.0820.00715.73
7.1.70.0880.00715.25
7.1.60.1220.01333.12
7.1.50.2000.01632.88
7.1.40.1530.01032.18
7.1.30.2960.01434.32
7.1.20.0280.01234.50
7.1.10.0000.01816.54
7.1.00.0000.01916.40
7.0.250.0650.01715.62
7.0.240.0810.00715.67
7.0.230.0880.00715.25
7.0.220.1390.01015.79
7.0.210.0800.00714.63
7.0.200.3140.01614.87
7.0.190.2600.01314.78
7.0.180.2090.01914.39
7.0.170.0130.00816.18
7.0.160.0160.00416.11
7.0.150.0060.01115.96
7.0.140.0130.00916.14
7.0.130.0100.01016.39
7.0.120.0100.01016.21
7.0.110.0050.01016.03
7.0.100.0090.00816.17
7.0.90.0060.01115.84
7.0.80.0110.01116.07
7.0.70.0080.00815.98
7.0.60.0120.00615.96
7.0.50.0000.02116.24
7.0.40.0040.01616.36
7.0.30.0060.01116.54
7.0.20.0040.01616.16
7.0.10.0000.02016.18
7.0.00.0120.00716.16

preferences:
67.32 ms | 401 KiB | 5 Q