3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(object $bar = null) { } foo(new stdClass()); 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.0130.00719.39
8.4.10.0060.00317.60
8.3.150.0130.00617.18
8.3.140.0140.00319.10
8.3.130.0060.00316.58
8.3.120.0080.00020.84
8.3.110.0040.00420.94
8.3.100.0000.00916.61
8.3.90.0040.00426.77
8.3.80.0030.00618.18
8.3.70.0180.00316.58
8.3.60.0150.00716.48
8.3.50.0090.00818.25
8.3.40.0070.00718.68
8.3.30.0060.00918.63
8.3.20.0000.00721.76
8.3.10.0070.00021.85
8.3.00.0080.00019.67
8.2.270.0080.00416.62
8.2.260.0030.00516.98
8.2.250.0130.00316.37
8.2.240.0060.00316.96
8.2.230.0060.00322.58
8.2.220.0030.00624.06
8.2.210.0070.00026.77
8.2.200.0030.00618.17
8.2.190.0090.01216.63
8.2.180.0170.00318.41
8.2.170.0120.00318.75
8.2.160.0110.00322.96
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00420.86
8.2.110.0000.00922.25
8.2.100.0040.00817.59
8.2.90.0080.00017.75
8.2.80.0060.00318.71
8.2.70.0030.00617.91
8.2.60.0080.00017.38
8.2.50.0060.00318.22
8.2.40.0040.00420.21
8.2.30.0050.00319.27
8.2.20.0070.00017.88
8.2.10.0000.00817.94
8.2.00.0000.00817.92
8.1.310.0120.00616.57
8.1.300.0060.00317.82
8.1.290.0090.00018.88
8.1.280.0060.00925.92
8.1.270.0060.01222.34
8.1.260.0070.00426.35
8.1.250.0080.00028.09
8.1.240.0090.00023.80
8.1.230.0070.00317.64
8.1.220.0070.00017.74
8.1.210.0080.00018.77
8.1.200.0060.00317.23
8.1.190.0030.00616.98
8.1.180.0050.00318.10
8.1.170.0040.00418.55
8.1.160.0050.00218.76
8.1.150.0000.00818.96
8.1.140.0040.00417.62
8.1.130.0030.00320.17
8.1.120.0040.00417.34
8.1.110.0070.00017.33
8.1.100.0070.00017.34
8.1.90.0000.00817.22
8.1.80.0050.00517.32
8.1.70.0000.00717.32
8.1.60.0050.00517.54
8.1.50.0000.00817.50
8.1.40.0030.00617.44
8.1.30.0000.00817.46
8.1.20.0000.00817.50
8.1.10.0030.00517.36
8.1.00.0030.00917.38
8.0.300.0000.00718.77
8.0.290.0060.00316.63
8.0.280.0030.00318.24
8.0.270.0000.00917.20
8.0.260.0030.00320.11
8.0.250.0030.00316.95
8.0.240.0030.00316.77
8.0.230.0100.00016.79
8.0.220.0000.00816.78
8.0.210.0030.00316.77
8.0.200.0060.00016.84
8.0.190.0000.00816.86
8.0.180.0040.00416.87
8.0.170.0030.00616.77
8.0.160.0040.00416.77
8.0.150.0000.00816.67
8.0.140.0000.00716.68
8.0.130.0030.00313.15
8.0.120.0040.00416.62
8.0.110.0030.00616.73
8.0.100.0070.00016.65
8.0.90.0000.00816.61
8.0.80.0040.01116.72
8.0.70.0070.00016.66
8.0.60.0040.00416.79
8.0.50.0040.00416.82
8.0.30.0110.01016.86
8.0.20.0120.00917.05
8.0.10.0090.00916.90
8.0.00.0110.00916.81
7.4.330.0000.00615.55
7.4.320.0000.00716.50
7.4.300.0070.00016.31
7.4.290.0000.00716.58
7.4.280.0050.00316.52
7.4.270.0000.00716.39
7.4.260.0030.00316.43
7.4.250.0000.00716.36
7.4.240.0040.00416.55
7.4.230.0040.00416.45
7.4.220.0040.00416.65
7.4.210.0060.01116.53
7.4.200.0070.00016.62
7.4.160.0070.01216.34
7.4.150.0120.01116.54
7.4.140.0090.00917.44
7.4.130.0100.01116.53
7.4.120.0060.01216.42
7.4.110.0070.00716.34
7.4.100.0100.00816.44
7.4.90.0100.01116.42
7.4.80.0090.01017.15
7.4.70.0090.00916.27
7.4.60.0130.01416.26
7.4.50.0140.01416.27
7.4.40.0080.01416.27
7.4.30.0110.01416.47
7.4.20.0090.00916.28
7.4.10.0110.01315.89
7.4.00.0100.00915.72
7.3.330.0050.00013.08
7.3.320.0060.00013.18
7.3.310.0040.00416.21
7.3.300.0040.00416.16
7.3.290.0050.00316.23
7.3.280.0090.00916.18
7.3.270.0110.01016.20
7.3.260.0140.00616.26
7.3.250.0090.00816.38
7.3.240.0120.00716.36
7.3.230.0030.01516.36
7.3.220.0070.01316.22
7.3.210.0130.00616.33
7.3.200.0110.00716.27
7.3.190.0110.00916.35
7.3.180.0130.01016.32
7.3.170.0130.01316.24
7.3.160.0130.01216.24
7.3.150.0090.00916.35
7.3.140.0100.01216.31
7.3.130.0090.01015.89
7.3.120.0100.01015.84
7.3.110.0110.00915.81
7.3.100.0090.01015.80
7.3.90.0120.00715.71
7.3.80.0090.00815.65
7.3.70.0090.00915.64
7.3.60.0060.00815.66
7.3.50.0090.01015.60
7.3.40.0090.00815.65
7.3.30.0070.01015.63
7.3.20.0190.00916.39
7.3.10.0300.00816.16
7.3.00.0340.00616.19
7.2.340.0260.00916.27
7.2.330.0190.00716.27
7.2.320.0140.01016.33
7.2.310.0160.01316.14
7.2.300.0200.00716.31
7.2.290.0110.01216.31
7.2.280.0150.01216.41
7.2.270.0160.00816.45
7.2.260.0140.01015.88
7.2.250.0140.00915.83
7.2.240.0160.01115.80
7.2.230.0160.00615.98
7.2.220.0140.00915.70
7.2.210.0090.01215.64
7.2.200.0120.00915.81
7.2.190.0110.00915.77
7.2.180.0180.00815.71
7.2.170.0140.00815.68
7.2.160.0090.01315.79
7.2.150.0140.00816.52
7.2.140.0140.00816.51
7.2.130.0260.00916.19
7.2.120.0340.00816.21
7.2.110.0230.01016.26
7.2.100.0280.01116.15
7.2.90.0300.00716.04
7.2.80.0180.00815.94
7.2.70.0350.00716.03
7.2.60.0180.00816.06
7.2.50.0320.01016.12
7.2.40.0360.01116.24
7.2.30.0320.00916.20
7.2.20.0350.00916.22
7.2.10.0350.01116.20
7.2.00.0290.00816.19
7.1.330.0140.00715.24
7.1.320.0130.00715.36
7.1.310.0160.00815.42
7.1.300.0140.00715.52
7.1.290.0140.00915.49
7.1.280.0220.00815.45
7.1.270.0130.00915.53
7.1.260.0160.00915.57
7.1.250.0420.00915.06
7.1.240.0300.00815.22
7.1.230.0300.01015.15
7.1.220.0290.01015.15
7.1.210.0300.01014.92
7.1.200.0290.00815.03
7.1.190.0250.00714.90
7.1.180.0350.00714.82
7.1.170.0350.01014.92
7.1.160.0410.01015.12
7.1.150.0570.00915.09
7.1.140.0390.01015.22
7.1.130.0360.00815.16
7.1.120.0330.01115.18
7.1.110.0400.01015.05
7.1.100.0400.00815.11
7.1.90.0410.00915.07
7.1.80.0520.00915.03
7.1.70.0360.00914.87
7.1.60.0460.00919.47
7.1.50.0540.01119.45
7.1.40.0500.01019.44
7.1.30.0470.01019.42
7.1.20.0400.00919.46
7.1.10.0340.00914.95
7.1.00.0310.00714.58
7.0.330.0380.01314.75
7.0.320.0240.00615.18
7.0.310.0210.01115.17
7.0.300.0160.01615.11
7.0.290.0220.01015.16
7.0.280.0260.00915.18
7.0.270.0230.00715.08
7.0.260.0320.00515.13
7.0.250.0230.01015.23
7.0.240.0260.00815.18
7.0.230.0210.00815.23
7.0.220.0250.01215.22
7.0.210.0350.00815.11
7.0.200.0230.00715.12
7.0.190.0300.00915.05
7.0.180.0250.00715.13
7.0.170.0290.01015.24
7.0.160.0210.01015.15
7.0.150.0230.00815.15
7.0.140.0320.00915.16
7.0.130.0210.00815.14
7.0.120.0230.00515.13
7.0.110.0220.00715.16
7.0.100.0210.00615.11
7.0.90.0140.01115.09
7.0.80.0190.01015.03
7.0.70.0210.00615.05
7.0.60.0250.01115.03
7.0.50.0260.01215.15
7.0.40.0190.01015.12
7.0.30.0170.01015.09
7.0.20.0150.01315.06
7.0.10.0190.01215.12
7.0.00.0170.01415.03
5.6.400.0200.01015.27
5.6.390.0230.00815.47
5.6.380.0180.01015.10
5.6.370.0180.01515.78
5.6.360.0240.00515.73
5.6.350.0220.01015.81
5.6.340.0320.00715.70
5.6.330.0190.01615.84
5.6.320.0210.00815.79
5.6.310.0260.00915.90
5.6.300.0190.01215.84
5.6.290.0170.01515.96
5.6.280.0250.00715.79
5.6.270.0150.01515.85
5.6.260.0160.01015.86
5.6.250.0130.01515.85
5.6.240.0160.01015.72
5.6.230.0160.01115.67
5.6.220.0190.01215.83
5.6.210.0220.01215.63
5.6.200.0160.01415.81
5.6.190.0240.00615.91
5.6.180.0200.00915.76
5.6.170.0160.01415.85
5.6.160.0240.01315.88
5.6.150.0180.01015.70
5.6.140.0170.01215.69
5.6.130.0200.01415.80
5.6.120.0170.01015.77
5.6.110.0220.01315.84
5.6.100.0220.01115.78
5.6.90.0190.00915.69
5.6.80.0190.00815.69
5.6.70.0240.01015.77
5.6.60.0170.00815.78
5.6.50.0140.01415.74
5.6.40.0180.01115.73
5.6.30.0170.01115.65
5.6.20.0230.00615.70
5.6.10.0220.00915.73
5.6.00.0180.01115.56

preferences:
33.39 ms | 403 KiB | 5 Q