3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ClassName { public function foo(self $bar = null) { } } $instance = new ClassName(); $instance->foo($instance); $instance->foo(null);

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.4.20.0140.00717.93
8.4.10.0090.00017.82
8.3.150.0100.00016.97
8.3.140.0040.01120.80
8.3.130.0150.00418.47
8.3.120.0090.00018.99
8.3.110.0110.00018.30
8.3.100.0040.00424.06
8.3.90.0000.00826.77
8.3.80.0060.00318.31
8.3.70.0040.01116.63
8.3.60.0090.00616.38
8.3.50.0120.00217.40
8.3.40.0140.00718.89
8.3.30.0060.00918.68
8.3.20.0040.00421.69
8.3.10.0000.00821.95
8.3.00.0030.00519.56
8.2.270.0130.00616.71
8.2.260.0000.00818.88
8.2.250.0150.00616.59
8.2.240.0090.00020.52
8.2.230.0060.00320.94
8.2.220.0100.00037.54
8.2.210.0030.00526.77
8.2.200.0060.00318.04
8.2.190.0070.00718.17
8.2.180.0060.01025.92
8.2.170.0170.00318.89
8.2.160.0070.01022.96
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00421.18
8.2.110.0030.00720.95
8.2.100.0000.01117.59
8.2.90.0090.00017.90
8.2.80.0040.00419.17
8.2.70.0050.00317.80
8.2.60.0000.00817.91
8.2.50.0050.00318.16
8.2.40.0040.00420.55
8.2.30.0040.00419.41
8.2.20.0060.00317.87
8.2.10.0000.00818.05
8.2.00.0000.00717.85
8.1.310.0050.00316.93
8.1.300.0060.00317.91
8.1.290.0030.00630.84
8.1.280.0150.00325.92
8.1.270.0040.00420.28
8.1.260.0070.00426.35
8.1.250.0050.00328.09
8.1.240.0000.01022.43
8.1.230.0080.00420.93
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0040.00417.36
8.1.190.0050.00317.13
8.1.180.0030.00618.10
8.1.170.0080.00018.82
8.1.160.0000.00718.83
8.1.150.0000.00718.93
8.1.140.0000.00717.63
8.1.130.0000.00718.88
8.1.120.0040.00417.43
8.1.110.0080.00017.40
8.1.100.0050.00317.28
8.1.90.0040.00417.43
8.1.80.0060.00317.41
8.1.70.0030.00317.43
8.1.60.0060.00317.61
8.1.50.0060.00617.50
8.1.40.0050.00317.40
8.1.30.0060.00317.46
8.1.20.0040.00417.50
8.1.10.0000.00917.43
8.1.00.0000.01117.33
8.0.300.0040.00419.64
8.0.290.0040.00416.63
8.0.280.0000.00718.38
8.0.270.0050.00316.76
8.0.260.0000.00717.14
8.0.250.0000.00616.88
8.0.240.0000.00916.91
8.0.230.0060.00316.75
8.0.220.0040.00416.84
8.0.210.0030.00316.86
8.0.200.0030.00316.89
8.0.190.0040.00416.89
8.0.180.0040.00416.78
8.0.170.0070.00316.73
8.0.160.0000.00716.91
8.0.150.0000.00816.86
8.0.140.0040.00416.67
8.0.130.0060.00013.27
8.0.120.0000.00716.71
8.0.110.0050.00316.73
8.0.100.0030.00516.80
8.0.90.0000.00816.70
8.0.80.0190.00016.76
8.0.70.0040.00416.76
8.0.60.0000.00716.77
8.0.50.0000.00716.69
8.0.30.0100.00916.91
8.0.20.0130.00517.40
8.0.10.0000.00717.01
8.0.00.0110.00616.76
7.4.330.0050.00015.55
7.4.320.0000.00616.36
7.4.300.0040.00416.64
7.4.290.0000.00716.59
7.4.280.0040.00416.61
7.4.270.0070.00016.60
7.4.260.0070.00016.63
7.4.250.0030.00316.47
7.4.240.0030.00316.57
7.4.230.0040.00416.50
7.4.220.0000.00716.60
7.4.210.0050.01016.52
7.4.200.0070.00016.29
7.4.160.0110.00716.46
7.4.140.0090.00917.86
7.4.130.0070.01116.31
7.4.120.0090.01016.40
7.4.110.0120.00616.52
7.4.100.0060.01116.34
7.4.90.0060.01316.30
7.4.80.0100.00917.88
7.4.70.0160.00316.22
7.4.60.0090.00816.31
7.4.50.0040.01416.31
7.4.40.0110.00816.27
7.4.30.0100.00716.52
7.4.20.0000.01716.50
7.4.10.0080.00915.69
7.4.00.0090.00815.36
7.3.330.0050.00013.22
7.3.320.0030.00313.31
7.3.310.0040.00416.34
7.3.300.0000.00816.16
7.3.290.0030.00316.09
7.3.280.0100.00516.30
7.3.260.0100.00916.26
7.3.240.0110.00616.44
7.3.230.0140.00416.17
7.3.220.0110.00615.86
7.3.210.0120.00816.39
7.3.200.0110.00516.17
7.3.190.0060.01016.26
7.3.180.0130.00516.32
7.3.170.0060.01116.10
7.3.160.0050.01216.46
7.3.150.0110.00516.28
7.3.140.0060.01216.20
7.3.130.0060.00915.72
7.3.120.0110.00515.37
7.3.110.0110.00815.41
7.3.100.0050.01215.48
7.3.90.0080.00815.44
7.3.80.0080.00715.42
7.3.70.0090.00815.37
7.3.60.0100.00515.41
7.3.50.0070.01115.09
7.3.40.0110.00415.26
7.3.30.0090.01115.15
7.3.20.0090.00716.39
7.3.10.0080.00816.32
7.3.00.0110.00516.31
7.2.340.0100.01016.50
7.2.330.0070.01216.46
7.2.320.0110.00716.44
7.2.310.0060.01416.55
7.2.300.0090.00816.57
7.2.290.0060.01016.66
7.2.280.0140.00416.73
7.2.270.0100.01016.39
7.2.260.0090.00715.88
7.2.250.0070.01115.43
7.2.240.0100.00915.71
7.2.230.0060.00715.80
7.2.220.0090.00715.81
7.2.210.0100.00915.47
7.2.200.0020.01515.56
7.2.190.0070.01015.56
7.2.180.0080.01115.36
7.2.170.0080.00915.29
7.2.160.0100.00815.45
7.2.150.0070.00916.51
7.2.140.0090.00816.49
7.2.130.0110.00516.70
7.2.120.0080.00816.66
7.2.110.0100.00616.63
7.2.100.0070.00716.67
7.2.90.0120.00716.75
7.2.80.0090.00816.65
7.2.70.0100.00716.61
7.2.60.0090.00816.69
7.2.50.0080.00916.61
7.2.40.0350.01017.05
7.2.30.0180.01117.17
7.2.20.0390.00917.11
7.2.10.0130.01017.09
7.2.00.0140.00917.12
7.1.330.0120.00715.29
7.1.320.0110.01115.42
7.1.310.0150.00815.54
7.1.300.0120.00915.61
7.1.290.0230.00715.60
7.1.280.0140.00615.50
7.1.270.0160.00515.59
7.1.260.0120.00615.52
7.1.250.0110.00915.54
7.1.240.0110.00815.45
7.1.230.0110.01115.51
7.1.220.0130.00815.55
7.1.210.0150.00815.50
7.1.200.0240.00715.44
7.1.190.0170.00715.57
7.1.180.0160.01015.58
7.1.170.0120.01115.50
7.1.160.0420.01215.89
7.1.150.0400.00616.00
7.1.140.0250.00715.90
7.1.130.0500.00816.03
7.1.120.0480.01015.98
7.1.110.0190.00815.69
7.1.100.0390.01015.80
7.1.90.0190.01015.78
7.1.80.0510.00815.69
7.1.70.0380.00915.37
7.1.60.0430.01222.60
7.1.50.0400.01322.47
7.1.40.0420.01022.34
7.1.30.0450.01222.41
7.1.20.0600.01022.35
7.1.10.0210.01215.17
7.1.00.0260.01115.25
7.0.330.0160.00815.24
7.0.320.0250.00315.05
7.0.310.0230.00514.99
7.0.300.0140.01415.14
7.0.290.0250.00415.26
7.0.280.0280.00915.16
7.0.270.0170.01215.21
7.0.260.0290.00415.15
7.0.250.0180.01115.21
7.0.240.0240.00915.34
7.0.230.0250.00315.24
7.0.220.0280.00815.28
7.0.210.0160.01315.05
7.0.200.0240.00315.11
7.0.190.0180.01015.16
7.0.180.0230.00715.19
7.0.170.0200.00815.13
7.0.160.0170.01315.23
7.0.150.0200.01015.24
7.0.140.0210.00915.29
7.0.130.0250.00415.17
7.0.120.0160.01515.26
7.0.110.0230.00315.14
7.0.100.0190.00815.26
7.0.90.0150.01515.11
7.0.80.0260.00315.17
7.0.70.0390.00615.04
7.0.60.0170.00915.04
7.0.50.0290.00415.06
7.0.40.0170.01015.18
7.0.30.0210.00715.24
7.0.20.0230.00715.09
7.0.10.0180.00815.14
7.0.00.0250.00415.07
5.6.400.0130.01115.37
5.6.390.0170.01015.09
5.6.380.0180.00914.96
5.6.370.0170.01115.98
5.6.360.0250.00416.01
5.6.350.0260.00615.98
5.6.340.0310.00715.93
5.6.330.0200.01016.09
5.6.320.0350.00915.76
5.6.310.0180.01816.11
5.6.300.0220.00815.82
5.6.290.0220.01115.79
5.6.280.0150.01415.92
5.6.270.0290.00715.84
5.6.260.0130.01716.00
5.6.250.0300.00015.76
5.6.240.0200.01416.00
5.6.230.0220.01315.78
5.6.220.0180.01516.07
5.6.210.0260.00415.98
5.6.200.0120.02015.89
5.6.190.0140.01715.69
5.6.180.0190.01616.02
5.6.170.0250.00415.68
5.6.160.0110.01816.03
5.6.150.0180.01115.79
5.6.140.0200.00815.77
5.6.130.0230.00616.11
5.6.120.0200.01015.85
5.6.110.0270.00615.72
5.6.100.0140.01515.82
5.6.90.0240.00615.82
5.6.80.0160.01315.79
5.6.70.0200.01215.83
5.6.60.0170.01315.75
5.6.50.0190.00915.70
5.6.40.0200.01315.72
5.6.30.0180.01215.57
5.6.20.0190.01115.88
5.6.10.0180.00915.64
5.6.00.0250.01015.99
5.5.380.0320.00615.73
5.5.370.0190.01015.63
5.5.360.0180.01115.80
5.5.350.0190.01315.71
5.5.340.0290.00716.05
5.5.330.0070.02415.80
5.5.320.0250.00316.04
5.5.310.0150.01516.09
5.5.300.0190.01215.82
5.5.290.0170.01215.76
5.5.280.0200.01315.75
5.5.270.0120.01715.65
5.5.260.0240.00615.84
5.5.250.0220.00815.79
5.5.240.0330.00715.99
5.5.230.0190.01015.78
5.5.220.0150.01515.75
5.5.210.0210.01215.63
5.5.200.0140.01715.75
5.5.190.0160.01215.80
5.5.180.0250.00715.71
5.5.170.0150.01515.54
5.5.160.0170.01415.85
5.5.150.0230.01015.74
5.5.140.0240.01215.65
5.5.130.0180.01815.68
5.5.120.0270.00515.55
5.5.110.0210.00716.01
5.5.100.0210.00715.78
5.5.90.0220.01015.77
5.5.80.0110.01615.93
5.5.70.0180.01215.91
5.5.60.0170.01015.68
5.5.50.0180.01115.61
5.5.40.0260.00415.66
5.5.30.0150.01215.81
5.5.20.0150.01515.75
5.5.10.0240.00415.78
5.5.00.0200.00815.59
5.4.450.0090.01314.22
5.4.440.0160.01014.22
5.4.430.0130.00814.22
5.4.420.0120.00914.22
5.4.410.0140.00714.22
5.4.400.0150.01214.22
5.4.390.0230.00314.22
5.4.380.0160.00814.22
5.4.370.0110.01114.22
5.4.360.0240.00314.22
5.4.350.0130.00914.22
5.4.340.0110.01114.22
5.4.330.0170.00714.22
5.4.320.0120.00814.22
5.4.310.0150.01314.22
5.4.300.0150.00514.22
5.4.290.0190.00414.22
5.4.280.0160.00714.22
5.4.270.0180.00514.22
5.4.260.0120.00914.22
5.4.250.0130.01014.22
5.4.240.0190.00314.22
5.4.230.0090.01314.22
5.4.220.0190.00314.22
5.4.210.0150.01214.22
5.4.200.0170.00614.22
5.4.190.0190.00414.22
5.4.180.0110.01114.22
5.4.170.0150.00614.22
5.4.160.0200.00314.22
5.4.150.0150.00614.22
5.4.140.0160.00614.22
5.4.130.0200.00314.22
5.4.120.0130.01114.22
5.4.110.0130.00614.22
5.4.100.0160.00514.22
5.4.90.0130.00914.22
5.4.80.0170.00714.22
5.4.70.0160.00514.22
5.4.60.0210.00014.22
5.4.50.0150.00414.22
5.4.40.0080.01214.22
5.4.30.0130.00714.22
5.4.20.0170.00314.22
5.4.10.0110.01414.22
5.4.00.0140.00714.22
5.3.290.0200.00314.22
5.3.280.0050.01914.22
5.3.270.0040.01814.22
5.3.260.0140.01114.22
5.3.250.0110.01214.22
5.3.240.0140.00814.22
5.3.230.0130.01514.22
5.3.220.0140.00814.22
5.3.210.0130.01014.22
5.3.200.0100.01314.22
5.3.190.0220.00014.22
5.3.180.0130.00914.22
5.3.170.0150.00814.22
5.3.160.0120.01014.22
5.3.150.0080.01214.22
5.3.140.0210.00014.22
5.3.130.0160.00814.22
5.3.120.0130.00814.22
5.3.110.0210.00314.22
5.3.100.0130.00814.22
5.3.90.0170.00414.22
5.3.80.0150.00614.22
5.3.70.0150.00814.22
5.3.60.0160.00514.22
5.3.50.0120.01014.22
5.3.40.0090.01414.22
5.3.30.0160.00914.22
5.3.20.0130.00814.22
5.3.10.0170.00314.22
5.3.00.0050.01814.22
5.2.170.0090.00914.22
5.2.160.0130.00514.22
5.2.150.0080.01114.22
5.2.140.0140.00714.22
5.2.130.0160.00214.22
5.2.120.0080.01214.22
5.2.110.0090.00914.22
5.2.100.0110.00814.22
5.2.90.0070.01414.22
5.2.80.0090.00914.22
5.2.70.0140.01414.22
5.2.60.0140.00414.22
5.2.50.0080.01114.22
5.2.40.0270.00314.22
5.2.30.0060.01214.22
5.2.20.0130.00614.22
5.2.10.0060.01214.22
5.2.00.0120.00614.22
5.1.60.0100.00714.22
5.1.50.0150.00614.22
5.1.40.0150.00214.22
5.1.30.0120.00414.22
5.1.20.0160.00014.22
5.1.10.0150.00314.22
5.1.00.0120.00914.22
5.0.50.0090.00914.22
5.0.40.0140.00414.22
5.0.30.0150.00514.22
5.0.20.0130.00414.22
5.0.10.0000.01714.22
5.0.00.0170.01814.22
4.4.90.0050.00514.22
4.4.80.0070.00214.22
4.4.70.0060.00314.22
4.4.60.0070.00214.22
4.4.50.0060.00314.22
4.4.40.0090.00014.22
4.4.30.0030.00614.22
4.4.20.0110.00014.22
4.4.10.0050.00514.22
4.4.00.0100.00014.22
4.3.110.0050.00514.22
4.3.100.0050.00314.22
4.3.90.0070.00314.22
4.3.80.0120.00014.22
4.3.70.0090.00414.22
4.3.60.0060.00714.22
4.3.50.0070.00714.22
4.3.40.0080.00514.22
4.3.30.0090.00214.22
4.3.20.0080.00314.22
4.3.10.0040.00414.22
4.3.00.0090.00014.22

preferences:
32.94 ms | 403 KiB | 5 Q