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"; } } test_types();

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.0060.01016.63
8.3.50.0160.00616.38
8.3.40.0060.00918.71
8.3.30.0180.00418.59
8.3.20.0000.00720.16
8.3.10.0050.00523.71
8.3.00.0040.00423.65
8.2.180.0040.01116.63
8.2.170.0110.00418.84
8.2.160.0160.00322.96
8.2.150.0070.00025.66
8.2.140.0070.00024.66
8.2.130.0050.00220.52
8.2.120.0000.00726.35
8.2.110.0000.01020.89
8.2.100.0080.00418.09
8.2.90.0040.00419.05
8.2.80.0000.00817.97
8.2.70.0040.00417.50
8.2.60.0020.00517.80
8.2.50.0040.00418.10
8.2.40.0030.00620.42
8.2.30.0050.00320.92
8.2.20.0000.00817.92
8.2.10.0040.00417.89
8.2.00.0040.00417.86
8.1.280.0110.01125.92
8.1.270.0040.00422.02
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00322.87
8.1.230.0080.00420.35
8.1.220.0030.00717.74
8.1.210.0030.00618.77
8.1.200.0040.00417.23
8.1.190.0040.00416.97
8.1.180.0040.00418.10
8.1.170.0050.00318.61
8.1.160.0030.00618.71
8.1.150.0000.00821.86
8.1.140.0040.00419.07
8.1.130.0040.00518.88
8.1.120.0040.00317.33
8.1.110.0070.00017.33
8.1.100.0070.00017.27
8.1.90.0040.00417.32
8.1.80.0040.00417.36
8.1.70.0070.00017.35
8.1.60.0050.00317.52
8.1.50.0000.00817.33
8.1.40.0040.00417.44
8.1.30.0040.00417.54
8.1.20.0000.00717.58
8.1.10.0030.00517.35
8.1.00.0040.00417.41
8.0.300.0030.00619.15
8.0.290.0020.00516.63
8.0.280.0030.00318.31
8.0.270.0070.00017.11
8.0.260.0030.00320.02
8.0.250.0000.00616.71
8.0.240.0050.00516.79
8.0.230.0030.00316.80
8.0.220.0070.00016.78
8.0.210.0000.00816.70
8.0.200.0000.00616.73
8.0.190.0030.00616.72
8.0.180.0000.00816.68
8.0.170.0080.00016.85
8.0.160.0040.00416.71
8.0.150.0000.00716.55
8.0.140.0040.00416.71
8.0.130.0000.00513.14
8.0.120.0050.00216.64
8.0.110.0040.00416.61
8.0.100.0000.00716.76
8.0.90.0000.00716.70
8.0.80.0050.00916.70
8.0.70.0040.00416.78
8.0.60.0040.00416.76
8.0.50.0000.00716.76
8.0.30.0090.00916.80
8.0.20.0120.00717.40
8.0.10.0040.00416.90
8.0.00.0040.01516.78
7.4.330.0000.00515.55
7.4.320.0030.00316.39
7.4.300.0070.00016.42
7.4.290.0000.00716.46
7.4.280.0000.00716.32
7.4.270.0000.00716.43
7.4.260.0030.00316.32
7.4.250.0040.00416.39
7.4.240.0080.00016.30
7.4.230.0000.00816.34
7.4.220.0030.01316.49
7.4.210.0070.01216.50
7.4.200.0000.00816.62
7.4.160.0100.00816.39
7.4.150.0070.01017.40
7.4.140.0100.00917.86
7.4.130.0060.01316.60
7.4.120.0100.00816.44
7.4.110.0070.01316.35
7.4.100.0140.00316.34
7.4.90.0070.01016.41
7.4.80.0130.00319.39
7.4.70.0150.00616.48
7.4.60.0120.00616.36
7.4.50.0090.00616.23
7.4.40.0030.01916.21
7.4.30.0130.00716.41
7.4.00.0000.01014.67
7.3.330.0000.00513.24
7.3.320.0030.00313.16
7.3.310.0070.00016.25
7.3.300.0030.00316.21
7.3.290.0090.00516.29
7.3.280.0110.00616.25
7.3.270.0030.01517.40
7.3.260.0090.01016.39
7.3.250.0080.00916.42
7.3.240.0100.00816.46
7.3.230.0030.01516.59
7.3.210.0130.00416.28
7.3.200.0070.01416.28
7.3.190.0110.00616.48
7.3.180.0130.00316.29
7.3.170.0160.00016.44
7.3.160.0040.01116.46
7.3.10.0120.00216.38
7.3.00.0100.00416.07
7.2.330.0060.01216.32
7.2.320.0060.01016.31
7.2.310.0030.01816.55
7.2.300.0110.00716.56
7.2.290.0110.00716.64
7.2.130.0070.00816.55
7.2.120.0100.00716.48
7.2.110.0110.00816.56
7.2.100.0090.00916.27
7.2.90.0120.00516.34
7.2.80.0140.00416.16
7.2.70.0110.00816.44
7.2.60.0090.00616.43
7.2.50.0060.00716.69
7.2.40.0100.00816.37
7.2.30.0150.00716.70
7.2.20.0050.01316.38
7.2.10.0100.00816.01
7.2.00.0080.00516.67
7.1.250.0080.00715.24
7.1.200.0110.00315.28
7.1.110.0090.00617.82
7.1.100.0080.00417.99
7.1.90.0070.00717.59
7.1.80.0060.00617.60
7.1.70.0030.00916.95
7.1.60.0180.00934.71
7.1.50.0170.01034.40
7.1.40.0180.00734.24
7.1.30.0190.00734.34
7.1.20.0190.01034.67
7.1.10.0050.00916.41
7.1.00.0030.01016.54
7.0.250.0080.00417.66
7.0.240.0030.01017.46
7.0.230.0120.00317.09
7.0.220.0070.00717.62
7.0.210.0000.01416.46
7.0.200.0000.01216.71
7.0.190.0060.00616.70
7.0.180.0030.01016.17
7.0.170.0090.00316.36
7.0.160.0040.01116.18
7.0.150.0060.00616.18
7.0.140.0040.01116.17
7.0.130.0000.01316.54
7.0.120.0040.00816.30
7.0.110.0060.00616.42
7.0.100.1300.01014.29
7.0.90.1340.00714.31
7.0.80.1510.00314.59
7.0.70.1270.00714.49
7.0.60.1200.00714.23
7.0.50.1260.01014.64
7.0.40.1340.00714.75
7.0.30.0890.01314.47
7.0.20.0920.00714.53
7.0.10.0920.00614.53
7.0.00.0950.00414.43

preferences:
61.28 ms | 401 KiB | 5 Q