3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Besides the methods listed here, this class also has an __invoke method. // This is for consistency with other classes that implement calling magic, // as this method is not used for calling the function. // Source: http://php.net/manual/en/class.closure.php var_dump(\method_exists(\Closure::class, '__construct'));

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.0120.00318.30
8.3.50.0080.00817.97
8.3.40.0140.00718.71
8.3.30.0100.00718.52
8.3.20.0000.00820.60
8.3.10.0080.00023.52
8.3.00.0040.00422.44
8.2.180.0070.00716.32
8.2.170.0070.00722.96
8.2.160.0030.01020.38
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0080.00019.71
8.2.120.0000.00826.35
8.2.110.0000.00820.41
8.2.100.0040.00817.59
8.2.90.0000.00817.50
8.2.80.0040.00418.48
8.2.70.0080.00017.78
8.2.60.0030.00517.97
8.2.50.0090.00018.10
8.2.40.0070.00019.17
8.2.30.0050.00220.63
8.2.20.0050.00217.97
8.2.10.0070.00019.11
8.2.00.0000.00717.79
8.1.280.0070.00725.92
8.1.270.0040.00422.11
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0030.00620.67
8.1.230.0080.00419.02
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0040.00717.22
8.1.190.0000.00917.09
8.1.180.0040.00418.10
8.1.170.0030.00518.59
8.1.160.0000.00718.77
8.1.150.0000.00718.82
8.1.140.0000.00718.94
8.1.130.0000.00720.20
8.1.120.0030.00317.31
8.1.110.0000.00717.32
8.1.100.0050.00317.25
8.1.90.0040.00417.31
8.1.80.0040.00417.27
8.1.70.0000.00717.30
8.1.60.0070.00317.45
8.1.50.0040.00417.32
8.1.40.0040.00417.29
8.1.30.0040.00417.48
8.1.20.0040.00417.57
8.1.10.0000.00817.30
8.1.00.0060.00317.31
8.0.300.0070.00018.77
8.0.290.0040.00416.58
8.0.280.0040.00418.20
8.0.270.0000.00717.09
8.0.260.0000.00618.32
8.0.250.0030.00316.81
8.0.240.0030.00316.84
8.0.230.0040.00416.81
8.0.220.0030.00516.70
8.0.210.0030.00316.70
8.0.200.0040.00416.68
8.0.190.0080.00316.79
8.0.180.0070.00016.82
8.0.170.0060.00316.70
8.0.160.0030.00316.68
8.0.150.0060.00616.71
8.0.140.0070.00016.62
8.0.130.0030.00313.16
8.0.120.0060.00316.75
8.0.110.0080.00016.58
8.0.100.0040.00416.57
8.0.90.0040.00416.71
8.0.80.0090.00616.80
8.0.70.0040.00416.66
8.0.60.0040.00416.78
8.0.50.0000.00716.64
8.0.30.0140.00416.90
8.0.20.0140.01016.99
8.0.10.0040.00416.97
8.0.00.0130.00716.58
7.4.330.0000.00615.55
7.4.320.0060.00016.36
7.4.300.0030.00316.38
7.4.290.0000.00716.44
7.4.280.0040.00416.38
7.4.270.0000.00716.41
7.4.260.0000.00716.37
7.4.250.0040.00416.25
7.4.240.0020.00516.40
7.4.230.0070.00016.54
7.4.220.0020.00516.30
7.4.210.0020.01416.42
7.4.200.0000.00716.21
7.4.160.0050.01316.34
7.4.130.0090.00816.45
7.4.120.0100.00716.45
7.4.110.0070.01016.52
7.4.100.0190.00316.16
7.4.90.0060.01016.29
7.4.80.0060.01219.39
7.4.70.0070.01116.32
7.4.60.0100.00616.28
7.4.50.0100.00616.13
7.4.40.0120.00916.35
7.4.00.0020.01314.82
7.3.330.0000.00512.88
7.3.320.0030.00312.86
7.3.310.0000.00616.11
7.3.300.0030.00316.14
7.3.290.0070.00016.12
7.3.280.0070.01116.05
7.3.260.0070.01116.30
7.3.240.0110.00516.33
7.3.230.0100.00616.20
7.3.210.0140.00316.12
7.3.200.0140.00816.32
7.3.190.0120.00416.20
7.3.180.0110.01116.35
7.3.170.0130.00916.13
7.3.160.0070.01416.18
7.3.120.0070.01014.67
7.3.110.0090.00714.61
7.3.100.0080.00914.62
7.3.90.0080.00714.79
7.3.80.0030.01114.60
7.3.70.0060.00514.67
7.3.60.0060.00614.80
7.3.50.0020.01114.53
7.3.40.0070.00714.59
7.3.30.0070.00714.70
7.3.20.0060.01015.84
7.3.10.0090.00615.67
7.3.00.0080.00515.58
7.2.330.0000.01716.32
7.2.320.0100.00716.34
7.2.310.0100.00616.39
7.2.300.0110.01816.46
7.2.290.0110.01116.56
7.2.250.0080.01014.92
7.2.240.0070.01114.99
7.2.230.0070.00714.88
7.2.220.0070.00614.74
7.2.210.0100.00514.71
7.2.200.0020.01214.74
7.2.190.0040.00714.83
7.2.180.0050.00814.84
7.2.170.0080.00714.67
7.2.160.0090.00714.67
7.2.150.0060.01015.82
7.2.140.0080.00915.66
7.2.130.0330.00515.66
7.2.120.0110.00715.79
7.2.110.0110.00515.68
7.2.100.0080.00915.56
7.2.90.0080.00915.81
7.2.80.0120.01115.63
7.2.70.0100.01215.85
7.2.60.0140.00315.86
7.2.50.0100.00915.65
7.2.40.0050.01215.79
7.2.30.0220.00615.77
7.2.20.0070.00715.79
7.2.10.0100.00815.70
7.2.00.0080.01015.63
7.1.330.0070.00915.78
7.1.320.0100.00515.45
7.1.310.0090.00515.67
7.1.300.0030.01115.61
7.1.290.0060.00415.43
7.1.280.0040.00814.82
7.1.270.0070.01014.87
7.1.260.0050.00914.82
7.1.250.0070.00414.71
7.1.240.0000.01015.70
7.1.230.0130.00015.68
7.1.220.0030.01015.65
7.1.210.0100.00015.67
7.1.200.0120.00315.70
7.1.190.0070.00415.57
7.1.180.0070.00415.41
7.1.170.0060.00315.52
7.1.160.0030.00715.43
7.1.150.0060.00615.58
7.1.140.0000.01415.66
7.1.130.0030.00515.53
7.1.120.0000.01215.60
7.1.110.0130.00015.64
7.1.100.0060.00615.49
7.1.90.0060.00315.79
7.1.80.0060.00315.71
7.1.70.0000.01015.71
7.1.60.0080.00415.74
7.1.50.0030.01015.45
7.1.40.0030.01415.58
7.1.30.0000.01615.33
7.1.20.0080.00615.57
7.1.10.0030.01415.50
7.1.00.0060.00315.67

preferences:
60.63 ms | 401 KiB | 5 Q