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, '__invoke'));

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.40.0160.00018.54
8.3.30.0070.00718.44
8.3.20.0050.00321.86
8.3.10.0040.00418.44
8.3.00.0080.00019.25
8.2.170.0070.00722.96
8.2.160.0100.01019.03
8.2.150.0070.00025.66
8.2.140.0070.00024.66
8.2.130.0070.00726.16
8.2.120.0030.00520.97
8.2.110.0060.00320.91
8.2.100.0090.00317.72
8.2.90.0040.00418.22
8.2.80.0080.00017.97
8.2.70.0040.00417.68
8.2.60.0080.00017.91
8.2.50.0080.00019.10
8.2.40.0040.00419.17
8.2.30.0040.00419.11
8.2.20.0000.00717.99
8.2.10.0040.00419.29
8.2.00.0080.00017.99
8.1.270.0000.00724.66
8.1.260.0050.00226.35
8.1.250.0070.00028.09
8.1.240.0110.00020.33
8.1.230.0070.00420.84
8.1.220.0000.00817.74
8.1.210.0090.00018.95
8.1.200.0060.00317.23
8.1.190.0000.00817.10
8.1.180.0080.00018.10
8.1.170.0080.00018.41
8.1.160.0070.00018.72
8.1.150.0000.00718.76
8.1.140.0030.00320.22
8.1.130.0080.00020.30
8.1.120.0030.00317.34
8.1.110.0050.00217.21
8.1.100.0070.00317.27
8.1.90.0000.00817.21
8.1.80.0000.00717.29
8.1.70.0050.00617.32
8.1.60.0040.00417.50
8.1.50.0000.00817.36
8.1.40.0040.00417.31
8.1.30.0000.00717.57
8.1.20.0040.00417.48
8.1.10.0040.00417.43
8.1.00.0080.00017.16
8.0.300.0040.00419.77
8.0.290.0040.00416.58
8.0.280.0000.00718.32
8.0.270.0070.00016.61
8.0.260.0030.00318.20
8.0.250.0000.00816.82
8.0.240.0080.00016.82
8.0.230.0070.00016.86
8.0.220.0000.00716.82
8.0.210.0070.00016.77
8.0.200.0060.00016.70
8.0.190.0030.00516.84
8.0.180.0040.00416.78
8.0.170.0080.00416.67
8.0.160.0050.00216.80
8.0.150.0030.00316.71
8.0.140.0040.00416.74
8.0.130.0030.00313.18
8.0.120.0070.00016.73
8.0.110.0080.00016.78
8.0.100.0000.00716.82
8.0.90.0000.00716.76
8.0.80.0090.01216.70
8.0.70.0120.00816.70
8.0.60.0050.02116.67
8.0.50.0170.01416.75
8.0.30.0100.01216.88
8.0.20.0110.01417.11
8.0.10.0160.00816.84
8.0.00.0080.01116.63
7.4.330.0000.00515.55
7.4.320.0000.00716.51
7.4.300.0030.00316.47
7.4.290.0000.00616.36
7.4.280.0070.00016.38
7.4.270.0000.00716.31
7.4.260.0070.00016.22
7.4.250.0030.00316.38
7.4.240.0000.00716.46
7.4.230.0000.00916.53
7.4.220.0060.00316.36
7.4.210.0120.00616.43
7.4.200.0130.01316.45
7.4.190.0140.00716.52
7.4.180.0220.00716.38
7.4.160.0100.01116.41
7.4.150.0210.00716.26
7.4.140.0140.01117.36
7.4.130.0150.00916.32
7.4.120.0190.01016.31
7.4.110.0160.00616.29
7.4.100.0130.00916.39
7.4.90.0150.00616.36
7.4.80.0170.01017.85
7.4.70.0110.01216.33
7.4.60.0120.00916.27
7.4.50.0140.01216.18
7.4.40.0220.00216.29
7.4.30.0090.01116.21
7.4.20.0070.01216.26
7.4.10.0110.00815.63
7.4.00.0100.00815.56
7.3.330.0020.00212.97
7.3.320.0030.00313.01
7.3.310.0000.00715.97
7.3.300.0000.00616.04
7.3.290.0150.00016.14
7.3.280.0090.00816.14
7.3.270.0150.01116.12
7.3.260.0140.00716.16
7.3.250.0160.00916.12
7.3.240.0130.00716.27
7.3.230.0120.01116.14
7.3.220.0200.00916.04
7.3.210.0250.00816.04
7.3.200.0180.00416.07
7.3.190.0130.01116.31
7.3.180.0150.00716.12
7.3.170.0130.00916.11
7.3.160.0150.00716.20
7.3.150.0120.01016.20
7.3.140.0060.01416.12
7.3.130.0120.00915.66
7.3.120.0130.00615.56
7.3.110.0090.01315.72
7.3.100.0100.00815.70
7.3.90.0090.00915.67
7.3.80.0130.00815.76
7.3.70.0110.00715.61
7.3.60.0080.01015.72
7.3.50.0130.00615.53
7.3.40.0090.00815.47
7.3.30.0100.00615.22
7.3.20.0530.00615.40
7.3.10.0380.00715.33
7.3.00.0440.00715.21
7.2.340.0160.00816.09
7.2.330.0160.00916.35
7.2.320.0170.00716.22
7.2.310.0140.01116.28
7.2.300.0160.00516.17
7.2.290.0100.01216.37
7.2.280.0100.01216.22
7.2.270.0090.01216.21
7.2.260.0100.01015.79
7.2.250.0130.01015.75
7.2.240.0150.00815.75
7.2.230.0100.00915.70
7.2.220.0070.01415.77
7.2.210.0140.00915.82
7.2.200.0120.00715.73
7.2.190.0100.00915.76
7.2.180.0080.01115.78
7.2.170.0090.00815.55
7.2.160.0080.00715.31
7.2.150.0560.00815.60
7.2.140.0410.00815.47
7.2.130.0310.00615.53
7.2.120.0520.00815.50
7.2.110.0530.00915.57
7.2.100.0470.00715.51
7.2.90.0550.00615.60
7.2.80.0510.00915.46
7.2.70.0460.00715.48
7.2.60.0480.00715.38
7.2.50.0480.00615.55
7.2.40.0410.01115.42
7.2.30.0460.00815.51
7.2.20.0550.00715.51
7.2.10.0570.00715.50
7.2.00.0450.00615.43
7.1.330.0160.00815.54
7.1.320.0120.00515.48
7.1.310.0130.01015.38
7.1.300.0140.00515.44
7.1.290.0130.00815.48
7.1.280.0100.00715.15
7.1.270.0230.00814.79
7.1.260.0100.00614.70
7.1.250.0460.00414.52
7.1.240.0110.00715.43
7.1.230.0090.00815.31
7.1.220.0110.00915.39
7.1.210.0110.00715.37
7.1.200.0090.00715.45
7.1.190.0110.01015.41
7.1.180.0080.01015.28
7.1.170.0110.00715.49
7.1.160.0130.01015.44
7.1.150.0210.01315.42
7.1.140.0140.00515.42
7.1.130.0120.00615.43
7.1.120.0100.00915.41
7.1.110.0090.00815.38
7.1.100.0090.00815.39
7.1.90.0110.00715.37
7.1.80.0070.00915.45
7.1.70.0100.00615.31
7.1.60.0140.00515.43
7.1.50.0140.00515.38
7.1.40.0100.01015.47
7.1.30.0120.00615.40
7.1.20.0120.00515.42
7.1.10.0110.00915.28
7.1.00.0090.00915.28

preferences:
61.69 ms | 400 KiB | 5 Q