3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(?object $bar) { } 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.0140.00720.22
8.4.10.0070.01417.24
8.3.150.0120.00318.86
8.3.140.0040.00418.95
8.3.130.0000.00818.56
8.3.120.0110.00419.09
8.3.110.0040.00420.94
8.3.100.0060.00324.06
8.3.90.0030.00626.77
8.3.80.0090.00017.97
8.3.70.0040.01416.63
8.3.60.0110.00418.18
8.3.50.0090.00518.08
8.3.40.0090.00618.60
8.3.30.0110.00318.57
8.3.20.0040.00420.69
8.3.10.0050.00321.55
8.3.00.0040.00419.25
8.2.270.0140.00422.25
8.2.260.0160.00316.38
8.2.250.0040.00416.43
8.2.240.0090.00917.24
8.2.230.0040.00422.58
8.2.220.0090.00637.54
8.2.210.0160.00326.77
8.2.200.0030.00618.29
8.2.190.0140.00716.58
8.2.180.0140.00418.05
8.2.170.0110.00318.84
8.2.160.0110.00422.96
8.2.150.0070.00024.18
8.2.140.0090.00024.66
8.2.130.0080.00026.16
8.2.120.0050.00220.71
8.2.110.0000.01020.95
8.2.100.0040.00717.66
8.2.90.0000.00817.78
8.2.80.0000.00817.97
8.2.70.0050.00317.68
8.2.60.0070.00017.91
8.2.50.0070.00318.10
8.2.40.0080.00019.31
8.2.30.0040.00419.09
8.2.20.0020.00517.85
8.2.10.0070.00019.11
8.2.00.0000.00717.99
8.1.310.0040.00416.75
8.1.300.0060.01220.27
8.1.290.0000.00930.84
8.1.280.0120.00325.92
8.1.270.0080.00018.63
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0090.00021.92
8.1.230.0060.00622.74
8.1.220.0000.00817.74
8.1.210.0040.00419.16
8.1.200.0000.01017.23
8.1.190.0040.00417.23
8.1.180.0080.00018.10
8.1.170.0040.00418.46
8.1.160.0050.00318.71
8.1.150.0000.00718.75
8.1.140.0000.00818.88
8.1.130.0030.00720.07
8.1.120.0000.00917.32
8.1.110.0030.00617.35
8.1.100.0090.00317.29
8.1.90.0060.00517.36
8.1.80.0000.01117.31
8.1.70.0050.00617.33
8.1.60.0120.00017.45
8.1.50.0120.00217.33
8.1.40.0090.00517.39
8.1.30.0130.00017.45
8.1.20.0080.00417.58
8.1.10.0070.00717.41
8.1.00.0100.00317.40
8.0.300.0040.00419.35
8.0.290.0040.00416.63
8.0.280.0040.00418.29
8.0.270.0040.00417.21
8.0.260.0000.00618.39
8.0.250.0020.00516.83
8.0.240.0040.00416.83
8.0.230.0060.00516.74
8.0.220.0070.00316.73
8.0.210.0060.00516.70
8.0.200.0070.00416.75
8.0.190.0070.00316.80
8.0.180.0100.00116.76
8.0.170.0070.00416.71
8.0.160.0090.00216.81
8.0.150.0070.00416.69
8.0.140.0070.00416.63
8.0.130.0040.00614.90
8.0.120.0000.01116.63
8.0.110.0090.00216.72
8.0.100.0070.00416.80
8.0.90.0070.00516.78
8.0.80.0060.01016.72
8.0.70.0020.00616.76
8.0.60.0020.00616.67
8.0.50.0050.00316.71
8.0.30.0060.00816.79
8.0.20.0060.00816.76
8.0.10.0040.00416.69
8.0.00.0090.00916.70
7.4.330.0050.00015.55
7.4.320.0030.00316.40
7.4.300.0080.00316.48
7.4.290.0060.00216.51
7.4.280.0030.00616.51
7.4.270.0060.00116.56
7.4.260.0050.00516.39
7.4.250.0070.00116.41
7.4.240.0000.00716.45
7.4.230.0030.00416.22
7.4.220.0030.00516.53
7.4.210.0080.00816.45
7.4.200.0070.00216.43
7.4.190.0120.00016.32
7.4.180.0090.00416.54
7.4.160.0090.00616.38
7.4.150.0040.00416.46
7.4.140.0090.00416.84
7.4.130.0040.00916.28
7.4.120.0090.00316.23
7.4.110.0110.00216.31
7.4.100.0110.00816.37
7.4.90.0090.00416.42
7.4.80.0080.00517.76
7.4.70.0080.00616.39
7.4.60.0070.00516.32
7.4.50.0030.00916.03
7.4.40.0090.00316.23
7.4.30.0040.00416.29
7.4.20.0020.00715.98
7.4.10.0040.00416.29
7.4.00.0070.00715.16
7.3.330.0030.00714.63
7.3.320.0040.00614.56
7.3.310.0020.00916.06
7.3.300.0060.00516.15
7.3.290.0070.00416.22
7.3.280.0100.00616.12
7.3.270.0110.00316.25
7.3.260.0120.00816.30
7.3.250.0110.00416.29
7.3.240.0100.00816.32
7.3.230.0080.00716.38
7.3.220.0100.00416.20
7.3.210.0140.00216.20
7.3.200.0120.00316.37
7.3.190.0080.00816.20
7.3.180.0080.00716.26
7.3.170.0030.01216.34
7.3.160.0130.00316.23
7.3.150.0100.00516.27
7.3.140.0150.00016.05
7.3.130.0090.00616.16
7.3.120.0030.01315.37
7.3.110.0090.00515.23
7.3.100.0080.00615.41
7.3.90.0080.00615.59
7.3.80.0070.00715.40
7.3.70.0080.00615.45
7.3.60.0090.00415.45
7.3.50.0090.00815.59
7.3.40.0120.00215.55
7.3.30.0070.00715.55
7.3.20.0120.00316.46
7.3.10.0290.00415.82
7.3.00.0370.00915.77
7.2.340.0090.00516.01
7.2.330.0080.01016.24
7.2.320.0120.00316.33
7.2.310.0120.00716.32
7.2.300.0090.00716.27
7.2.290.0090.00916.39
7.2.280.0090.00516.24
7.2.270.0130.00316.20
7.2.260.0000.01416.20
7.2.250.0130.00215.40
7.2.240.0100.00515.48
7.2.230.0090.00515.58
7.2.220.0120.00215.35
7.2.210.0040.01215.24
7.2.200.0120.00315.51
7.2.190.0080.00615.50
7.2.180.0070.00715.51
7.2.170.0120.00215.63
7.2.160.0110.00515.54
7.2.150.0120.00516.56
7.2.140.0120.00816.46
7.2.130.0280.00616.01
7.2.120.0330.00515.92
7.2.110.0310.00415.90
7.2.100.0380.00515.95
7.2.90.0540.00615.95
7.2.80.0330.00716.02
7.2.70.0350.00715.92
7.2.60.0420.00815.84
7.2.50.0380.00415.85
7.2.40.0370.00415.75
7.2.30.0330.00815.99
7.2.20.0520.00916.03
7.2.10.0510.00415.85
7.2.00.0340.00415.95
7.1.330.0070.00815.50
7.1.320.0040.00915.58
7.1.310.0080.00615.58
7.1.300.0110.00315.43
7.1.290.0100.00415.48
7.1.280.0080.00515.54
7.1.270.0000.01315.25
7.1.260.0220.00615.35
7.1.250.0340.00614.72
7.1.240.0130.00017.02
7.1.230.0110.00317.06
7.1.220.0120.00317.02
7.1.210.0120.00317.31
7.1.200.0070.00717.08
7.1.190.0070.00717.21
7.1.180.0000.01317.09
7.1.170.0110.00317.16
7.1.160.0100.00316.99
7.1.150.0110.00316.99
7.1.140.0130.00017.13
7.1.130.0110.00317.17
7.1.120.0120.00217.06
7.1.110.0000.01317.17
7.1.100.0050.00816.96
7.1.90.0140.00017.21
7.1.80.0030.01017.01
7.1.70.0090.00417.02
7.1.60.0080.00817.22
7.1.50.0090.00517.10
7.1.40.0080.00616.98
7.1.30.0110.00317.00
7.1.20.0070.00717.13
7.1.10.0090.00617.00
7.1.00.0140.00017.10
7.0.330.0070.00716.93
7.0.320.0100.00316.82
7.0.310.0000.01316.89
7.0.300.0110.00316.96
7.0.290.0090.00516.66
7.0.280.0090.00416.79
7.0.270.0060.00716.64
7.0.260.0110.00316.71
7.0.250.0090.00516.89
7.0.240.0090.00316.92
7.0.230.0080.00516.95
7.0.220.0110.00316.71
7.0.210.0090.00416.73
7.0.200.0100.00316.77
7.0.190.0070.00716.82
7.0.180.0110.00316.75
7.0.170.0140.00016.87
7.0.160.0070.00616.98
7.0.150.0100.00316.81
7.0.140.0100.00316.86
7.0.130.0070.00717.09
7.0.120.0110.00217.02
7.0.110.0090.00416.70
7.0.100.0130.00016.67
7.0.90.0000.01316.86
7.0.80.0110.00216.90
7.0.70.0000.01416.82
7.0.60.0080.00616.80
7.0.50.0070.00716.75
7.0.40.0060.00616.81
7.0.30.0060.00616.83
7.0.20.0130.00016.73
7.0.10.0060.00616.79
7.0.00.0060.00616.53
5.6.400.0100.00215.45
5.6.390.0110.00315.46
5.6.380.0100.00315.46
5.6.370.0060.00715.58
5.6.360.0060.00615.64
5.6.350.0040.00815.53
5.6.340.0070.00615.61
5.6.330.0130.00015.50
5.6.320.0100.00315.56
5.6.310.0140.00015.38
5.6.300.0040.00815.46
5.6.290.0040.00915.45
5.6.280.0100.00315.66
5.6.270.0080.00415.49
5.6.260.0060.00615.57
5.6.250.0050.00815.57
5.6.240.0070.00715.46
5.6.230.0110.00315.70
5.6.220.0130.00015.72
5.6.210.0130.00015.66
5.6.200.0040.00815.57
5.6.190.0140.00015.63
5.6.180.0040.00915.71
5.6.170.0110.00215.74
5.6.160.0090.00315.77
5.6.150.0040.00915.74
5.6.140.0130.00015.62
5.6.130.0110.00215.74
5.6.120.0080.00515.62
5.6.110.0060.00615.46
5.6.100.0110.00215.65
5.6.90.0130.00015.62
5.6.80.0100.00215.61
5.6.70.0100.00215.50
5.6.60.0040.00815.49
5.6.50.0000.01215.46
5.6.40.0060.00615.62
5.6.30.0090.00415.61
5.6.20.0040.00815.49
5.6.10.0070.00515.31
5.6.00.0130.00015.48
5.5.380.0080.00415.53
5.5.370.0080.00415.57
5.5.360.0130.00015.53
5.5.350.0070.00715.36
5.5.340.0110.00215.42
5.5.330.0110.00215.41
5.5.320.0100.00315.59
5.5.310.0100.00315.42
5.5.300.0130.00015.59
5.5.290.0130.00015.29
5.5.280.0090.00415.41
5.5.270.0080.00815.54
5.5.260.0100.00415.47
5.5.250.0110.00315.52
5.5.240.0100.00315.40
5.5.230.0100.00315.73
5.5.220.0130.00015.46
5.5.210.0100.00315.54
5.5.200.0080.00515.43
5.5.190.0060.00615.50
5.5.180.0120.00015.46
5.5.170.0130.00015.23
5.5.160.0100.00315.36
5.5.150.0080.00415.51
5.5.140.0080.00515.42
5.5.130.0110.00315.39
5.5.120.0130.00015.16
5.5.110.0140.00015.42
5.5.100.0120.00015.65
5.5.90.0090.00315.58
5.5.80.0000.01215.38
5.5.70.0100.00215.70
5.5.60.0120.00015.63
5.5.50.0060.00615.55
5.5.40.0110.00215.62
5.5.30.0060.00615.53
5.5.20.0100.00215.62
5.5.10.0090.00315.61
5.5.00.0130.00015.61
5.4.450.0100.00012.42
5.4.440.0050.00512.55
5.4.430.0100.00012.42
5.4.420.0080.00312.29
5.4.410.0100.00012.41
5.4.400.0070.00312.42
5.4.390.0100.00012.37
5.4.380.0050.00512.51
5.4.370.0090.00312.45
5.4.360.0110.00012.36
5.4.350.0070.00412.34
5.4.340.0040.00812.09
5.4.330.0120.00012.14
5.4.320.0080.00312.57
5.4.310.0070.00412.59
5.4.300.0100.00012.27
5.4.290.0050.00512.58
5.4.280.0110.00012.44
5.4.270.0110.00012.40
5.4.260.0100.00012.44
5.4.250.0110.00012.35
5.4.240.0000.01012.19
5.4.230.0080.00312.19
5.4.220.0060.00611.98
5.4.210.0100.00012.06
5.4.200.0040.00712.34
5.4.190.0070.00412.17
5.4.180.0060.00612.25
5.4.170.0100.00012.23
5.4.160.0100.00012.31
5.4.150.0110.00012.03
5.4.140.0070.00412.22
5.4.130.0050.00512.39
5.4.120.0070.00312.40
5.4.110.0030.00712.43
5.4.100.0080.00312.58
5.4.90.0060.00312.28
5.4.80.0100.00012.46
5.4.70.0080.00312.47
5.4.60.0040.00712.31
5.4.50.0070.00312.43
5.4.40.0050.00512.13
5.4.30.0100.00012.40
5.4.20.0050.00512.39
5.4.10.0060.00412.42
5.4.00.0100.00012.44
5.3.290.0060.00612.69
5.3.280.0050.00512.56
5.3.270.0040.00812.83
5.3.260.0070.00312.73
5.3.250.0040.00612.60
5.3.240.0040.00712.69
5.3.230.0110.00012.56
5.3.220.0110.00012.56
5.3.210.0050.00512.65
5.3.200.0050.00512.82
5.3.190.0110.00012.63
5.3.180.0050.00512.75
5.3.170.0060.00612.71
5.3.160.0110.00012.95
5.3.150.0040.00713.02
5.3.140.0090.00212.90
5.3.130.0110.00012.94
5.3.120.0040.00712.62
5.3.110.0080.00312.95
5.3.100.0080.00312.68
5.3.90.0080.00312.70
5.3.80.0100.00012.82
5.3.70.0020.00712.80
5.3.60.0100.00012.89
5.3.50.0070.00312.79
5.3.40.0080.00312.59
5.3.30.0050.00512.80
5.3.20.0030.00712.69
5.3.10.0030.00712.57
5.3.00.0030.00712.34
5.2.170.0080.00011.84
5.2.160.0030.00611.80
5.2.150.0000.00811.63
5.2.140.0060.00211.63
5.2.130.0040.00411.84
5.2.120.0040.00411.82
5.2.110.0050.00311.59
5.2.100.0050.00511.83
5.2.90.0040.00411.80
5.2.80.0090.00011.54
5.2.70.0060.00311.81
5.2.60.0080.00011.70
5.2.50.0060.00311.63
5.2.40.0000.00811.59
5.2.30.0080.00011.52
5.2.20.0040.00411.66
5.2.10.0080.00011.56
5.2.00.0080.00011.23
5.1.60.0040.00410.84
5.1.50.0030.00510.93
5.1.40.0040.00310.96
5.1.30.0000.00710.97
5.1.20.0050.00310.94
5.1.10.0080.00010.64
5.1.00.0050.00210.78
5.0.50.0030.0039.92
5.0.40.0030.0039.77
5.0.30.0060.0009.68
5.0.20.0040.0029.91
5.0.10.0060.0009.88
5.0.00.0060.0009.76
4.4.90.0040.0009.60
4.4.80.0000.0049.60
4.4.70.0030.0009.60
4.4.60.0030.0009.60
4.4.50.0030.0009.60
4.4.40.0040.0009.60
4.4.30.0040.0009.60
4.4.20.0000.0049.60
4.4.10.0040.0009.60
4.4.00.0020.0029.60
4.3.110.0020.0029.60
4.3.100.0030.0009.60
4.3.90.0000.0049.60
4.3.80.0040.0009.60
4.3.70.0000.0039.60
4.3.60.0040.0009.60
4.3.50.0000.0049.60
4.3.40.0040.0009.60
4.3.30.0000.0039.60
4.3.20.0000.0039.60
4.3.10.0000.0029.60
4.3.00.0030.0009.60

preferences:
56.66 ms | 403 KiB | 5 Q